Skip to content

Commit

Permalink
fix: logout user
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Dec 29, 2024
1 parent 62d3838 commit 03288bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/(api)/auth/logout/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ export async function GET() {
(await cookies()).delete({
name: 'auth',
domain: process.env.COOKIE_DOMAIN,
httpOnly: process.env.COOKIE_HTTP_ONLY === 'true',
sameSite: 'lax',
});

return Response.redirect(`${process.env.SITE_URL}`);
Expand Down

0 comments on commit 03288bd

Please sign in to comment.