diff --git a/back/src/modules/auth/auth.service.ts b/back/src/modules/auth/auth.service.ts index 599dcee..77af7e0 100644 --- a/back/src/modules/auth/auth.service.ts +++ b/back/src/modules/auth/auth.service.ts @@ -138,8 +138,12 @@ export class AuthService { } clearCookies(res: any): boolean { - for (const cookie in res.cookies) { - res.clearCookie(cookie); + try { + res.clearCookie('access_token'); + res.clearCookie('refresh_token'); + res.clearCookie('loggedin'); + } catch (error) { + return false; } return true; }