Skip to content

Commit

Permalink
style: remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessa-passage committed Nov 11, 2024
1 parent 406f775 commit 47df706
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/passageidentity/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module Passage
# JSON Web Keys (JWKS) for token verification, and provides methods for
# validating JWTs and revoking user refresh tokens.
class Auth

def initialize(app_id, auth_strategy)
@app_cache = {}
@app_id = app_id
Expand Down Expand Up @@ -63,7 +62,7 @@ def fetch_jwks
response =
auth_gw_connection.get("/v1/apps/#{@app_id}/.well-known/jwks.json")
@jwks = response.body

!get_cache(@app_id) && set_cache(@app_id, [@jwks, @auth_origin])
end
end
Expand All @@ -72,7 +71,7 @@ def authenticate_request(request)
warn '[DEPRECATION] `auth.authenticate_request()` is deprecated. Please use `auth.validate_jwt()` instead.'

# Get the token based on the strategy

if @auth_strategy.match?(Passage::COOKIE_STRATEGY)
unless request.cookies.key?('psg_auth_token')
raise PassageError.new(
Expand Down

0 comments on commit 47df706

Please sign in to comment.