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