/** * Removes Authclient for a user * * @param \yii\authclient\BaseClient $authClient * @param User $user */ public static function removeAuthClientForUser(ClientInterface $authClient, User $user) { Auth::deleteAll(['user_id' => $user->id, 'source' => (string) $authClient->getId()]); }