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
@@ -96,8 +96,8 @@ export class AuthController {
@ApiOperation({ summary: "logout the user" })
@HttpCode(HttpStatus.OK)
@Post("logout")
logout(@Body() refreshTokenDto: RefreshTokenDto) {
return this.authService.logout(refreshTokenDto.refreshToken);
logout(@UserDec("id") userId: string) {
return this.authService.logout(userId);
}
//***************************** */