@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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.71.0",
2
+ "version": "0.72.0",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {