Copied!

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.

  • param callable|null $httpHandler callback which delivers psr7 request
  • 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.
    @type string $access_token The access token string.
    @type int $expires_at The time the token expires as a UNIX timestamp.
    
    }
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration