mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-26 00:05:10 -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);
|
storeValue("accounts", accounts);
|
||||||
if (Platform.OS === "web") {
|
if (Platform.OS === "web") {
|
||||||
const selected = accounts.find((x) => x.selected);
|
const selected = accounts.find((x) => x.selected);
|
||||||
if (!selected) return;
|
|
||||||
setCookie("account", selected);
|
setCookie("account", selected);
|
||||||
// cookie used for images and videos since we can't add Authorization headers in img or video tags.
|
// 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 });
|
setCookie("X-Bearer", selected?.token, { skipBase64: true });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user