Method: OpenIDConnect::ResponseObject::IdToken.decode

Defined in:
lib/openid_connect/response_object/id_token.rb

.decode(jwt_string, key) ⇒ Object



65
66
67
68
69
70
71
# File 'lib/openid_connect/response_object/id_token.rb', line 65

def decode(jwt_string, key)
  if key == :self_issued
    decode_self_issued jwt_string
  else
    new JSON::JWT.decode jwt_string, key
  end
end