Skip to content

Commit

Permalink
add nil check operator in token checking at token introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
linhdangduy committed Apr 10, 2019
1 parent 9bb03f8 commit 6bb847e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/doorkeeper/oauth/token_introspection.rb
Expand Up @@ -163,7 +163,7 @@ def valid_token?

# RFC7662 Section 2.1
def authorized_token_matches_introspected?
authorized_token.token == @token.token
authorized_token.token == @token&.token
end

# If token doesn't belong to some client, then it is public.
Expand Down

0 comments on commit 6bb847e

Please sign in to comment.