From 4cac7ef538c27cb7b8f1f38ee646102020393df8 Mon Sep 17 00:00:00 2001 From: soorq Date: Sun, 3 May 2026 23:26:14 +0300 Subject: [PATCH] refactor: auth controller to clear cookie on logout --- src/auth/application/controller/auth/controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/application/controller/auth/controller.ts b/src/auth/application/controller/auth/controller.ts index 3184256..258c59c 100644 --- a/src/auth/application/controller/auth/controller.ts +++ b/src/auth/application/controller/auth/controller.ts @@ -73,7 +73,7 @@ export class AuthController { const session = req.cookies?.['refresh']; const response = await this.facade.signOut(session); - res.clearCookie('refresh', { path: '/' }); + res.clearCookie('refresh', { path: '/', domain: `.${this.domain}` }); return response; }