\Google_AccessToken_Revoke

Wrapper around Google Access Tokens which provides convenience functions

Summary

Methods
Properties
Constants
__construct()
revokeToken()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$http
N/A

Properties

$http

$http : \GuzzleHttp\ClientInterface

Type

\GuzzleHttp\ClientInterface — The http client

Methods

__construct()

__construct(\GuzzleHttp\ClientInterface  $http = null) 

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

Parameters

\GuzzleHttp\ClientInterface $http

revokeToken()

revokeToken(string|array  $token) : boolean

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.

Returns

boolean —

Returns True if the revocation was successful, otherwise False.