Skip to content

Commit

Permalink
use subdomain-acessible cookie domain
Browse files Browse the repository at this point in the history
  • Loading branch information
dauglyon committed Feb 26, 2024
1 parent 001253e commit ca938a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/auth/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const useTokenCookie = (
expires: new Date(expires),
...(process.env.NODE_ENV === 'development'
? {}
: { domain: process.env.REACT_APP_KBASE_DOMAIN }),
: { domain: `.${process.env.REACT_APP_KBASE_DOMAIN}` }),
});
} else if (token && !expires) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit ca938a3

Please sign in to comment.