class 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.

boolean
revokeToken(string|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

boolean revokeToken(string|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

string|array $token The token (access token or a refresh token) that should be revoked.

Return Value

boolean Returns True if the revocation was successful, otherwise False.