mirror of
https://github.com/naturalcrit/naturalcrit.git
synced 2025-10-27 07:29:54 +00:00
test without domain
This commit is contained in:
parent
f4dee4b12c
commit
b9a92b819d
@ -75,12 +75,12 @@ const AccountActions = {
|
||||
|
||||
createSession: (token) => {
|
||||
//if working on local or a deployment, remove the domain attribute
|
||||
document.cookie = `nc_session=${token}; max-age=${60 * 60 * 24 * 365}; path=/; samesite=lax; domain=${window.domain}`;
|
||||
document.cookie = `nc_session=${token}; max-age=${60 * 60 * 24 * 365}; path=/; samesite=lax;`;
|
||||
},
|
||||
|
||||
removeSession: () => {
|
||||
//if working on local or a deployment, remove the domain attribute
|
||||
document.cookie = `nc_session=; expires=Thu; 01 Jan 1970 00:00:01 GMT; samesite=lax; domain=${window.domain}`;
|
||||
document.cookie = `nc_session=; expires=Thu; 01 Jan 1970 00:00:01 GMT; samesite=lax;`;
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user