Module: Google::Auth::Extras::TokenInfo

Extended by:
TokenInfo
Included in:
TokenInfo
Defined in:
lib/google/auth/extras/token_info.rb

Overview

This module provides methods to lookup details about authenication tokens, primarily for their expiration.

Defined Under Namespace

Classes: LookupFailed, LookupMalformed

Instance Method Summary collapse

Instance Method Details

#lookup_access_token(token) ⇒ Hash

Lookup the details for a valid access token, including it’s expiration.

Returns:

  • (Hash)

Raises:

  • (LookupFailed)

    If the token is invalid (including expired).

See Also:



26
27
28
# File 'lib/google/auth/extras/token_info.rb', line 26

def lookup_access_token(token)
  lookup(access_token: token)
end