diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 7499a86..5e09abb 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -161,7 +161,13 @@ export class AuthController { if (!accessToken) throw new UnauthorizedException() await this.commandBus.execute(new LogoutCommand(accessToken)) res.clearCookie('accessToken', { httpOnly: true, sameSite: 'none', secure: true }) - res.clearCookie('refreshToken', { httpOnly: true, sameSite: 'none', secure: true }) + + res.clearCookie('refreshToken', { + path: '/v1/auth/refresh-token', + httpOnly: true, + sameSite: 'none', + secure: true, + }) return null }