@passflow/react 0.24.0 → 0.25.1
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/CHANGELOG.md +21 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +114 -114
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/provider/passflow-provider.d.cts +7 -29
- package/dist/src/components/provider/passflow-provider.d.ts +7 -29
- package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
- package/dist/src/components/provider/upgrade-provider.d.cts +9 -2
- package/dist/src/components/provider/upgrade-provider.d.ts +9 -2
- package/dist/src/components/provider/upgrade-provider.d.ts.map +1 -1
- package/dist/src/hooks/use-consent.d.ts.map +1 -1
- package/dist/src/utils/form-post.d.cts +7 -0
- package/dist/src/utils/form-post.d.ts +7 -0
- package/dist/src/utils/form-post.d.ts.map +1 -0
- package/dist/src/utils/index.d.cts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -126,36 +126,14 @@ type ParentChallengeMeta = {
|
|
|
126
126
|
max_age?: number;
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
130
|
-
* challenge is present in the URL AND the SDK has an existing
|
|
131
|
-
* session AND the parent allows exchange (no `prompt=login`,
|
|
132
|
-
* `max_age` not exceeded), POST the access token to
|
|
133
|
-
* /auth/session/exchange so the OP can issue a fresh authorization
|
|
134
|
-
* code for the RP without re-prompting the user.
|
|
129
|
+
* Where the exchange-on-mount probe stands.
|
|
135
130
|
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* -
|
|
142
|
-
* the redirect (sole owner of redirect_url navigation; this hook
|
|
143
|
-
* must never navigate on OK responses — see the res.ok branch).
|
|
144
|
-
* - 403 { error: "upgrade_required", ... } → falls through to the
|
|
145
|
-
* login form. Factor elevation on an existing session is
|
|
146
|
-
* `UpgradeProvider`'s flow, not this probe's.
|
|
147
|
-
* - 401 → clear stale tokens, fall through to login form.
|
|
148
|
-
*
|
|
149
|
-
* On any decision-point that ends with "render login form," the
|
|
150
|
-
* SDK consumer's existing PassflowFlow render path picks up
|
|
151
|
-
* naturally.
|
|
152
|
-
*/
|
|
153
|
-
/**
|
|
154
|
-
* `'upgrade_required'` is vestigial and kept deliberately (§8.4): it is
|
|
155
|
-
* unreachable today — the 403 branch below sets `'fallback_to_login'` — and
|
|
156
|
-
* removing a member from an exported union would be a type-level breaking
|
|
157
|
-
* change for anyone reading `OIDCExchangeContextValue`. Assurance elevation is
|
|
158
|
-
* now `UpgradeProvider`'s job, not a placeholder's.
|
|
131
|
+
* - `idle`: nothing attempted yet (no parent, or the app id is unknown).
|
|
132
|
+
* - `exchanging`: the exchange is in flight, or it answered and the browser is
|
|
133
|
+
* on its way back to the relying party.
|
|
134
|
+
* - `upgrade_required`: the hosted session needs a step-up before it can be
|
|
135
|
+
* exchanged, and the step-up dialog is open.
|
|
136
|
+
* - `fallback_to_login`: no usable hosted session; the sign-in form renders.
|
|
159
137
|
*/
|
|
160
138
|
type ExchangeState = 'idle' | 'exchanging' | 'upgrade_required' | 'fallback_to_login';
|
|
161
139
|
/**
|
|
@@ -126,36 +126,14 @@ type ParentChallengeMeta = {
|
|
|
126
126
|
max_age?: number;
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
130
|
-
* challenge is present in the URL AND the SDK has an existing
|
|
131
|
-
* session AND the parent allows exchange (no `prompt=login`,
|
|
132
|
-
* `max_age` not exceeded), POST the access token to
|
|
133
|
-
* /auth/session/exchange so the OP can issue a fresh authorization
|
|
134
|
-
* code for the RP without re-prompting the user.
|
|
129
|
+
* Where the exchange-on-mount probe stands.
|
|
135
130
|
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* -
|
|
142
|
-
* the redirect (sole owner of redirect_url navigation; this hook
|
|
143
|
-
* must never navigate on OK responses — see the res.ok branch).
|
|
144
|
-
* - 403 { error: "upgrade_required", ... } → falls through to the
|
|
145
|
-
* login form. Factor elevation on an existing session is
|
|
146
|
-
* `UpgradeProvider`'s flow, not this probe's.
|
|
147
|
-
* - 401 → clear stale tokens, fall through to login form.
|
|
148
|
-
*
|
|
149
|
-
* On any decision-point that ends with "render login form," the
|
|
150
|
-
* SDK consumer's existing PassflowFlow render path picks up
|
|
151
|
-
* naturally.
|
|
152
|
-
*/
|
|
153
|
-
/**
|
|
154
|
-
* `'upgrade_required'` is vestigial and kept deliberately (§8.4): it is
|
|
155
|
-
* unreachable today — the 403 branch below sets `'fallback_to_login'` — and
|
|
156
|
-
* removing a member from an exported union would be a type-level breaking
|
|
157
|
-
* change for anyone reading `OIDCExchangeContextValue`. Assurance elevation is
|
|
158
|
-
* now `UpgradeProvider`'s job, not a placeholder's.
|
|
131
|
+
* - `idle`: nothing attempted yet (no parent, or the app id is unknown).
|
|
132
|
+
* - `exchanging`: the exchange is in flight, or it answered and the browser is
|
|
133
|
+
* on its way back to the relying party.
|
|
134
|
+
* - `upgrade_required`: the hosted session needs a step-up before it can be
|
|
135
|
+
* exchanged, and the step-up dialog is open.
|
|
136
|
+
* - `fallback_to_login`: no usable hosted session; the sign-in form renders.
|
|
159
137
|
*/
|
|
160
138
|
type ExchangeState = 'idle' | 'exchanging' | 'upgrade_required' | 'fallback_to_login';
|
|
161
139
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAMpB,MAAM,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AAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qBAAqB,QAC6F,CAAC;AAEhI;;;GAGG;AACH,eAAO,MAAM,2BAA2B,QAAmC,CAAC;AAiC5E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAA+B,CAAC;AA0L3E;;;GAGG;AACH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;GASG;AACH,KAAK,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AA4NtF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAyIF,eAAO,MAAM,mBAAmB,yCAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAqNtD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `UpgradeProvider` — the React side of the assurance-upgrade flow (§8.3).
|
|
3
3
|
*
|
|
4
|
-
* It owns the controller (through `passflow.upgrade`
|
|
4
|
+
* It owns the controller (through `passflow.upgrade`, or the `facade` it is
|
|
5
|
+
* given), bridges the
|
|
5
6
|
* promise-returning `UpgradePromptHandler` to React state, and mounts the
|
|
6
7
|
* dialog from `src/components/ui/upgrade-dialog`. It selects a state and maps
|
|
7
8
|
* domain data onto that component's props; it renders no UI of its own and
|
|
@@ -34,13 +35,19 @@
|
|
|
34
35
|
* `session changed`, which the hook reports as `idle` — nothing that did not
|
|
35
36
|
* happen is reported as though it had.
|
|
36
37
|
*/
|
|
37
|
-
import { type ReplayPolicy, type UpgradeDiagnosticSink, type UpgradeFactor } from '@passflow/core';
|
|
38
|
+
import { type ReplayPolicy, type UpgradeDiagnosticSink, type UpgradeFacade, type UpgradeFactor } from '@passflow/core';
|
|
38
39
|
import { type FC, type ReactElement, type ReactNode } from 'react';
|
|
39
40
|
import type { UpgradeDialogLabels, UpgradeDialogProps } from '../ui/upgrade-dialog/index.cjs';
|
|
40
41
|
export type UpgradeProviderProps = {
|
|
41
42
|
children?: ReactNode;
|
|
42
43
|
/** Default `true`. `false` installs nothing and leaves the hook inert. */
|
|
43
44
|
enabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The upgrade facade to install and elevate through. Defaults to
|
|
47
|
+
* `passflow.upgrade`. The hosted login passes `passflow.hostedUpgrade`, which
|
|
48
|
+
* proves factors against the hosted session cookie instead of stored tokens.
|
|
49
|
+
*/
|
|
50
|
+
facade?: UpgradeFacade;
|
|
44
51
|
/**
|
|
45
52
|
* Where the customer's own API is — domain 2 (§13.5). Nothing outside this
|
|
46
53
|
* and Passflow's own API is ever observed, and there is no allow-all opt-in.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `UpgradeProvider` — the React side of the assurance-upgrade flow (§8.3).
|
|
3
3
|
*
|
|
4
|
-
* It owns the controller (through `passflow.upgrade`
|
|
4
|
+
* It owns the controller (through `passflow.upgrade`, or the `facade` it is
|
|
5
|
+
* given), bridges the
|
|
5
6
|
* promise-returning `UpgradePromptHandler` to React state, and mounts the
|
|
6
7
|
* dialog from `src/components/ui/upgrade-dialog`. It selects a state and maps
|
|
7
8
|
* domain data onto that component's props; it renders no UI of its own and
|
|
@@ -34,13 +35,19 @@
|
|
|
34
35
|
* `session changed`, which the hook reports as `idle` — nothing that did not
|
|
35
36
|
* happen is reported as though it had.
|
|
36
37
|
*/
|
|
37
|
-
import { type ReplayPolicy, type UpgradeDiagnosticSink, type UpgradeFactor } from '@passflow/core';
|
|
38
|
+
import { type ReplayPolicy, type UpgradeDiagnosticSink, type UpgradeFacade, type UpgradeFactor } from '@passflow/core';
|
|
38
39
|
import { type FC, type ReactElement, type ReactNode } from 'react';
|
|
39
40
|
import type { UpgradeDialogLabels, UpgradeDialogProps } from '../ui/upgrade-dialog/index.js';
|
|
40
41
|
export type UpgradeProviderProps = {
|
|
41
42
|
children?: ReactNode;
|
|
42
43
|
/** Default `true`. `false` installs nothing and leaves the hook inert. */
|
|
43
44
|
enabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The upgrade facade to install and elevate through. Defaults to
|
|
47
|
+
* `passflow.upgrade`. The hosted login passes `passflow.hostedUpgrade`, which
|
|
48
|
+
* proves factors against the hosted session cookie instead of stored tokens.
|
|
49
|
+
*/
|
|
50
|
+
facade?: UpgradeFacade;
|
|
44
51
|
/**
|
|
45
52
|
* Where the customer's own API is — domain 2 (§13.5). Nothing outside this
|
|
46
53
|
* and Passflow's own API is ever observed, and there is no allow-all opt-in.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/upgrade-provider.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"upgrade-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/upgrade-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,EAIL,KAAK,YAAY,EAGjB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,aAAa,EAOnB,MAAM,gBAAgB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.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-consent.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-consent.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,EAAE,GAAG,OAAO,GAAG,WAAW,CAAC;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAWF,MAAM,MAAM,aAAa;AACvB,mCAAmC;AACjC,SAAS;AACX,sDAAsD;GACpD,OAAO;AACT,+BAA+B;GAC7B,SAAS;AACX,uEAAuE;GACrE,aAAa;AACf,gFAAgF;GAC9E,SAAS,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,yEAAyE;IACzE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B,mEAAmE;IACnE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,oBAAoB,CAAC;IACvD,4DAA4D;IAC5D,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B,CAAC;AAMF,eAAO,MAAM,UAAU,QAAO,eAwJ7B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute a `form_post` answer: OIDC response_mode=form_post requires the
|
|
3
|
+
* parameters to arrive as a POST body, which only a real form submission can
|
|
4
|
+
* do cross-origin.
|
|
5
|
+
*/
|
|
6
|
+
export declare const submitFormPost: (action: string, fields: Record<string, string>) => void;
|
|
7
|
+
//# sourceMappingURL=form-post.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute a `form_post` answer: OIDC response_mode=form_post requires the
|
|
3
|
+
* parameters to arrive as a POST body, which only a real form submission can
|
|
4
|
+
* do cross-origin.
|
|
5
|
+
*/
|
|
6
|
+
export declare const submitFormPost: (action: string, fields: Record<string, string>) => void;
|
|
7
|
+
//# sourceMappingURL=form-post.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-post.d.ts","sourceRoot":"","sources":["../../../src/utils/form-post.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,cAAc,WAAY,MAAM,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,IAgB/E,CAAC"}
|
|
@@ -4,6 +4,7 @@ export { classifyTwoFactorError, getUserFriendlyErrorMessage, isTerminalTwoFacto
|
|
|
4
4
|
export { cn } from './cn.cjs';
|
|
5
5
|
export * from './dayjs/index.cjs';
|
|
6
6
|
export { type EmailCodeStepEvent, type EmailCodeStepState, emailCodeStepReducer, initialEmailCodeStepState, readEmailVerificationStep, } from './email-verification.cjs';
|
|
7
|
+
export { submitFormPost } from './form-post.cjs';
|
|
7
8
|
export { type AuthMethods, getAuthMethods } from './get-auth-methods.cjs';
|
|
8
9
|
export { getIdentityLabel, getPasswordlessData, getValidationErrorsLabel } from './get-form-labels.cjs';
|
|
9
10
|
export { getUrlErrors } from './get-url-errors.cjs';
|
|
@@ -4,6 +4,7 @@ export { classifyTwoFactorError, getUserFriendlyErrorMessage, isTerminalTwoFacto
|
|
|
4
4
|
export { cn } from './cn.js';
|
|
5
5
|
export * from './dayjs/index.js';
|
|
6
6
|
export { type EmailCodeStepEvent, type EmailCodeStepState, emailCodeStepReducer, initialEmailCodeStepState, readEmailVerificationStep, } from './email-verification.js';
|
|
7
|
+
export { submitFormPost } from './form-post.js';
|
|
7
8
|
export { type AuthMethods, getAuthMethods } from './get-auth-methods.js';
|
|
8
9
|
export { getIdentityLabel, getPasswordlessData, getValidationErrorsLabel } from './get-form-labels.js';
|
|
9
10
|
export { getUrlErrors } from './get-url-errors.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,gCAAgC,EAChC,8BAA8B,EAC9B,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,gBAAgB,EAChB,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,oBAAoB,EACpB,iCAAiC,EACjC,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,cAAc,CAAC;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,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,UAAU,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,QAAQ,GACT,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,cAAc,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@passflow/react",
|
|
3
3
|
"description": "Passflow React UI Kit",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.25.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@passflow/core": "^0.
|
|
54
|
+
"@passflow/core": "^0.30.1",
|
|
55
55
|
"@radix-ui/react-dialog": "^1.3.1",
|
|
56
56
|
"@radix-ui/react-popover": "^1.3.1",
|
|
57
57
|
"@simplewebauthn/browser": "^14.0.0",
|