Exemple #1
0
 public function successCallback($client)
 {
     ApiService::saveToken($client->id, $client->accessToken);
 }
 /**
  * Saves token in DB.
  * @param OAuthToken $token
  * @return ApiService|null|\yii\db\ActiveQuery|\yii\db\ActiveRecord|static
  */
 protected function saveAccessToken(OAuthToken $token)
 {
     return ApiService::saveToken($this->id, $token);
 }