Skip to content

Commit 552ebf4

Browse files
authored
refactor: auth controller to clear cookie on logout (#60)
1 parent 32e2b36 commit 552ebf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/auth/application/controller/auth/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class AuthController {
7373
const session = req.cookies?.['refresh'];
7474
const response = await this.facade.signOut(session);
7575

76-
res.clearCookie('refresh', { path: '/' });
76+
res.clearCookie('refresh', { path: '/', domain: `.${this.domain}` });
7777

7878
return response;
7979
}

0 commit comments

Comments
 (0)