From 1da3a769c439ce048afd4e8283bd0ae4ed156a1d Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Fri, 12 Apr 2024 00:19:07 -0400 Subject: [PATCH] Use localstorage instead of cookie for list-sessions --- src/UI/UIWindowManageSessions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/UI/UIWindowManageSessions.js b/src/UI/UIWindowManageSessions.js index 561597fb..1debb5da 100644 --- a/src/UI/UIWindowManageSessions.js +++ b/src/UI/UIWindowManageSessions.js @@ -87,6 +87,7 @@ const UIWindowManageSessions = async function UIWindowManageSessions () { const resp = await fetch(`${api_origin}/auth/revoke-session`, { method: 'POST', headers: { + Authorization: `Bearer ${puter.authToken}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ @@ -115,6 +116,9 @@ const UIWindowManageSessions = async function UIWindowManageSessions () { const reload_sessions = async () => { const resp = await fetch(`${api_origin}/auth/list-sessions`, { + headers: { + Authorization: `Bearer ${puter.authToken}`, + }, method: 'GET', });