Exception: OmniAuth::DoximityOauth2::JWTVerificationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/omniauth-doximity-oauth2/errors.rb

Overview

Error for failed JWK verifications

Constant Summary collapse

MESSAGE =
"Failed to verify user info JWT"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, token) ⇒ JWTVerificationError

Returns a new instance of JWTVerificationError.



22
23
24
25
# File 'lib/omniauth-doximity-oauth2/errors.rb', line 22

def initialize(error, token)
  @token = token
  super(error.message)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



20
21
22
# File 'lib/omniauth-doximity-oauth2/errors.rb', line 20

def error
  @error
end

#tokenObject (readonly)

Returns the value of attribute token.



20
21
22
# File 'lib/omniauth-doximity-oauth2/errors.rb', line 20

def token
  @token
end