Skip to content

Commit

Permalink
clea
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbataire committed Jun 11, 2024
1 parent 5601185 commit b00cd6c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/routes/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ export default async function authentication(fastify: FastifyInstance) {

fastify.get('/logout', unauthenticatedOptions, async (req, resp) => {
resp.clearCookie(Auth.AUTH_COOKIE_NAME);
for (const cookieName in req.cookies) {
if (req.cookies[cookieName]) {
resp.clearCookie(cookieName, { path: '/' });
}
}
return resp.redirect('/login');
});

Expand Down

0 comments on commit b00cd6c

Please sign in to comment.