@softistx/alxia-react-router 0.88.0 → 0.89.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 +5 -1
- package/dist/oidc/callback.d.ts +4 -0
- package/dist/oidc/callback.d.ts.map +1 -0
- package/dist/oidc/client.d.ts +57 -0
- package/dist/oidc/client.d.ts.map +1 -0
- package/dist/oidc/context.d.ts +42 -0
- package/dist/oidc/context.d.ts.map +1 -0
- package/dist/oidc/dpop-fetch.d.ts +2 -1
- package/dist/oidc/dpop-fetch.d.ts.map +1 -1
- package/dist/oidc/env.d.ts +1 -1
- package/dist/oidc/env.d.ts.map +1 -1
- package/dist/oidc/index.d.ts +2 -1
- package/dist/oidc/index.d.ts.map +1 -1
- package/dist/oidc/index.js +550 -486
- package/dist/oidc/index.js.map +18 -9
- package/dist/oidc/logout.d.ts +4 -0
- package/dist/oidc/logout.d.ts.map +1 -0
- package/dist/oidc/refresh.d.ts +10 -0
- package/dist/oidc/refresh.d.ts.map +1 -0
- package/dist/oidc/routes.d.ts +1 -1
- package/dist/oidc/routes.d.ts.map +1 -1
- package/dist/oidc/session.d.ts +7 -0
- package/dist/oidc/session.d.ts.map +1 -0
- package/dist/oidc/signin.d.ts +4 -0
- package/dist/oidc/signin.d.ts.map +1 -0
- package/dist/oidc/stored.d.ts +21 -0
- package/dist/oidc/stored.d.ts.map +1 -0
- package/dist/oidc/tokens.d.ts +13 -0
- package/dist/oidc/tokens.d.ts.map +1 -0
- package/dist/oidc/{oidc.d.ts → types.d.ts} +4 -59
- package/dist/oidc/{oidc.d.ts.map → types.d.ts.map} +1 -1
- package/dist/oidc/user.d.ts +6 -0
- package/dist/oidc/user.d.ts.map +1 -0
- package/dist/pwa/react/index.d.ts +2 -0
- package/dist/pwa/react/index.d.ts.map +1 -1
- package/dist/pwa/react/index.js +264 -3
- package/dist/pwa/react/index.js.map +6 -3
- package/dist/pwa/react/push-status.d.ts +31 -0
- package/dist/pwa/react/push-status.d.ts.map +1 -0
- package/dist/pwa/react/push-store.d.ts +55 -0
- package/dist/pwa/react/push-store.d.ts.map +1 -0
- package/dist/pwa/react/use-push-subscription.d.ts +15 -0
- package/dist/pwa/react/use-push-subscription.d.ts.map +1 -0
- package/dist/pwa/worker/index.d.ts +2 -0
- package/dist/pwa/worker/index.d.ts.map +1 -1
- package/dist/pwa/worker/index.js +94 -4
- package/dist/pwa/worker/index.js.map +7 -6
- package/dist/pwa/worker/plan.d.ts +7 -0
- package/dist/pwa/worker/plan.d.ts.map +1 -1
- package/dist/pwa/worker/push.d.ts +48 -0
- package/dist/pwa/worker/push.d.ts.map +1 -0
- package/dist/pwa/worker/scope.d.ts +23 -0
- package/dist/pwa/worker/scope.d.ts.map +1 -1
- package/dist/pwa/worker/start-worker.d.ts +2 -0
- package/dist/pwa/worker/start-worker.d.ts.map +1 -1
- package/docs/guide/pwa.md +101 -1
- package/docs/troubleshooting.md +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1881,6 +1881,9 @@ From `@softistx/alxia-react-router/pwa/react` (`react`, an optional peer, is its
|
|
|
1881
1881
|
| `ServiceWorkerOptions` | its options |
|
|
1882
1882
|
| `useUpdateNotice(notice?)` | the `{ reload, later }` to show while a new version waits and "Later" was not asked, else `undefined`; always `undefined` on the server |
|
|
1883
1883
|
| `updateNotice` | the page's one `UpdateNoticeStore`, which `useServiceWorker` offers and `useUpdateNotice` reads by default |
|
|
1884
|
+
| `usePushSubscription()` | Web Push from the page: `status`, `supported`, `permission`, `installedPwa`, `subscription`, `subscribe(vapidPublicKey)` (asks permission only inside the call; resolves the subscription's `toJSON()`) and `unsubscribe()` (resolves the endpoint); never prompts on mount |
|
|
1885
|
+
| `usePushStatus()`, `derivePushStatus(facts)`, `PushStatus`, `PushFacts`, `PushPermission` | the status alone: `available`, `asking`, `granted`, `denied`, `install-required` or `unsupported`, for an opt-in card's `status` prop |
|
|
1886
|
+
| `PushSubscriptionState`, `PushSubscriptionJson`, `urlBase64ToBytes(key)` | the hook's return type, the `toJSON()` shape `subscribe()` resolves, and the base64url VAPID key decoder |
|
|
1884
1887
|
|
|
1885
1888
|
From `@softistx/alxia-react-router/pwa/server` (`@softistx/alxia` is its only package import):
|
|
1886
1889
|
|
|
@@ -1895,7 +1898,8 @@ From `@softistx/alxia-react-router/pwa/worker` (the six `workbox-*` packages, op
|
|
|
1895
1898
|
| export | |
|
|
1896
1899
|
| --- | --- |
|
|
1897
1900
|
| `startWorker(options)` | the worker's strategies: the precache route, `NetworkOnly` for a page load with the precached offline page as its fallback, `CacheFirst` for hashed bundles, `StaleWhileRevalidate` for other static files (both storing only what `isStorable` accepts), the obsolete caches swept on `activate`, and `SKIP_WAITING` applied |
|
|
1898
|
-
| `WorkerOptions` | `contract` (required), `caching`, `assets`, `static`, `navigationPreload`, `precache` |
|
|
1901
|
+
| `WorkerOptions` | `contract` (required), `caching`, `assets`, `static`, `navigationPreload`, `precache`, `push` |
|
|
1902
|
+
| `handlePush(event, options?)`, `handleNotificationClick(event)` | the push helpers `startWorker({ push: true })` registers: show a `{ title, body?, url?, tag? }` payload (a generic title when there is none), and on click focus or open a same-origin `url`, refusing a cross-origin one ([guide](docs/guide/pwa.md#push-notifications)) |
|
|
1899
1903
|
| `injectedPrecache()` | the precache list the build wrote into the worker, or `undefined`; filter it and pass the result as `WorkerOptions.precache` |
|
|
1900
1904
|
| `ExpirationOptions` | `{ maxEntries?, maxAgeSeconds? }` |
|
|
1901
1905
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OidcContext } from './context';
|
|
2
|
+
/** `OidcClient.callback`: state, code exchange, id token, token cookie, redirect to `next`. */
|
|
3
|
+
export declare function callback(ctx: OidcContext, request: Request): Promise<Response>;
|
|
4
|
+
//# sourceMappingURL=callback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../src/oidc/callback.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAsD7C,+FAA+F;AAC/F,wBAAsB,QAAQ,CAC7B,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,OAAO,GACd,OAAO,CAAC,QAAQ,CAAC,CA6CnB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { OidcOptions, OidcUser } from './types';
|
|
2
|
+
/** The relying party `oidcClient` returns. */
|
|
3
|
+
export interface OidcClient {
|
|
4
|
+
/** The route action or loader that starts the sign-in: a redirect to the issuer. `?next=` is kept, through `safeNext`. */
|
|
5
|
+
signIn(request: Request): Promise<Response>;
|
|
6
|
+
/** The redirect route: checks state, exchanges the code, validates the id token, sets the token cookie and redirects to `next`. Throws `OidcError`. */
|
|
7
|
+
callback(request: Request): Promise<Response>;
|
|
8
|
+
/** The signed-in user (refreshed if due), or `null`. */
|
|
9
|
+
oidcUser(request: Request): Promise<OidcUser | null>;
|
|
10
|
+
/**
|
|
11
|
+
* Refreshes `user` from its own tokens (not the request's cookie, which a rotation
|
|
12
|
+
* leaves behind) when its access token ends within `refreshSkewSeconds`, and returns
|
|
13
|
+
* the new user, whose `headers` hold the `Set-Cookie` to send; `user` itself when
|
|
14
|
+
* nothing is due, or with `{ force: true }` always. A forced refresh inside the
|
|
15
|
+
* flight window of `refreshFlightMs` shares that flight's tokens; with no refresh
|
|
16
|
+
* token it returns `user` while its access token is valid. A refresh that fails
|
|
17
|
+
* throws `OidcError` (`refresh-failed`) when the access token has ended, else
|
|
18
|
+
* returns `user`. Only a user this client returned can be refreshed (else
|
|
19
|
+
* `TypeError`).
|
|
20
|
+
*/
|
|
21
|
+
refresh(user: OidcUser, options?: {
|
|
22
|
+
readonly force?: boolean | undefined;
|
|
23
|
+
}): Promise<OidcUser>;
|
|
24
|
+
/** Like `oidcUser`, but throws a redirect to the sign-in route (with a safe `next`) when there is none. */
|
|
25
|
+
requireOidcUser(request: Request): Promise<OidcUser>;
|
|
26
|
+
/** Clears the token cookie (after revoking the tokens with `revokeOnLogout`) and redirects to the issuer's `end_session_endpoint` (with `id_token_hint`), else to `postLogoutRedirectUri` or `/`. Call it from an action. */
|
|
27
|
+
logout(request: Request): Promise<Response>;
|
|
28
|
+
/** The cookie names as sent, prefixes included. */
|
|
29
|
+
readonly names: {
|
|
30
|
+
readonly session: string;
|
|
31
|
+
readonly challenge: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A BFF as the relying party of an external OpenID Connect issuer:
|
|
36
|
+
* authorization code with PKCE (S256), state and nonce in a short-lived
|
|
37
|
+
* `__Host-` challenge cookie, discovery (cached), the code exchange, the id
|
|
38
|
+
* token validated against the issuer's keys (`jose`, an optional peer), the
|
|
39
|
+
* tokens in a sealed `__Host-` cookie, a single-flight refresh and
|
|
40
|
+
* RP-initiated logout.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* export const oidc = oidcClient({
|
|
44
|
+
* issuer: 'https://id.example.com',
|
|
45
|
+
* clientId: 'my-app',
|
|
46
|
+
* clientSecret: process.env.OIDC_CLIENT_SECRET,
|
|
47
|
+
* redirectUri: 'https://app.example.com/auth/callback',
|
|
48
|
+
* scopes: ['openid', 'profile', 'email', 'offline_access'],
|
|
49
|
+
* secret: process.env.SESSION_SECRET!,
|
|
50
|
+
* name: 'my-app_oidc',
|
|
51
|
+
* secure: !import.meta.env.DEV,
|
|
52
|
+
* });
|
|
53
|
+
* // routes/auth.callback.ts: export const loader = ({ request }) => oidc.callback(request);
|
|
54
|
+
* // any loader: const { claims, headers } = await oidc.requireOidcUser(request);
|
|
55
|
+
*/
|
|
56
|
+
export declare function oidcClient(options: OidcOptions): OidcClient;
|
|
57
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/oidc/client.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAErD,8CAA8C;AAC9C,MAAM,WAAW,UAAU;IAC1B,0HAA0H;IAC1H,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5C,uJAAuJ;IACvJ,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9C,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IACrD;;;;;;;;;;OAUG;IACH,OAAO,CACN,IAAI,EAAE,QAAQ,EACd,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GAChD,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrB,2GAA2G;IAC3G,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrD,6NAA6N;IAC7N,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5C,mDAAmD;IACnD,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CACzE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAW3D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type SessionCookies } from '../session/cookies';
|
|
2
|
+
import { type DpopKey, type NonceMemory } from './dpop';
|
|
3
|
+
import { type DpopSigning, type Fetcher, issuerClient } from './flow';
|
|
4
|
+
import { sealer } from './seal';
|
|
5
|
+
import type { Stored } from './stored';
|
|
6
|
+
import type { OidcOptions, OidcUser } from './types';
|
|
7
|
+
export declare const CHALLENGE_SECONDS = 600;
|
|
8
|
+
/** What every concern of the client reads: the options resolved once, and the state they share. */
|
|
9
|
+
export interface OidcContext {
|
|
10
|
+
readonly options: OidcOptions;
|
|
11
|
+
readonly issuer: string;
|
|
12
|
+
readonly clientId: string;
|
|
13
|
+
readonly redirectUri: string;
|
|
14
|
+
readonly signInPath: string;
|
|
15
|
+
readonly sessionSeconds: number;
|
|
16
|
+
readonly refreshSkewSeconds: number;
|
|
17
|
+
readonly refreshFlightMs: number;
|
|
18
|
+
readonly scopes: readonly string[];
|
|
19
|
+
/** The token request's extra parameters, without the client's credentials. */
|
|
20
|
+
readonly extraTokenParams: Readonly<Record<string, string>>;
|
|
21
|
+
readonly now: () => number;
|
|
22
|
+
readonly cookies: SessionCookies;
|
|
23
|
+
readonly flowSeal: ReturnType<typeof sealer>;
|
|
24
|
+
readonly tokenSeal: ReturnType<typeof sealer>;
|
|
25
|
+
readonly issuerApi: ReturnType<typeof issuerClient>;
|
|
26
|
+
readonly fetcher: Fetcher;
|
|
27
|
+
readonly client: {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly secret: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly par: 'auto' | 'always' | 'never';
|
|
32
|
+
readonly dpopAlg: 'ES256' | 'EdDSA' | undefined;
|
|
33
|
+
readonly nonces: NonceMemory;
|
|
34
|
+
readonly signing: (key: DpopKey | undefined) => DpopSigning | undefined;
|
|
35
|
+
/** Refreshes in flight (or just done), by refresh token. */
|
|
36
|
+
readonly flights: Map<string, Promise<Stored>>;
|
|
37
|
+
/** The tokens behind each user this client returned. */
|
|
38
|
+
readonly stores: WeakMap<OidcUser, Stored>;
|
|
39
|
+
}
|
|
40
|
+
/** Validates the options and resolves them once. Throws `TypeError` on a bad option. */
|
|
41
|
+
export declare function createContext(options: OidcOptions): OidcContext;
|
|
42
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/oidc/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAe,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGrD,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAGrC,mGAAmG;AACnG,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,8EAA8E;IAC9E,QAAQ,CAAC,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IACpD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;KACpC,CAAC;IACF,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,KAAK,WAAW,GAAG,SAAS,CAAC;IACxE,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;CAC3C;AAqDD,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,CAyE/D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { OidcClient
|
|
1
|
+
import type { OidcClient } from './client';
|
|
2
|
+
import type { OidcUser } from './types';
|
|
2
3
|
/** A `fetch` that calls a resource as one signed-in user. */
|
|
3
4
|
export type DpopFetch = (input: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4
5
|
/** The part of the relying party `dpopFetch` needs. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dpop-fetch.d.ts","sourceRoot":"","sources":["../../src/oidc/dpop-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dpop-fetch.d.ts","sourceRoot":"","sources":["../../src/oidc/dpop-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,6DAA6D;AAC7D,MAAM,MAAM,SAAS,GAAG,CACvB,KAAK,EAAE,MAAM,GAAG,GAAG,EACnB,IAAI,CAAC,EAAE,WAAW,KACd,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEvB,uDAAuD;AACvD,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAExD,oCAAoC;AACpC,MAAM,WAAW,gBAAgB;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CACxB,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,QAAQ,EACd,OAAO,GAAE,gBAAqB,GAC5B,SAAS,CAgBX"}
|
package/dist/oidc/env.d.ts
CHANGED
package/dist/oidc/env.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/oidc/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/oidc/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,+DAA+D;AAC/D,qBAAa,YAAa,SAAQ,KAAK;IAE1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE;IADhD,SAAkB,IAAI,kBAAkB;gBACnB,QAAQ,EAAE,SAAS,MAAM,EAAE;CAKhD;AAED,sCAAsC;AACtC,MAAM,WAAW,aAAa;IAC7B,qEAAqE;IACrE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,iDAAiD;IACjD,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IACxE,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IACpE,qHAAqH;IACrH,QAAQ,CAAC,QAAQ,CAAC,EACf,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,GACtD,SAAS,CAAC;CACb;AAED,kFAAkF;AAClF,MAAM,MAAM,cAAc,GAAG,IAAI,CAChC,WAAW,EACT,QAAQ,GACR,UAAU,GACV,cAAc,GACd,aAAa,GACb,QAAQ,GACR,MAAM,GACN,uBAAuB,CACzB,CAAC;AAiHF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,WAAW,CAChC,MAAM,GAAE,aAAkB,GACxB,OAAO,CAAC,cAAc,CAAC,CAqCzB"}
|
package/dist/oidc/index.d.ts
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* `react-router`, `/session`'s cookie helpers and `jose` (an optional peer),
|
|
6
6
|
* nothing else.
|
|
7
7
|
*/
|
|
8
|
+
export { type OidcClient, oidcClient } from './client';
|
|
8
9
|
export { type DpopAlgorithm, type DpopBinding, type DpopKey, type DpopProofInput, generateDpopKey, signDpopProof, } from './dpop';
|
|
9
10
|
export { type DpopFetch, type DpopFetchOptions, type DpopRefresher, dpopFetch, } from './dpop-fetch';
|
|
10
11
|
export { OidcEnvError, type OidcEnvOptions, type OidcEnvSource, oidcFromEnv, } from './env';
|
|
11
12
|
export { OidcError, type OidcErrorCode } from './errors';
|
|
12
|
-
export { type OidcClient, type OidcOptions, type OidcUser, oidcClient, } from './oidc';
|
|
13
13
|
export { type CallbackRouteOptions, callbackRoute, type SignInRouteOptions, type SignOutRouteOptions, signInRoute, signOutRoute, } from './routes';
|
|
14
|
+
export type { OidcOptions, OidcUser } from './types';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/oidc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/oidc/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,eAAe,EACf,aAAa,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACN,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,SAAS,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,WAAW,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EACN,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/oidc/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EACN,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,eAAe,EACf,aAAa,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACN,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,SAAS,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,WAAW,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EACN,KAAK,oBAAoB,EACzB,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,WAAW,EACX,YAAY,GACZ,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|