mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-11-28 12:53:04 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0efd8a8674 | |||
| 1bf01cadc7 | |||
| 1bd2f64729 |
@@ -32,7 +32,7 @@
|
||||
"prettier-plugin-svelte": "^3.3.3",
|
||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||
"svelte": "^5.28.6",
|
||||
"svelte-check": "^4.1.7",
|
||||
"svelte-check": "^4.2.0",
|
||||
"tailwindcss": "^4.1.6",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.8.3",
|
||||
|
||||
Generated
+5
-5
@@ -87,8 +87,8 @@ importers:
|
||||
specifier: ^5.28.6
|
||||
version: 5.28.6
|
||||
svelte-check:
|
||||
specifier: ^4.1.7
|
||||
version: 4.1.7(picomatch@4.0.2)(svelte@5.28.6)(typescript@5.8.3)
|
||||
specifier: ^4.2.0
|
||||
version: 4.2.0(picomatch@4.0.2)(svelte@5.28.6)(typescript@5.8.3)
|
||||
tailwindcss:
|
||||
specifier: ^4.1.6
|
||||
version: 4.1.6
|
||||
@@ -2728,10 +2728,10 @@ packages:
|
||||
}
|
||||
engines: { node: '>=8' }
|
||||
|
||||
svelte-check@4.1.7:
|
||||
svelte-check@4.2.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-1jX4BzXrQJhC/Jt3SqYf6Ntu//vmfc6VWp07JkRfK2nn+22yIblspVUo96gzMkg0Zov8lQicxhxsMzOctwcMQQ==
|
||||
integrity: sha512-79ozTLjGBQ2R5PvZ7enSYBsMyY1fy3pwQ/N1BtuTVXtQRH9Vc10eV66LePV52t1ZlflZBTkIGz79cStPnCUEEQ==
|
||||
}
|
||||
engines: { node: '>= 18.0.0' }
|
||||
hasBin: true
|
||||
@@ -4492,7 +4492,7 @@ snapshots:
|
||||
dependencies:
|
||||
has-flag: 4.0.0
|
||||
|
||||
svelte-check@4.1.7(picomatch@4.0.2)(svelte@5.28.6)(typescript@5.8.3):
|
||||
svelte-check@4.2.0(picomatch@4.0.2)(svelte@5.28.6)(typescript@5.8.3):
|
||||
dependencies:
|
||||
'@jridgewell/trace-mapping': 0.3.25
|
||||
chokidar: 4.0.3
|
||||
|
||||
@@ -59,17 +59,27 @@
|
||||
await $pocketbase
|
||||
.collection('_superusers')
|
||||
.authRefresh()
|
||||
.catch(() => {
|
||||
$pocketbase.authStore.clear();
|
||||
goto('/login');
|
||||
.catch((err) => {
|
||||
// clear the store only on invalidated/expired token
|
||||
const status = err?.status << 0;
|
||||
if (status == 401 || status == 403) {
|
||||
$pocketbase.authStore.clear();
|
||||
goto('/login');
|
||||
} else {
|
||||
console.log('NOT CLEARED');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
await $pocketbase
|
||||
.collection('users')
|
||||
.authRefresh()
|
||||
.catch(() => {
|
||||
$pocketbase.authStore.clear();
|
||||
goto('/login');
|
||||
.catch((err) => {
|
||||
// clear the store only on invalidated/expired token
|
||||
const status = err?.status << 0;
|
||||
if (status == 401 || status == 403) {
|
||||
$pocketbase.authStore.clear();
|
||||
goto('/login');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user