diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index cb94a32..7499a86 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -160,8 +160,8 @@ export class AuthController { ): Promise { if (!accessToken) throw new UnauthorizedException() await this.commandBus.execute(new LogoutCommand(accessToken)) - res.clearCookie('accessToken') - res.clearCookie('refreshToken') + res.clearCookie('accessToken', { httpOnly: true, sameSite: 'none', secure: true }) + res.clearCookie('refreshToken', { httpOnly: true, sameSite: 'none', secure: true }) return null }