@absolutejs/auth 0.71.0 → 0.72.0
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/README.md +11 -5
- package/dist/client/index.js +35 -12
- package/dist/client/index.js.map +5 -4
- package/dist/client/mobile.js +35 -12
- package/dist/client/mobile.js.map +5 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +47 -2
- package/dist/index.js.map +6 -5
- package/dist/server.d.ts +1 -0
- package/dist/server.js +46 -2
- package/dist/server.js.map +7 -6
- package/dist/syncBridge.d.ts +8 -0
- package/dist/syncNamespace.d.ts +8 -0
- package/package.json +1 -1
package/dist/syncBridge.d.ts
CHANGED
|
@@ -18,5 +18,13 @@ export type AbsoluteAuthSyncBridge<UserType> = {
|
|
|
18
18
|
resolveBearer: (input: {
|
|
19
19
|
authorization?: string;
|
|
20
20
|
}) => Promise<AbsoluteAuthSyncContext<UserType> | undefined>;
|
|
21
|
+
/** Resolve only a verified browser session previously derived by Auth. The
|
|
22
|
+
* caller must independently enforce an exact same-origin request boundary. */
|
|
23
|
+
resolveSession: (input: {
|
|
24
|
+
authPrincipal?: unknown;
|
|
25
|
+
}) => Promise<{
|
|
26
|
+
context: AbsoluteAuthSyncContext<UserType>;
|
|
27
|
+
namespace: string;
|
|
28
|
+
} | undefined>;
|
|
21
29
|
};
|
|
22
30
|
export declare const createAbsoluteAuthSyncBridge: <UserType>(accessTokens: AccessTokenPrincipalConfig<UserType>) => AbsoluteAuthSyncBridge<UserType>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Derive a non-reversible local Sync partition without persisting user PII. */
|
|
2
|
+
export declare const deriveAuthSyncNamespace: ({ clientId, issuer, partition, subject }: {
|
|
3
|
+
clientId: string;
|
|
4
|
+
issuer: string;
|
|
5
|
+
partition?: string;
|
|
6
|
+
subject: string;
|
|
7
|
+
}) => Promise<string>;
|
|
8
|
+
export declare const readAuthSyncPartition: (user: unknown) => string | undefined;
|
package/package.json
CHANGED