class Google_AccessToken_Revoke (View source)

Wrapper around Google Access Tokens which provides convenience functions

Methods

__construct(ClientInterface $http = null)

Instantiates the class, but does not initiate the login flow, leaving it to the discretion of the caller.

bool
revokeToken(array $token)

Revoke an OAuth2 access token or refresh token. This method will revoke the current access token, if a token isn't provided.

Details

__construct(ClientInterface $http = null)

Instantiates the class, but does not initiate the login flow, leaving it to the discretion of the caller.

Parameters

ClientInterface $http

bool revokeToken(array $token)

Revoke an OAuth2 access token or refresh token. This method will revoke the current access token, if a token isn't provided.

Parameters

array $token

The token (access token or a refresh token) that should be revoked.

Return Value

bool

Returns True if the revocation was successful, otherwise False.