Skip to content

Commit

Permalink
fix: logout (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
geisterfurz007 authored Jan 27, 2024
1 parent 7083f37 commit 84dd078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/context/user/logout-server-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {graphqlWithHeaders} from '../../lib/graphql/client';

const deleteCookie = (cookies: ReadonlyRequestCookies, name: string) => {
const url = new URL(process.env.FRONTEND_URL);
const domain = url.hostname;
const rootDomain = url.hostname.split('.').slice(-2).join('.');

cookies.set({
name,
domain,
domain: rootDomain,
value: '',
expires: 0,
maxAge: 0,
Expand Down

0 comments on commit 84dd078

Please sign in to comment.