mirror of https://github.com/status-im/codimd.git
Update to extend login info cookies to 365 days to reduce reductant page refresh
This commit is contained in:
parent
65b91e0b66
commit
83d8142045
|
@ -28,11 +28,11 @@ function resetCheckAuth() {
|
||||||
|
|
||||||
function setLoginState(bool, id) {
|
function setLoginState(bool, id) {
|
||||||
Cookies.set('loginstate', bool, {
|
Cookies.set('loginstate', bool, {
|
||||||
expires: 14
|
expires: 365
|
||||||
});
|
});
|
||||||
if (id) {
|
if (id) {
|
||||||
Cookies.set('userid', id, {
|
Cookies.set('userid', id, {
|
||||||
expires: 14
|
expires: 365
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Cookies.remove('userid');
|
Cookies.remove('userid');
|
||||||
|
|
Loading…
Reference in New Issue