Reference documentation and code samples for the Google Auth Library Client class FetchAuthTokenInterface.
An interface implemented by objects that can fetch auth tokens.
Classes which implement this interface in this package:
- CredentialsLoader
- Credentials\ExternalAccountCredentials
- Credentials\GCECredentials
- Credentials\ImpersonatedServiceAccountCredentials
- Credentials\InsecureCredentials
- Credentials\ServiceAccountCredentials
- Credentials\ServiceAccountJwtAccessCredentials
- Credentials\UserRefreshCredentials
- FetchAuthTokenCache
- OAuth2
Namespace
Google \ AuthMethods
fetchAuthToken
Fetches the auth tokens based on the current state.
httpHandler
callable|null
callback which delivers psr7 request
array
getCacheKey
Obtains a key that can used to cache the results of #fetchAuthToken.
If the value is empty, the auth token is not cached.
string
getLastReceivedToken
Returns an associative array with the token and expiration time.
null|array

