protected static function Client::emptyToken in OAuth2 Client 7
Same name and namespace in other branches
- 7.2 src/Client.php \OAuth2\Client::emptyToken()
Return an empty token.
1 call to Client::emptyToken()
- Client::loadToken in ./
oauth2_client.inc - Load the token data from the storage.
File
- ./
oauth2_client.inc, line 152 - Class OAuth2\Client
Class
- Client
- The class OAuth2\Client is used to get authorization from an oauth2 server. Its only goal is to get an access_token from the oauth2 server, so the only public function (besides the constructor) is getAccessToken().
Namespace
OAuth2Code
protected static function emptyToken() {
return array(
'access_token' => NULL,
'expires_in' => NULL,
'token_type' => NULL,
'scope' => NULL,
'refresh_token' => NULL,
'expiration_time' => NULL,
);
}