Compare commits
3 Commits
12c9602f46
...
92feec768c
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 92feec768c | |
Derrick Hammer | 2bc233c6b4 | |
Derrick Hammer | 98a6b48776 |
|
@ -9,7 +9,7 @@
|
||||||
"version": "0.2.0-develop.59",
|
"version": "0.2.0-develop.59",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
||||||
"@lumeweb/libportal": "0.2.0-develop.39",
|
"@lumeweb/libportal": "0.2.0-develop.40",
|
||||||
"@lumeweb/node-library-preset": "0.2.7",
|
"@lumeweb/node-library-preset": "0.2.7",
|
||||||
"@noble/ciphers": "^0.3.0",
|
"@noble/ciphers": "^0.3.0",
|
||||||
"@noble/curves": "^1.1.0",
|
"@noble/curves": "^1.1.0",
|
||||||
|
@ -1678,9 +1678,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@lumeweb/libportal": {
|
"node_modules/@lumeweb/libportal": {
|
||||||
"version": "0.2.0-develop.39",
|
"version": "0.2.0-develop.40",
|
||||||
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.39.tgz",
|
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.40.tgz",
|
||||||
"integrity": "sha512-T7yDdIZ78WAUABVTtE3hb3hl+6cBKzBEnGtkAa7gb9S+2/FPOo9UcmvSucqYi1a/ZB8A8xKBZ9sEja8cKyGYkA==",
|
"integrity": "sha512-vtdYK92JFUGR1VxQxwghcb5eTLXx8J4wlnCWNpfbNlSEkABJPzM+V5BAhfIqO1d3M55FUBLpIb+h4nibxflcRA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lumeweb/libs5": "^0.1.0-develop.60",
|
"@lumeweb/libs5": "^0.1.0-develop.60",
|
||||||
"@noble/curves": "^1.1.0",
|
"@noble/curves": "^1.1.0",
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
||||||
"@lumeweb/libportal": "0.2.0-develop.39",
|
"@lumeweb/libportal": "0.2.0-develop.40",
|
||||||
"@lumeweb/node-library-preset": "0.2.7",
|
"@lumeweb/node-library-preset": "0.2.7",
|
||||||
"@noble/ciphers": "^0.3.0",
|
"@noble/ciphers": "^0.3.0",
|
||||||
"@noble/curves": "^1.1.0",
|
"@noble/curves": "^1.1.0",
|
||||||
|
|
|
@ -121,6 +121,24 @@ export function savePortals() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function savePortalSessions() {
|
||||||
|
const portalSessions = {};
|
||||||
|
|
||||||
|
for (const portal of ACTIVE_PORTALS) {
|
||||||
|
const jwt = portal.jwt;
|
||||||
|
if (jwt) {
|
||||||
|
portalSessions[portal[PORTAL_ID]] = jwt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof globalThis.localStorage !== "undefined") {
|
||||||
|
globalThis.localStorage.setItem(
|
||||||
|
"portal_sessions",
|
||||||
|
JSON.stringify(portalSessions),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export function loadSavedPortals(): Portal[] | null {
|
export function loadSavedPortals(): Portal[] | null {
|
||||||
let portals: string | null = null;
|
let portals: string | null = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue