Handle legacy refresh tokens

This commit is contained in:
ErickSkrauch
2019-12-04 13:40:12 +03:00
parent a9a56c9e1d
commit 060a4e960a
2 changed files with 6 additions and 2 deletions

View File

@@ -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;
}
}