diff --git a/src/presentation/http/router/auth.ts b/src/presentation/http/router/auth.ts index 21afca4e..5ad705d3 100644 --- a/src/presentation/http/router/auth.ts +++ b/src/presentation/http/router/auth.ts @@ -146,6 +146,10 @@ const AuthRouter: FastifyPluginCallback = (fastify, opts, don await opts.authService.removeSessionByRefreshToken(request.body.token); return reply + .clearCookie('refreshToken', { + path: '/auth', + domain: opts.cookieDomain, + }) .status(StatusCodes.OK) .send({ ok: true,