@everystack/admin 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everystack/admin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Declarative admin dashboard framework for PostgREST APIs",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"author": "Scalable Technology, Inc. <licensing@scalable.technology>",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"react-test-renderer": "19.2.0",
|
|
84
84
|
"ts-jest": "29.4.9",
|
|
85
85
|
"typescript": "5.9.3",
|
|
86
|
-
"@everystack/api": "0.4.
|
|
86
|
+
"@everystack/api": "0.4.2",
|
|
87
87
|
"@everystack/ui": "0.4.1"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
@@ -23,6 +23,15 @@ const POSTGREST_OPERATORS = new Set([
|
|
|
23
23
|
'sl', 'sr', 'nxl', 'nxr', 'adj', 'ov', 'fts',
|
|
24
24
|
]);
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* `onTokenExpired` and `onAuthFailure` (inherited from `ClientOptions`) are how
|
|
28
|
+
* the admin survives a session longer than the access token's TTL. Without
|
|
29
|
+
* `onTokenExpired`, `getToken` keeps handing every request the same dead token
|
|
30
|
+
* forever — the user stays "logged in" while every screen 401s. `onAuthFailure`
|
|
31
|
+
* fires only once refresh itself is unrecoverable (refresh token also
|
|
32
|
+
* expired/revoked) — wire it to sign the user out for real. See
|
|
33
|
+
* `@everystack/auth/api`'s `refreshAuthToken` for a ready-made `onTokenExpired`.
|
|
34
|
+
*/
|
|
26
35
|
export interface EverystackAdapterOptions extends ClientOptions {
|
|
27
36
|
/**
|
|
28
37
|
* Resources whose list rows come from an RPC instead of the PostgREST table.
|