Class: OmniAuth::Strategies::Intercode
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Intercode
- Defined in:
- lib/omniauth/strategies/intercode.rb
Constant Summary collapse
- CurrentUserQuery =
IntercodeClient::Client.parse <<~GRAPHQL query { currentUser { id first_name last_name email } } GRAPHQL
Instance Method Summary collapse
Instance Method Details
#decoded_jwt ⇒ Object
53 54 55 |
# File 'lib/omniauth/strategies/intercode.rb', line 53 def decoded_jwt @decoded_jwt ||= IntercodeClient.decode_jwt(access_token.token) end |
#raw_info ⇒ Object
46 47 48 49 50 51 |
# File 'lib/omniauth/strategies/intercode.rb', line 46 def raw_info @raw_info ||= IntercodeClient::Client.query( CurrentUserQuery, context: { headers: access_token.headers } ) end |