mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 14:20:22 +08:00
Use localstorage instead of cookie for list-sessions
This commit is contained in:
parent
356a3284fa
commit
1da3a769c4
@ -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',
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user