fix learn endpoint

This commit is contained in:
2023-07-21 16:44:18 +02:00
parent 5fdd8b5bb1
commit a943838622
8 changed files with 72 additions and 9 deletions

View File

@@ -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', {