mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-25 07:45:08 -05:00
Proprely remove cookies on logout
This commit is contained in:
parent
a86cd969a3
commit
01177c2489
@ -7,7 +7,6 @@ const writeAccounts = (accounts: Account[]) => {
|
||||
storeValue("accounts", accounts);
|
||||
if (Platform.OS === "web") {
|
||||
const selected = accounts.find((x) => x.selected);
|
||||
if (!selected) return;
|
||||
setCookie("account", selected);
|
||||
// cookie used for images and videos since we can't add Authorization headers in img or video tags.
|
||||
setCookie("X-Bearer", selected?.token, { skipBase64: true });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user