fix: refresh token invalidate for logout
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user