class CognitoTokenVerifier::IncorrectTokenType
Public Class Methods
new(token)
click to toggle source
# File lib/cognito_token_verifier/errors.rb, line 40 def initialize(token) @token_use = token.decoded_token['token_use'] end
Public Instance Methods
message()
click to toggle source
# File lib/cognito_token_verifier/errors.rb, line 44 def message "Incorrect token type. Received #{@token_use} while expecting one of #{[CognitoTokenVerifier.config.token_use].flatten}." end