mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 12:33:22 +00:00
fix learn endpoint
This commit is contained in:
@@ -159,7 +159,9 @@ export class AuthController {
|
||||
@Res({ passthrough: true }) res: ExpressResponse
|
||||
): Promise<void> {
|
||||
if (!accessToken) throw new UnauthorizedException()
|
||||
|
||||
await this.commandBus.execute(new LogoutCommand(accessToken))
|
||||
|
||||
res.clearCookie('accessToken', { httpOnly: true, sameSite: 'none', secure: true })
|
||||
|
||||
res.clearCookie('refreshToken', {
|
||||
|
||||
Reference in New Issue
Block a user