An interface implemented by objects that can fetch auth tokens.

AbstractInterface
Methods
public abstract fetchAuthToken(?callable $httpHandler = NULL)
 
Fetches the auth tokens based on the current state.

  • return array a hash of auth tokens
public abstract getCacheKey()
 
Obtains a key that can used to cache the results of #fetchAuthToken.

If the value is empty, the auth token is not cached.

  • return string a key that may be used to cache the auth token.
public abstract getLastReceivedToken()
 
Returns an associative array with the token and expiration time.

  • return null|array { The last received access token.
  • var string $access_token The access token string.
  • var int $expires_at The time the token expires as a UNIX timestamp. }
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only