Class: OmniAuth::Strategies::HubAz
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::HubAz
- Defined in:
- lib/omniauth/hub_az/omni_auth/strategies/hub_az.rb
Instance Method Summary collapse
Instance Method Details
#hub_az_token ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/omniauth/hub_az/omni_auth/strategies/hub_az.rb', line 29 def hub_az_token return @hub_az_token if defined?(@hub_az_token) @hub_az_token = ::Omniauth::HubAz::Token.verify!(access_token.token) fail!(:invalid_credentials, CallbackError.new(:invalid_credentials, 'Invalid JWT token')) unless @hub_az_token.valid? @hub_az_token end |