DEFAULT_REFRESH_WINDOW_SECONDS
DEFAULT_REFRESH_WINDOW_SECONDS
Provides functionality with retrieving OAuth2 access tokens using an OAuth2 token fetcher, handling refreshing the token if it's about to expire.
getOrFetchAccessToken(\Google\Auth\FetchAuthTokenInterface $fetchAuthTokenInterface,callable|null $httpHandler = null): string|null
Gets the existing access token, or fetches a new one if an existing one is about to expire within the refresh window, or fetches a new one if there is no existing access token.
\Google\Auth\FetchAuthTokenInterface | $fetchAuthTokenInterface | the underlying OAuth2 access token fetcher |
callable|null | $httpHandler | the HTTP handler for making requests to refresh OAuth2 credentials |