Fix token cookie not being peristed on browser reboot (#2667)
This commit is contained in:
@ -32,6 +32,8 @@ export const cookieStorageEffect =
|
||||
}
|
||||
isReset
|
||||
? cookieStorage.removeItem(key)
|
||||
: cookieStorage.setItem(key, JSON.stringify(newValue));
|
||||
: cookieStorage.setItem(key, JSON.stringify(newValue), {
|
||||
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7),
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user