1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-10-01 19:36:43 +02:00

Cookie sharing across sub-domains

This commit is contained in:
Kamran Ahmed
2023-08-25 02:19:02 +01:00
parent 1a7a6db50c
commit b04b8c702f
7 changed files with 6 additions and 6 deletions

View File

@@ -62,6 +62,7 @@ export function GitHubButton(props: GitHubButtonProps) {
Cookies.set(TOKEN_COOKIE_NAME, response.token, {
path: '/',
expires: 30,
domain: import.meta.env.DEV ? 'localhost' : '.roadmap.sh',
});
window.location.href = redirectUrl;
})