Lines Matching refs:token
77 private $token; variable in Google\\Client
332 if (!isset($this->token['refresh_token'])) {
337 $refreshToken = $this->token['refresh_token'];
444 if ($token = $this->getAccessToken()) {
447 if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) {
450 $token['refresh_token']
459 return $authHandler->attachToken($http, $token, (array) $scopes);
504 * @param string|array $token
507 public function setAccessToken($token) argument
509 if (is_string($token)) {
510 if ($json = json_decode($token, true)) {
511 $token = $json;
514 $token = array(
515 'access_token' => $token,
519 if ($token == null) {
522 if (!isset($token['access_token'])) {
525 $this->token = $token;
530 return $this->token;
538 if (isset($this->token['refresh_token'])) {
539 return $this->token['refresh_token'];
551 if (!$this->token) {
556 if (isset($this->token['created'])) {
557 $created = $this->token['created'];
558 } elseif (isset($this->token['id_token'])) {
563 $idToken = $this->token['id_token'];
572 if (!isset($this->token['expires_in'])) {
578 return ($created + ($this->token['expires_in'] - 30)) < time();
777 …* @param string|array|null $token The token (access token or a refresh token) that should be revok…
780 public function revokeToken($token = null) argument
784 return $tokenRevoker->revokeToken($token ?: $this->getAccessToken());
806 $token = $this->getAccessToken();
807 if (!isset($token['id_token'])) {
812 $idToken = $token['id_token'];