mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +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`, {
|
const resp = await fetch(`${api_origin}/auth/revoke-session`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
Authorization: `Bearer ${puter.authToken}`,
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
@ -115,6 +116,9 @@ const UIWindowManageSessions = async function UIWindowManageSessions () {
|
|||||||
|
|
||||||
const reload_sessions = async () => {
|
const reload_sessions = async () => {
|
||||||
const resp = await fetch(`${api_origin}/auth/list-sessions`, {
|
const resp = await fetch(`${api_origin}/auth/list-sessions`, {
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${puter.authToken}`,
|
||||||
|
},
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user