mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Handle legacy refresh tokens
This commit is contained in:
@@ -30,8 +30,7 @@ class RefreshTokenRepository implements RefreshTokenRepositoryInterface {
|
||||
}
|
||||
|
||||
public function isRefreshTokenRevoked($tokenId): bool {
|
||||
// TODO: validate old refresh tokens
|
||||
return !OauthRefreshToken::find()->andWhere(['id' => $tokenId])->exists();
|
||||
return OauthRefreshToken::find()->andWhere(['id' => $tokenId])->exists() === false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user