Google_AccessToken_Revoke
extends Revoke
in package
Wrapper around Google Access Tokens which provides convenience functions
Table of Contents
Properties
Methods
- __construct() : mixed
- Instantiates the class, but does not initiate the login flow, leaving it to the discretion of the caller.
- revokeToken() : bool
- Revoke an OAuth2 access token or refresh token. This method will revoke the current access token, if a token isn't provided.
Properties
$http
private
ClientInterface
$http
The http client
Methods
__construct()
Instantiates the class, but does not initiate the login flow, leaving it to the discretion of the caller.
public
__construct([ClientInterface $http = null ]) : mixed
Parameters
- $http : ClientInterface = null
revokeToken()
Revoke an OAuth2 access token or refresh token. This method will revoke the current access token, if a token isn't provided.
public
revokeToken(string|array<string|int, mixed> $token) : bool
Parameters
- $token : string|array<string|int, mixed>
-
The token (access token or a refresh token) that should be revoked.
Return values
bool —Returns True if the revocation was successful, otherwise False.