class Google_AccessToken_Revoke extends Revoke (View source)

Methods

__construct(ClientInterface $http = null)

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

from Revoke
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.

from Revoke

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.