Proprely remove cookies on logout

This commit is contained in:
Zoe Roux 2025-11-03 13:05:01 +01:00
parent a86cd969a3
commit 01177c2489
No known key found for this signature in database

View File

@ -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 });