test without domain

This commit is contained in:
Víctor Losada Hernández 2024-12-08 16:16:35 +01:00
parent f4dee4b12c
commit b9a92b819d

View File

@ -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;`;
},
};