fix: refresh token invalidate for logout

This commit is contained in:
mahyargdz
2025-03-11 12:33:00 +03:30
parent 4503721b90
commit 6eea07729b
9 changed files with 115 additions and 38 deletions
+2 -2
View File
@@ -224,8 +224,8 @@ export class AuthService {
}
//****************** */
async logout(refreshToken: string) {
await this.tokensService.invalidateRefreshToken(refreshToken);
async logout(userId: string) {
await this.tokensService.invalidateRefreshToken(userId);
return {
message: AuthMessage.LOGOUT_SUCCESS,
};