@passflow/react 0.13.0 → 0.15.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/CHANGELOG.md +43 -0
- package/README.md +21 -8
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.es.js +146 -143
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/error/index.d.cts +7 -0
- package/dist/src/components/error/index.d.ts +1 -1
- package/dist/src/components/error/index.d.ts.map +1 -1
- package/dist/src/components/flow/consent/index.d.cts +13 -0
- package/dist/src/components/flow/consent/index.d.ts +1 -1
- package/dist/src/components/flow/consent/index.d.ts.map +1 -1
- package/dist/src/components/flow/consent/screen.d.cts +9 -0
- package/dist/src/components/flow/consent/screen.d.ts +2 -2
- package/dist/src/components/flow/consent/screen.d.ts.map +1 -1
- package/dist/src/components/flow/device-verify/index.d.cts +10 -0
- package/dist/src/components/flow/device-verify/index.d.ts +1 -1
- package/dist/src/components/flow/device-verify/index.d.ts.map +1 -1
- package/dist/src/components/flow/device-verify/screen.d.cts +4 -0
- package/dist/src/components/flow/device-verify/screen.d.ts +2 -2
- package/dist/src/components/flow/device-verify/screen.d.ts.map +1 -1
- package/dist/src/components/flow/index.d.cts +5 -0
- package/dist/src/components/flow/index.d.ts +4 -4
- package/dist/src/components/flow/index.d.ts.map +1 -1
- package/dist/src/components/flow/passflow/index.d.cts +16 -0
- package/dist/src/components/flow/passflow/index.d.ts +5 -1
- package/dist/src/components/flow/passflow/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-setup/index.d.cts +10 -0
- package/dist/src/components/flow/two-factor-setup/index.d.ts +2 -2
- package/dist/src/components/flow/two-factor-setup/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.cts +35 -0
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts +2 -2
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-verify/index.d.cts +11 -0
- package/dist/src/components/flow/two-factor-verify/index.d.ts +2 -2
- package/dist/src/components/flow/two-factor-verify/index.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/forgot-password-success.d.cts +2 -0
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts +1 -1
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/forgot-password.d.cts +9 -0
- package/dist/src/components/form/forgot-password/forgot-password.d.ts +1 -1
- package/dist/src/components/form/forgot-password/forgot-password.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/index.d.cts +3 -0
- package/dist/src/components/form/forgot-password/index.d.ts +2 -2
- package/dist/src/components/form/index.d.cts +10 -0
- package/dist/src/components/form/index.d.ts +9 -9
- package/dist/src/components/form/index.d.ts.map +1 -1
- package/dist/src/components/form/invitation-join/index.d.cts +7 -0
- package/dist/src/components/form/invitation-join/index.d.ts +1 -2
- package/dist/src/components/form/invitation-join/index.d.ts.map +1 -1
- package/dist/src/components/form/reset-password/index.d.cts +9 -0
- package/dist/src/components/form/reset-password/index.d.ts +2 -2
- package/dist/src/components/form/reset-password/index.d.ts.map +1 -1
- package/dist/src/components/form/signin/index.d.cts +15 -0
- package/dist/src/components/form/signin/index.d.ts +2 -2
- package/dist/src/components/form/signin/index.d.ts.map +1 -1
- package/dist/src/components/form/signup/index.d.cts +14 -0
- package/dist/src/components/form/signup/index.d.ts +2 -2
- package/dist/src/components/form/signup/index.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-challenge/index.d.cts +10 -0
- package/dist/src/components/form/two-factor-challenge/index.d.ts +1 -1
- package/dist/src/components/form/two-factor-challenge/index.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-challenge/method-selector.d.cts +12 -0
- package/dist/src/components/form/two-factor-challenge/method-selector.d.ts +2 -2
- package/dist/src/components/form/two-factor-setup/index.d.cts +2 -0
- package/dist/src/components/form/two-factor-setup/index.d.ts +1 -1
- package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.cts +9 -0
- package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts +1 -1
- package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-verify/index.d.cts +3 -0
- package/dist/src/components/form/two-factor-verify/index.d.ts +2 -2
- package/dist/src/components/form/two-factor-verify/index.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.cts +13 -0
- package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.cts +16 -0
- package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/index.d.cts +3 -0
- package/dist/src/components/form/verify-challenge/index.d.ts +2 -2
- package/dist/src/components/form/verify-challenge/timer-button.d.cts +9 -0
- package/dist/src/components/form/verify-challenge/timer-button.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/timer-button.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.cts +2 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.cts +16 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.cts +9 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts +1 -2
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.cts +12 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts +2 -2
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-success.d.cts +3 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts.map +1 -1
- package/dist/src/components/form/wrapper/index.d.cts +2 -0
- package/dist/src/components/form/wrapper/index.d.ts +1 -1
- package/dist/src/components/passkey/index.d.cts +7 -0
- package/dist/src/components/passkey/index.d.ts +1 -1
- package/dist/src/components/passkey/index.d.ts.map +1 -1
- package/dist/src/components/passkey/passkey-actions.d.cts +13 -0
- package/dist/src/components/passkey/passkey-actions.d.ts +1 -1
- package/dist/src/components/passkey/passkey-actions.d.ts.map +1 -1
- package/dist/src/components/passkey/passkey-dialog.d.cts +10 -0
- package/dist/src/components/passkey/passkey-dialog.d.ts +1 -1
- package/dist/src/components/passkey/passkey-list.d.cts +9 -0
- package/dist/src/components/passkey/passkey-list.d.ts +2 -2
- package/dist/src/components/passkey/passkey-list.d.ts.map +1 -1
- package/dist/src/components/provider/index.d.cts +4 -0
- package/dist/src/components/provider/index.d.ts +3 -3
- package/dist/src/components/provider/index.d.ts.map +1 -1
- package/dist/src/components/provider/passflow-provider.d.cts +160 -0
- package/dist/src/components/provider/passflow-provider.d.ts +24 -4
- package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
- package/dist/src/components/provider/upgrade-provider.d.cts +85 -0
- package/dist/src/components/provider/upgrade-provider.d.ts +39 -3
- package/dist/src/components/provider/upgrade-provider.d.ts.map +1 -1
- package/dist/src/components/ui/button/index.d.cts +34 -0
- package/dist/src/components/ui/button/index.d.ts +3 -2
- package/dist/src/components/ui/button/index.d.ts.map +1 -1
- package/dist/src/components/ui/continuing-status/index.d.cts +8 -0
- package/dist/src/components/ui/continuing-status/index.d.ts +8 -0
- package/dist/src/components/ui/continuing-status/index.d.ts.map +1 -0
- package/dist/src/components/ui/country-flag/index.d.cts +7 -0
- package/dist/src/components/ui/country-flag/index.d.ts +1 -1
- package/dist/src/components/ui/country-flag/index.d.ts.map +1 -1
- package/dist/src/components/ui/country-flag/positions.d.cts +245 -0
- package/dist/src/components/ui/country-flag/positions.d.ts +241 -241
- package/dist/src/components/ui/country-flag/positions.d.ts.map +1 -1
- package/dist/src/components/ui/dialog/index.d.cts +20 -0
- package/dist/src/components/ui/dialog/index.d.ts +18 -18
- package/dist/src/components/ui/dialog/index.d.ts.map +1 -1
- package/dist/src/components/ui/fields/field-otp.d.cts +35 -0
- package/dist/src/components/ui/fields/field-otp.d.ts +35 -0
- package/dist/src/components/ui/fields/field-otp.d.ts.map +1 -0
- package/dist/src/components/ui/fields/field-password.d.cts +13 -0
- package/dist/src/components/ui/fields/field-password.d.ts +4 -4
- package/dist/src/components/ui/fields/field-password.d.ts.map +1 -1
- package/dist/src/components/ui/fields/field-phone.d.cts +11 -0
- package/dist/src/components/ui/fields/field-phone.d.ts +1 -1
- package/dist/src/components/ui/fields/field-phone.d.ts.map +1 -1
- package/dist/src/components/ui/fields/field-text.d.cts +8 -0
- package/dist/src/components/ui/fields/field-text.d.ts +3 -3
- package/dist/src/components/ui/fields/field-text.d.ts.map +1 -1
- package/dist/src/components/ui/fields/index.d.cts +5 -0
- package/dist/src/components/ui/fields/index.d.ts +4 -3
- package/dist/src/components/ui/fields/index.d.ts.map +1 -1
- package/dist/src/components/ui/icon/index.d.cts +11 -0
- package/dist/src/components/ui/icon/index.d.ts +1 -1
- package/dist/src/components/ui/icon/index.d.ts.map +1 -1
- package/dist/src/components/ui/index.d.cts +14 -0
- package/dist/src/components/ui/index.d.ts +13 -12
- package/dist/src/components/ui/index.d.ts.map +1 -1
- package/dist/src/components/ui/link/index.d.cts +11 -0
- package/dist/src/components/ui/link/index.d.ts +1 -1
- package/dist/src/components/ui/link/index.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/code-entry.d.cts +4 -0
- package/dist/src/components/ui/login-screen/code-entry.d.ts +2 -2
- package/dist/src/components/ui/login-screen/consent.d.cts +15 -0
- package/dist/src/components/ui/login-screen/consent.d.ts +2 -2
- package/dist/src/components/ui/login-screen/credentials.d.cts +4 -0
- package/dist/src/components/ui/login-screen/credentials.d.ts +2 -2
- package/dist/src/components/ui/login-screen/credentials.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/device-approval.d.cts +4 -0
- package/dist/src/components/ui/login-screen/device-approval.d.ts +2 -2
- package/dist/src/components/ui/login-screen/general-error.d.cts +4 -0
- package/dist/src/components/ui/login-screen/general-error.d.ts +2 -2
- package/dist/src/components/ui/login-screen/index.d.cts +4 -0
- package/dist/src/components/ui/login-screen/index.d.ts +3 -3
- package/dist/src/components/ui/login-screen/index.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/invitation.d.cts +4 -0
- package/dist/src/components/ui/login-screen/invitation.d.ts +2 -2
- package/dist/src/components/ui/login-screen/login-screen.d.cts +4 -0
- package/dist/src/components/ui/login-screen/login-screen.d.ts +2 -2
- package/dist/src/components/ui/login-screen/passkey-progress.d.cts +4 -0
- package/dist/src/components/ui/login-screen/passkey-progress.d.ts +2 -2
- package/dist/src/components/ui/login-screen/second-factor.d.cts +4 -0
- package/dist/src/components/ui/login-screen/second-factor.d.ts +2 -2
- package/dist/src/components/ui/login-screen/shared.d.cts +15 -0
- package/dist/src/components/ui/login-screen/shared.d.ts +2 -2
- package/dist/src/components/ui/login-screen/shell.d.cts +13 -0
- package/dist/src/components/ui/login-screen/shell.d.ts +1 -1
- package/dist/src/components/ui/login-screen/shell.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/status.d.cts +4 -0
- package/dist/src/components/ui/login-screen/status.d.ts +2 -2
- package/dist/src/components/ui/login-screen/types.d.cts +192 -0
- package/dist/src/components/ui/login-screen/types.d.ts +2 -2
- package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
- package/dist/src/components/ui/popover/index.d.cts +7 -0
- package/dist/src/components/ui/popover/index.d.ts +5 -5
- package/dist/src/components/ui/popover/index.d.ts.map +1 -1
- package/dist/src/components/ui/providers-box/index.d.cts +10 -0
- package/dist/src/components/ui/providers-box/index.d.ts +2 -2
- package/dist/src/components/ui/providers-box/index.d.ts.map +1 -1
- package/dist/src/components/ui/spinner/index.d.cts +23 -0
- package/dist/src/components/ui/spinner/index.d.ts +1 -1
- package/dist/src/components/ui/spinner/index.d.ts.map +1 -1
- package/dist/src/components/ui/switch/index.d.cts +22 -0
- package/dist/src/components/ui/switch/index.d.ts +1 -1
- package/dist/src/components/ui/switch/index.d.ts.map +1 -1
- package/dist/src/components/ui/upgrade-dialog/challenge.d.cts +12 -0
- package/dist/src/components/ui/upgrade-dialog/challenge.d.ts +2 -2
- package/dist/src/components/ui/upgrade-dialog/factor-list.d.cts +20 -0
- package/dist/src/components/ui/upgrade-dialog/factor-list.d.ts +2 -2
- package/dist/src/components/ui/upgrade-dialog/index.d.cts +8 -0
- package/dist/src/components/ui/upgrade-dialog/index.d.ts +7 -7
- package/dist/src/components/ui/upgrade-dialog/index.d.ts.map +1 -1
- package/dist/src/components/ui/upgrade-dialog/state-mapping.d.cts +130 -0
- package/dist/src/components/ui/upgrade-dialog/state-mapping.d.ts +12 -1
- package/dist/src/components/ui/upgrade-dialog/state-mapping.d.ts.map +1 -1
- package/dist/src/components/ui/upgrade-dialog/status.d.cts +27 -0
- package/dist/src/components/ui/upgrade-dialog/status.d.ts +2 -2
- package/dist/src/components/ui/upgrade-dialog/types.d.cts +188 -0
- package/dist/src/components/ui/upgrade-dialog/upgrade-dialog.d.cts +13 -0
- package/dist/src/components/ui/upgrade-dialog/upgrade-dialog.d.ts +2 -2
- package/dist/src/components/ui/visually-hidden/index.d.cts +17 -0
- package/dist/src/components/ui/visually-hidden/index.d.ts +17 -0
- package/dist/src/components/ui/visually-hidden/index.d.ts.map +1 -0
- package/dist/src/constants/countries-phone-code.d.cts +253 -0
- package/dist/src/constants/countries-phone-code.d.ts.map +1 -1
- package/dist/src/constants/formats.d.cts +4 -0
- package/dist/src/constants/formats.d.ts.map +1 -1
- package/dist/src/constants/index.d.cts +3 -0
- package/dist/src/constants/index.d.ts +2 -2
- package/dist/src/context/auth-context.d.cts +23 -0
- package/dist/src/context/auth-context.d.ts +3 -3
- package/dist/src/context/auth-context.d.ts.map +1 -1
- package/dist/src/context/index.d.cts +6 -0
- package/dist/src/context/index.d.ts +5 -5
- package/dist/src/context/index.d.ts.map +1 -1
- package/dist/src/context/navigation-context.d.cts +25 -0
- package/dist/src/context/navigation-context.d.ts +1 -1
- package/dist/src/context/passflow-context.d.cts +26 -0
- package/dist/src/context/passflow-context.d.ts +3 -3
- package/dist/src/context/passflow-context.d.ts.map +1 -1
- package/dist/src/context/router-context.d.cts +42 -0
- package/dist/src/context/router-context.d.ts.map +1 -1
- package/dist/src/context/upgrade-context.d.cts +107 -0
- package/dist/src/context/upgrade-context.d.ts +24 -2
- package/dist/src/hocs/index.d.cts +2 -0
- package/dist/src/hocs/index.d.ts +1 -1
- package/dist/src/hocs/with-error.d.cts +8 -0
- package/dist/src/hocs/with-error.d.ts +5 -5
- package/dist/src/hocs/with-error.d.ts.map +1 -1
- package/dist/src/hooks/index.d.cts +28 -0
- package/dist/src/hooks/index.d.ts +27 -27
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/use-app-settings.d.cts +16 -0
- package/dist/src/hooks/use-app-settings.d.ts +1 -1
- package/dist/src/hooks/use-app-settings.d.ts.map +1 -1
- package/dist/src/hooks/use-auth-cloud-redirect.d.cts +4 -0
- package/dist/src/hooks/use-auth.d.cts +3 -0
- package/dist/src/hooks/use-auth.d.ts +1 -1
- package/dist/src/hooks/use-auth.d.ts.map +1 -1
- package/dist/src/hooks/use-consent.d.cts +68 -0
- package/dist/src/hooks/use-device-verify.d.cts +96 -0
- package/dist/src/hooks/use-device-verify.d.ts +1 -1
- package/dist/src/hooks/use-device-verify.d.ts.map +1 -1
- package/dist/src/hooks/use-forgot-password.d.cts +10 -0
- package/dist/src/hooks/use-forgot-password.d.ts +1 -1
- package/dist/src/hooks/use-join-invite.d.cts +8 -0
- package/dist/src/hooks/use-logout.d.cts +8 -0
- package/dist/src/hooks/use-navigation.d.cts +29 -0
- package/dist/src/hooks/use-navigation.d.ts +2 -2
- package/dist/src/hooks/use-navigation.d.ts.map +1 -1
- package/dist/src/hooks/use-outsideclick.d.cts +3 -0
- package/dist/src/hooks/use-outsideclick.d.ts +2 -2
- package/dist/src/hooks/use-outsideclick.d.ts.map +1 -1
- package/dist/src/hooks/use-passflow-store.d.cts +3 -0
- package/dist/src/hooks/use-passflow-store.d.ts +1 -1
- package/dist/src/hooks/use-passflow.d.cts +3 -0
- package/dist/src/hooks/use-passflow.d.ts +1 -1
- package/dist/src/hooks/use-passflow.d.ts.map +1 -1
- package/dist/src/hooks/use-passwordless-complete.d.cts +10 -0
- package/dist/src/hooks/use-passwordless-complete.d.ts +1 -1
- package/dist/src/hooks/use-passwordless-complete.d.ts.map +1 -1
- package/dist/src/hooks/use-provider.d.cts +7 -0
- package/dist/src/hooks/use-provider.d.ts +1 -1
- package/dist/src/hooks/use-provider.d.ts.map +1 -1
- package/dist/src/hooks/use-reset-password.d.cts +9 -0
- package/dist/src/hooks/use-session-expired.d.cts +49 -0
- package/dist/src/hooks/use-signin.d.cts +11 -0
- package/dist/src/hooks/use-signin.d.ts +2 -2
- package/dist/src/hooks/use-signin.d.ts.map +1 -1
- package/dist/src/hooks/use-signup.d.cts +11 -0
- package/dist/src/hooks/use-signup.d.ts +2 -2
- package/dist/src/hooks/use-signup.d.ts.map +1 -1
- package/dist/src/hooks/use-trusted-devices.d.cts +21 -0
- package/dist/src/hooks/use-trusted-devices.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-challenge.d.cts +16 -0
- package/dist/src/hooks/use-two-factor-challenge.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-manage.d.cts +15 -0
- package/dist/src/hooks/use-two-factor-manage.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-methods.d.cts +14 -0
- package/dist/src/hooks/use-two-factor-methods.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-setup-magic-link.d.cts +55 -0
- package/dist/src/hooks/use-two-factor-setup-magic-link.d.ts.map +1 -1
- package/dist/src/hooks/use-two-factor-setup.d.cts +18 -0
- package/dist/src/hooks/use-two-factor-setup.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-status.d.cts +13 -0
- package/dist/src/hooks/use-two-factor-status.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-verify.d.cts +20 -0
- package/dist/src/hooks/use-two-factor-verify.d.ts +2 -2
- package/dist/src/hooks/use-two-factor-verify.d.ts.map +1 -1
- package/dist/src/hooks/use-upgrade.d.cts +53 -0
- package/dist/src/hooks/use-upgrade.d.ts +12 -2
- package/dist/src/hooks/use-upgrade.d.ts.map +1 -1
- package/dist/src/hooks/use-user-passkeys.d.cts +12 -0
- package/dist/src/hooks/use-user-passkeys.d.ts +1 -1
- package/dist/src/index.d.cts +10 -0
- package/dist/src/index.d.ts +8 -8
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types/auth-errors.d.cts +8 -0
- package/dist/src/types/device-errors.d.cts +95 -0
- package/dist/src/types/index.d.cts +26 -0
- package/dist/src/types/index.d.ts +4 -4
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/two-factor-errors.d.cts +14 -0
- package/dist/src/utils/auth-error.d.cts +7 -0
- package/dist/src/utils/auth-error.d.ts +1 -1
- package/dist/src/utils/auth-error.d.ts.map +1 -1
- package/dist/src/utils/classify-device-error.d.cts +35 -0
- package/dist/src/utils/classify-device-error.d.ts +1 -1
- package/dist/src/utils/classify-device-error.d.ts.map +1 -1
- package/dist/src/utils/classify-two-factor-error.d.cts +13 -0
- package/dist/src/utils/classify-two-factor-error.d.ts +1 -1
- package/dist/src/utils/cn.d.cts +3 -0
- package/dist/src/utils/cn.d.ts +1 -1
- package/dist/src/utils/cn.d.ts.map +1 -1
- package/dist/src/utils/dayjs/format.d.cts +8 -0
- package/dist/src/utils/dayjs/format.d.ts.map +1 -1
- package/dist/src/utils/dayjs/index.d.cts +2 -0
- package/dist/src/utils/dayjs/index.d.ts +1 -1
- package/dist/src/utils/get-app-version.d.cts +7 -0
- package/dist/src/utils/get-auth-methods.d.cts +30 -0
- package/dist/src/utils/get-auth-methods.d.ts +1 -1
- package/dist/src/utils/get-auth-methods.d.ts.map +1 -1
- package/dist/src/utils/get-form-labels.d.cts +10 -0
- package/dist/src/utils/get-form-labels.d.ts +5 -5
- package/dist/src/utils/get-form-labels.d.ts.map +1 -1
- package/dist/src/utils/get-url-errors.d.cts +5 -0
- package/dist/src/utils/get-url-errors.d.ts.map +1 -1
- package/dist/src/utils/get-url-with-tokens.d.cts +4 -0
- package/dist/src/utils/get-url-with-tokens.d.ts +1 -1
- package/dist/src/utils/get-url-with-tokens.d.ts.map +1 -1
- package/dist/src/utils/index.d.cts +18 -0
- package/dist/src/utils/index.d.ts +17 -17
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/invitation-auth-chrome.d.cts +8 -0
- package/dist/src/utils/invitation-auth-chrome.d.ts.map +1 -1
- package/dist/src/utils/login-theme.d.cts +8 -0
- package/dist/src/utils/login-theme.d.ts +1 -1
- package/dist/src/utils/login-theme.d.ts.map +1 -1
- package/dist/src/utils/second-factor.d.cts +21 -0
- package/dist/src/utils/second-factor.d.ts +3 -3
- package/dist/src/utils/second-factor.d.ts.map +1 -1
- package/dist/src/utils/two-factor-loop-prevention.d.cts +40 -0
- package/dist/src/utils/two-factor-loop-prevention.d.ts.map +1 -1
- package/dist/src/utils/undefined-on-catch.d.cts +2 -0
- package/dist/src/utils/upgrade-auth.d.cts +82 -0
- package/dist/src/utils/upgrade-auth.d.ts +45 -1
- package/dist/src/utils/upgrade-auth.d.ts.map +1 -1
- package/dist/src/utils/url-params.d.cts +14 -0
- package/dist/src/utils/url-params.d.ts.map +1 -1
- package/dist/src/utils/validate-url.d.cts +2 -0
- package/dist/src/utils/validate-url.d.ts.map +1 -1
- package/dist/src/utils/validation-schemas/index.d.cts +6 -0
- package/dist/src/utils/validation-schemas/index.d.ts +1 -1
- package/dist/src/utils/validation-schemas/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +54 -59
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/src/components/form/two-factor-challenge/otp-input.d.ts +0 -12
- package/dist/src/components/form/two-factor-challenge/otp-input.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-device-verify.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-device-verify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-device-verify.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-device-verify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,gGAAgG;AAChG,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;AAEhE,kEAAkE;AAClE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,YAAY,CAAC;IACnB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,QAAQ,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,sDAAsD;AACtD,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAEjE,MAAM,MAAM,kBAAkB;AAC5B,wCAAwC;AACtC,SAAS;AACX,yCAAyC;GACvC,YAAY;AACd,uCAAuC;GACrC,OAAO;AACT,2BAA2B;GACzB,SAAS;AACX,qFAAqF;GACnF,eAAe;AACjB,sDAAsD;GACpD,WAAW;AACb,6CAA6C;GAC3C,MAAM;AACR,8EAA8E;GAC5E,SAAS;AACX,qDAAqD;GACnD,QAAQ,CAAC;AAEb,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,kDAAkD;IAClD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,0CAA0C;IAC1C,eAAe,EAAE,OAAO,CAAC;IACzB,sEAAsE;IACtE,qBAAqB,EAAE,OAAO,CAAC;IAC/B,oEAAoE;IACpE,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;IAChD,uDAAuD;IACvD,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wDAAwD;IACxD,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,8CAA8C;IAC9C,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,uDAAuD;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,6DAA6D;IAC7D,kBAAkB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC;;;OAGG;IACH,kBAAkB,EAAE,CAAC,MAAM,EAAE,wBAAwB,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtF,2DAA2D;IAC3D,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAmDF,eAAO,MAAM,eAAe,QAAO,oBA2VlC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PassflowSendPasswordResetEmailPayload } from '@passflow/core';
|
|
2
|
+
export type UseForgotPasswordProps = () => {
|
|
3
|
+
fetch: (payload: PassflowSendPasswordResetEmailPayload) => Promise<boolean>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
error: string;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useForgotPassword: UseForgotPasswordProps;
|
|
10
|
+
//# sourceMappingURL=use-forgot-password.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PassflowSendPasswordResetEmailPayload } from '@passflow/core';
|
|
1
|
+
import type { PassflowSendPasswordResetEmailPayload } from '@passflow/core';
|
|
2
2
|
export type UseForgotPasswordProps = () => {
|
|
3
3
|
fetch: (payload: PassflowSendPasswordResetEmailPayload) => Promise<boolean>;
|
|
4
4
|
isLoading: boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type NavigateFunction, type NavigateOptions } from '../context/index.cjs';
|
|
2
|
+
export type ReactRouterNavigateOptions = {
|
|
3
|
+
pathname: string;
|
|
4
|
+
search: string;
|
|
5
|
+
replace?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type TanstackRouterNavigateOptions = {
|
|
8
|
+
to: string;
|
|
9
|
+
search: Record<string, unknown>;
|
|
10
|
+
replace?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type WouterNavigateOptions = {
|
|
13
|
+
to: string;
|
|
14
|
+
search?: Record<string, unknown>;
|
|
15
|
+
replace?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type ReachRouterNavigateOptions = {
|
|
18
|
+
to: string;
|
|
19
|
+
search?: Record<string, unknown>;
|
|
20
|
+
replace?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const useNavigation: () => {
|
|
23
|
+
navigate: NavigateFunction;
|
|
24
|
+
setNavigate: (newNavigate: ((to: NavigateOptions | string | ReactRouterNavigateOptions | TanstackRouterNavigateOptions | WouterNavigateOptions | ReachRouterNavigateOptions) => void) | null) => void;
|
|
25
|
+
router: import("../context/index.cjs").RouterType;
|
|
26
|
+
twoFactorVerifyPath: string | undefined;
|
|
27
|
+
setTwoFactorVerifyPath: ((path: string | null) => void) | undefined;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=use-navigation.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NavigateFunction, NavigateOptions } from '../context';
|
|
1
|
+
import { type NavigateFunction, type NavigateOptions } from '../context/index.js';
|
|
2
2
|
export type ReactRouterNavigateOptions = {
|
|
3
3
|
pathname: string;
|
|
4
4
|
search: string;
|
|
@@ -22,7 +22,7 @@ export type ReachRouterNavigateOptions = {
|
|
|
22
22
|
export declare const useNavigation: () => {
|
|
23
23
|
navigate: NavigateFunction;
|
|
24
24
|
setNavigate: (newNavigate: ((to: NavigateOptions | string | ReactRouterNavigateOptions | TanstackRouterNavigateOptions | WouterNavigateOptions | ReachRouterNavigateOptions) => void) | null) => void;
|
|
25
|
-
router: import(
|
|
25
|
+
router: import("../context/index.js").RouterType;
|
|
26
26
|
twoFactorVerifyPath: string | undefined;
|
|
27
27
|
setTwoFactorVerifyPath: ((path: string | null) => void) | undefined;
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-navigation.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-navigation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-navigation.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-navigation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAqB,MAAM,WAAW,CAAC;AAE3F,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAQF,eAAO,MAAM,aAAa;;+BAMhB,CAAC,CACC,EAAE,EACE,eAAe,GACf,MAAM,GACN,0BAA0B,GAC1B,6BAA6B,GAC7B,qBAAqB,GACrB,0BAA0B,KAC3B,IAAI,CAAC,GACV,IAAI;;;;CAyDb,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export declare const useOutsideClick: <T extends HTMLElement>(ref: RefObject<T>, onClickOutside?: () => void) => void;
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
export declare const useOutsideClick: <T extends HTMLElement>(ref: RefObject<T | null>, onClickOutside?: () => void) => void;
|
|
3
3
|
//# sourceMappingURL=use-outsideclick.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outsideclick.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-outsideclick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,
|
|
1
|
+
{"version":3,"file":"use-outsideclick.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-outsideclick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,OAAO,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,mBAAmB,MAAM,IAAI,SAgB3G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-passflow.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-passflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-passflow.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-passflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,eAAO,MAAM,WAAW,QAAO,QAS9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PassflowPasswordlessSignInCompletePayload, PassflowValidationResponse } from '@passflow/core';
|
|
2
|
+
export type UsePasswordlessCompleteProps = () => {
|
|
3
|
+
fetch: (payload: PassflowPasswordlessSignInCompletePayload) => Promise<PassflowValidationResponse | null>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
error: string;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const usePasswordlessComplete: UsePasswordlessCompleteProps;
|
|
10
|
+
//# sourceMappingURL=use-passwordless-complete.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PassflowPasswordlessSignInCompletePayload, PassflowValidationResponse } from '@passflow/core';
|
|
1
|
+
import type { PassflowPasswordlessSignInCompletePayload, PassflowValidationResponse } from '@passflow/core';
|
|
2
2
|
export type UsePasswordlessCompleteProps = () => {
|
|
3
3
|
fetch: (payload: PassflowPasswordlessSignInCompletePayload) => Promise<PassflowValidationResponse | null>;
|
|
4
4
|
isLoading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-passwordless-complete.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-passwordless-complete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-passwordless-complete.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-passwordless-complete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yCAAyC,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAK5G,MAAM,MAAM,4BAA4B,GAAG,MAAM;IAC/C,KAAK,EAAE,CAAC,OAAO,EAAE,yCAAyC,KAAK,OAAO,CAAC,0BAA0B,GAAG,IAAI,CAAC,CAAC;IAC1G,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,4BAuCrC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Providers } from '@passflow/core';
|
|
2
|
+
export type UseProviderProps = (redirectUrl?: string, createTenant?: boolean) => {
|
|
3
|
+
federatedWithPopup: (provider: Providers, inviteToken?: string) => void;
|
|
4
|
+
federatedWithRedirect: (provider: Providers, inviteToken?: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const useProvider: UseProviderProps;
|
|
7
|
+
//# sourceMappingURL=use-provider.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Providers } from '@passflow/core';
|
|
1
|
+
import type { Providers } from '@passflow/core';
|
|
2
2
|
export type UseProviderProps = (redirectUrl?: string, createTenant?: boolean) => {
|
|
3
3
|
federatedWithPopup: (provider: Providers, inviteToken?: string) => void;
|
|
4
4
|
federatedWithRedirect: (provider: Providers, inviteToken?: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-provider.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-provider.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAa9E,MAAM,MAAM,gBAAgB,GAAG,CAC7B,WAAW,CAAC,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE,OAAO,KACnB;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,qBAAqB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAmBzB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type UseResetPasswordProps = () => {
|
|
2
|
+
fetch: (newPassword: string) => Promise<boolean>;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
isError: boolean;
|
|
5
|
+
error: string;
|
|
6
|
+
reset: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useResetPassword: UseResetPasswordProps;
|
|
9
|
+
//# sourceMappingURL=use-reset-password.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type SessionExpiredReason = 'refresh_failed' | 'token_invalid' | 'logged_out';
|
|
2
|
+
export interface UseSessionExpiredOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Called when the session expires.
|
|
5
|
+
* Use this to redirect to your login page.
|
|
6
|
+
*/
|
|
7
|
+
onSessionExpired?: (reason: SessionExpiredReason) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface UseSessionExpiredResult {
|
|
10
|
+
/**
|
|
11
|
+
* True if the session has expired and user needs to re-authenticate.
|
|
12
|
+
*/
|
|
13
|
+
isSessionExpired: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The reason why the session expired, if applicable.
|
|
16
|
+
*/
|
|
17
|
+
expiredReason: SessionExpiredReason | null;
|
|
18
|
+
/**
|
|
19
|
+
* Reset the session expired state (e.g., after redirecting to login).
|
|
20
|
+
*/
|
|
21
|
+
resetSessionExpired: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Hook to handle session expiration events.
|
|
25
|
+
*
|
|
26
|
+
* When the SDK detects that the session is invalid (e.g., refresh token expired),
|
|
27
|
+
* it emits a SessionExpired event. This hook allows you to react to that event
|
|
28
|
+
* and redirect users to your login page.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* function App() {
|
|
33
|
+
* const { isSessionExpired } = useSessionExpired({
|
|
34
|
+
* onSessionExpired: (reason) => {
|
|
35
|
+
* console.log('Session expired:', reason);
|
|
36
|
+
* window.location.href = '/login';
|
|
37
|
+
* },
|
|
38
|
+
* });
|
|
39
|
+
*
|
|
40
|
+
* if (isSessionExpired) {
|
|
41
|
+
* return <div>Redirecting to login...</div>;
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* return <YourApp />;
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function useSessionExpired(options?: UseSessionExpiredOptions): UseSessionExpiredResult;
|
|
49
|
+
//# sourceMappingURL=use-session-expired.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PassflowPasskeyAuthenticateStartPayload, PassflowPasswordlessResponse, PassflowPasswordlessSignInPayload, PassflowSignInPayload } from '@passflow/core';
|
|
2
|
+
import type { AuthOperation, AuthUiError } from '../types/index.cjs';
|
|
3
|
+
export type UseSignInProps = () => {
|
|
4
|
+
fetch: (payload: PassflowPasskeyAuthenticateStartPayload | PassflowSignInPayload | PassflowPasswordlessSignInPayload, type: AuthOperation) => Promise<boolean | string | PassflowPasswordlessResponse>;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isError: boolean;
|
|
7
|
+
error: AuthUiError | null;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const useSignIn: UseSignInProps;
|
|
11
|
+
//# sourceMappingURL=use-signin.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PassflowPasskeyAuthenticateStartPayload, PassflowPasswordlessResponse, PassflowPasswordlessSignInPayload, PassflowSignInPayload } from '@passflow/core';
|
|
2
|
+
import type { AuthOperation, AuthUiError } from '../types/index.js';
|
|
3
3
|
export type UseSignInProps = () => {
|
|
4
4
|
fetch: (payload: PassflowPasskeyAuthenticateStartPayload | PassflowSignInPayload | PassflowPasswordlessSignInPayload, type: AuthOperation) => Promise<boolean | string | PassflowPasswordlessResponse>;
|
|
5
5
|
isLoading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-signin.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-signin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"use-signin.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-signin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uCAAuC,EACvC,4BAA4B,EAC5B,iCAAiC,EACjC,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAI1D,MAAM,MAAM,cAAc,GAAG,MAAM;IACjC,KAAK,EAAE,CACL,OAAO,EAAE,uCAAuC,GAAG,qBAAqB,GAAG,iCAAiC,EAC5G,IAAI,EAAE,aAAa,KAChB,OAAO,CAAC,OAAO,GAAG,MAAM,GAAG,4BAA4B,CAAC,CAAC;IAC9D,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,cA4CvB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PassflowPasskeyRegisterStartPayload, PassflowPasswordlessResponse, PassflowPasswordlessSignInPayload, PassflowSignUpPayload } from '@passflow/core';
|
|
2
|
+
import type { AuthOperation, AuthUiError } from '../types/index.cjs';
|
|
3
|
+
export type UseSignUpProps = () => {
|
|
4
|
+
fetch: (payload: PassflowPasskeyRegisterStartPayload | PassflowSignUpPayload | PassflowPasswordlessSignInPayload, type: AuthOperation) => Promise<boolean | string | PassflowPasswordlessResponse>;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isError: boolean;
|
|
7
|
+
error: AuthUiError | null;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const useSignUp: UseSignUpProps;
|
|
11
|
+
//# sourceMappingURL=use-signup.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PassflowPasskeyRegisterStartPayload, PassflowPasswordlessResponse, PassflowPasswordlessSignInPayload, PassflowSignUpPayload } from '@passflow/core';
|
|
2
|
+
import type { AuthOperation, AuthUiError } from '../types/index.js';
|
|
3
3
|
export type UseSignUpProps = () => {
|
|
4
4
|
fetch: (payload: PassflowPasskeyRegisterStartPayload | PassflowSignUpPayload | PassflowPasswordlessSignInPayload, type: AuthOperation) => Promise<boolean | string | PassflowPasswordlessResponse>;
|
|
5
5
|
isLoading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-signup.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-signup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"use-signup.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-signup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,EACjC,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAI1D,MAAM,MAAM,cAAc,GAAG,MAAM;IACjC,KAAK,EAAE,CACL,OAAO,EAAE,mCAAmC,GAAG,qBAAqB,GAAG,iCAAiC,EACxG,IAAI,EAAE,aAAa,KAChB,OAAO,CAAC,OAAO,GAAG,MAAM,GAAG,4BAA4B,CAAC,CAAC;IAC9D,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,cA+CvB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TwoFactorTrustedDevice } from '@passflow/core';
|
|
2
|
+
export type UseTrustedDevicesProps = () => {
|
|
3
|
+
/** The devices the signed-in user trusted to skip the second factor on this app. */
|
|
4
|
+
data: TwoFactorTrustedDevice[];
|
|
5
|
+
refetch: () => Promise<TwoFactorTrustedDevice[] | null>;
|
|
6
|
+
/**
|
|
7
|
+
* Revokes one device; its next sign-in asks for the second factor again.
|
|
8
|
+
* On success the device leaves `data` without a refetch.
|
|
9
|
+
*
|
|
10
|
+
* @returns true when the server revoked it
|
|
11
|
+
*/
|
|
12
|
+
revoke: (deviceId: string) => Promise<boolean>;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
isError: boolean;
|
|
15
|
+
errorMessage: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Hook to list and revoke the signed-in user's trusted devices
|
|
19
|
+
*/
|
|
20
|
+
export declare const useTrustedDevices: UseTrustedDevicesProps;
|
|
21
|
+
//# sourceMappingURL=use-trusted-devices.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TwoFactorTrustedDevice } from '@passflow/core';
|
|
1
|
+
import type { TwoFactorTrustedDevice } from '@passflow/core';
|
|
2
2
|
export type UseTrustedDevicesProps = () => {
|
|
3
3
|
/** The devices the signed-in user trusted to skip the second factor on this app. */
|
|
4
4
|
data: TwoFactorTrustedDevice[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TwoFactorChallengeResponse, TwoFactorMethod, TwoFactorVerifyResponseV2 } from '@passflow/core';
|
|
2
|
+
export type UseTwoFactorChallengeReturn = {
|
|
3
|
+
challenge: TwoFactorChallengeResponse | null;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
requestChallenge: (firstFactorMethod?: string) => Promise<void>;
|
|
7
|
+
verify: (response: string, trustDevice?: boolean) => Promise<TwoFactorVerifyResponseV2 | null>;
|
|
8
|
+
switchMethod: (method: TwoFactorMethod) => Promise<void>;
|
|
9
|
+
selectedMethod: TwoFactorMethod | null;
|
|
10
|
+
reset: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Hook to manage the v2 two-factor challenge flow with multi-method support
|
|
14
|
+
*/
|
|
15
|
+
export declare const useTwoFactorChallenge: () => UseTwoFactorChallengeReturn;
|
|
16
|
+
//# sourceMappingURL=use-two-factor-challenge.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TwoFactorChallengeResponse, TwoFactorMethod, TwoFactorVerifyResponseV2 } from '@passflow/core';
|
|
1
|
+
import type { TwoFactorChallengeResponse, TwoFactorMethod, TwoFactorVerifyResponseV2 } from '@passflow/core';
|
|
2
2
|
export type UseTwoFactorChallengeReturn = {
|
|
3
3
|
challenge: TwoFactorChallengeResponse | null;
|
|
4
4
|
isLoading: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TwoFactorRegenerateResponse } from '@passflow/core';
|
|
2
|
+
export type UseTwoFactorManageProps = () => {
|
|
3
|
+
recoveryCodes: string[];
|
|
4
|
+
disable: (code: string) => Promise<boolean>;
|
|
5
|
+
regenerateCodes: (code: string) => Promise<TwoFactorRegenerateResponse | null>;
|
|
6
|
+
reset: () => void;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
isError: boolean;
|
|
9
|
+
error: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Hook to manage 2FA (disable, regenerate codes)
|
|
13
|
+
*/
|
|
14
|
+
export declare const useTwoFactorManage: UseTwoFactorManageProps;
|
|
15
|
+
//# sourceMappingURL=use-two-factor-manage.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RegisteredTwoFactorMethod, TwoFactorMethod } from '@passflow/core';
|
|
2
|
+
export type UseTwoFactorMethodsReturn = {
|
|
3
|
+
availableMethods: TwoFactorMethod[];
|
|
4
|
+
registeredMethods: RegisteredTwoFactorMethod[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
error: Error | null;
|
|
7
|
+
refresh: () => Promise<void>;
|
|
8
|
+
removeMethod: (methodId: string) => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Hook to manage two-factor authentication methods
|
|
12
|
+
*/
|
|
13
|
+
export declare const useTwoFactorMethods: () => UseTwoFactorMethodsReturn;
|
|
14
|
+
//# sourceMappingURL=use-two-factor-methods.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RegisteredTwoFactorMethod, TwoFactorMethod } from '@passflow/core';
|
|
1
|
+
import type { RegisteredTwoFactorMethod, TwoFactorMethod } from '@passflow/core';
|
|
2
2
|
export type UseTwoFactorMethodsReturn = {
|
|
3
3
|
availableMethods: TwoFactorMethod[];
|
|
4
4
|
registeredMethods: RegisteredTwoFactorMethod[];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Magic link validation error type
|
|
3
|
+
*/
|
|
4
|
+
export type TwoFactorSetupMagicLinkError = {
|
|
5
|
+
code: 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'REVOKED_TOKEN' | 'RATE_LIMITED' | 'SERVER_ERROR';
|
|
6
|
+
message: string;
|
|
7
|
+
retryAfter?: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Return type for useTwoFactorSetupMagicLink hook
|
|
11
|
+
*/
|
|
12
|
+
export type UseTwoFactorSetupMagicLinkReturn = {
|
|
13
|
+
/** True during validation */
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
/** True during retry attempt */
|
|
16
|
+
isRetrying: boolean;
|
|
17
|
+
/** True if token validated successfully */
|
|
18
|
+
isValidated: boolean;
|
|
19
|
+
/** Error details if validation failed */
|
|
20
|
+
error: TwoFactorSetupMagicLinkError | null;
|
|
21
|
+
/** Session token if validated */
|
|
22
|
+
sessionToken: string | null;
|
|
23
|
+
/** User ID if validated */
|
|
24
|
+
userId: string | null;
|
|
25
|
+
/** App ID if validated (may be null) */
|
|
26
|
+
appId: string | null;
|
|
27
|
+
/** Session expiration in seconds */
|
|
28
|
+
expiresIn: number | null;
|
|
29
|
+
/** Retry countdown for rate-limited errors (null if not rate limited) */
|
|
30
|
+
retryCountdown: number | null;
|
|
31
|
+
/** Manual retry function for transient errors */
|
|
32
|
+
retry: () => Promise<void>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Hook to validate magic link token for 2FA setup
|
|
36
|
+
*
|
|
37
|
+
* This hook:
|
|
38
|
+
* - Validates token on mount (automatic)
|
|
39
|
+
* - Caches validation result per token (prevents duplicate calls)
|
|
40
|
+
* - Provides loading, error, and success states
|
|
41
|
+
* - Allows manual retry for transient failures
|
|
42
|
+
* - Handles rate limit countdown
|
|
43
|
+
* - Cleans up conditionally on unmount (only if validation failed or not validated)
|
|
44
|
+
*
|
|
45
|
+
* Usage:
|
|
46
|
+
* ```tsx
|
|
47
|
+
* const { isLoading, isValidated, error, retry, retryCountdown } = useTwoFactorSetupMagicLink(token);
|
|
48
|
+
*
|
|
49
|
+
* if (isLoading) return <Loading />;
|
|
50
|
+
* if (error) return <ErrorUI error={error} onRetry={retry} countdown={retryCountdown} />;
|
|
51
|
+
* if (isValidated) return <TwoFactorSetupForm />;
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare const useTwoFactorSetupMagicLink: (token: string) => UseTwoFactorSetupMagicLinkReturn;
|
|
55
|
+
//# sourceMappingURL=use-two-factor-setup-magic-link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-two-factor-setup-magic-link.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-two-factor-setup-magic-link.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,cAAc,GAAG,cAAc,CAAC;IAC5F,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAcF;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,6BAA6B;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,2CAA2C;IAC3C,WAAW,EAAE,OAAO,CAAC;IACrB,yCAAyC;IACzC,KAAK,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAC3C,iCAAiC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,2BAA2B;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,wCAAwC;IACxC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oCAAoC;IACpC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,yEAAyE;IACzE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iDAAiD;IACjD,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"use-two-factor-setup-magic-link.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-two-factor-setup-magic-link.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,cAAc,GAAG,cAAc,CAAC;IAC5F,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAcF;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,6BAA6B;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,2CAA2C;IAC3C,WAAW,EAAE,OAAO,CAAC;IACrB,yCAAyC;IACzC,KAAK,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAC3C,iCAAiC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,2BAA2B;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,wCAAwC;IACxC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oCAAoC;IACpC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,yEAAyE;IACzE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iDAAiD;IACjD,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,0BAA0B,UAAW,MAAM,KAAG,gCAiL1D,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TwoFactorConfirmResponse, TwoFactorSetupResponse } from '@passflow/core';
|
|
2
|
+
export type TwoFactorSetupStep = 'idle' | 'setup' | 'complete';
|
|
3
|
+
export type UseTwoFactorSetupProps = () => {
|
|
4
|
+
setupData: TwoFactorSetupResponse | null;
|
|
5
|
+
recoveryCodes: string[];
|
|
6
|
+
step: TwoFactorSetupStep;
|
|
7
|
+
beginSetup: () => Promise<TwoFactorSetupResponse | null>;
|
|
8
|
+
confirmSetup: (code: string) => Promise<TwoFactorConfirmResponse | null>;
|
|
9
|
+
reset: () => void;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isError: boolean;
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Hook to handle 2FA setup flow (enable 2FA)
|
|
16
|
+
*/
|
|
17
|
+
export declare const useTwoFactorSetup: UseTwoFactorSetupProps;
|
|
18
|
+
//# sourceMappingURL=use-two-factor-setup.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TwoFactorConfirmResponse, TwoFactorSetupResponse } from '@passflow/core';
|
|
1
|
+
import type { TwoFactorConfirmResponse, TwoFactorSetupResponse } from '@passflow/core';
|
|
2
2
|
export type TwoFactorSetupStep = 'idle' | 'setup' | 'complete';
|
|
3
3
|
export type UseTwoFactorSetupProps = () => {
|
|
4
4
|
setupData: TwoFactorSetupResponse | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TwoFactorStatusResponse } from '@passflow/core';
|
|
2
|
+
export type UseTwoFactorStatusProps = () => {
|
|
3
|
+
data: TwoFactorStatusResponse | null;
|
|
4
|
+
refetch: () => Promise<TwoFactorStatusResponse | null>;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isError: boolean;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Hook to get the current 2FA enrollment status
|
|
11
|
+
*/
|
|
12
|
+
export declare const useTwoFactorStatus: UseTwoFactorStatusProps;
|
|
13
|
+
//# sourceMappingURL=use-two-factor-status.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TwoFactorCompletionOptions, TwoFactorRecoveryResponse, TwoFactorVerifyResponse } from '@passflow/core';
|
|
2
|
+
import type { TwoFactorError, TwoFactorErrorType } from '../types/two-factor-errors.cjs';
|
|
3
|
+
export type UseTwoFactorVerifyProps = () => {
|
|
4
|
+
isVerificationRequired: () => boolean;
|
|
5
|
+
/** `options.trustDevice` asks the server to trust this device for later sign-ins. */
|
|
6
|
+
verify: (code: string, options?: TwoFactorCompletionOptions) => Promise<TwoFactorVerifyResponse | null>;
|
|
7
|
+
/** `options.trustDevice` asks the server to trust this device for later sign-ins. */
|
|
8
|
+
useRecoveryCode: (code: string, options?: TwoFactorCompletionOptions) => Promise<TwoFactorRecoveryResponse | null>;
|
|
9
|
+
reset: () => void;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isError: boolean;
|
|
12
|
+
error: string;
|
|
13
|
+
errorType: TwoFactorErrorType | null;
|
|
14
|
+
errorDetails: TwoFactorError | null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Hook to verify 2FA code during login with error classification
|
|
18
|
+
*/
|
|
19
|
+
export declare const useTwoFactorVerify: UseTwoFactorVerifyProps;
|
|
20
|
+
//# sourceMappingURL=use-two-factor-verify.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { TwoFactorCompletionOptions, TwoFactorRecoveryResponse, TwoFactorVerifyResponse } from '@passflow/core';
|
|
2
|
+
import type { TwoFactorError, TwoFactorErrorType } from '../types/two-factor-errors.js';
|
|
3
3
|
export type UseTwoFactorVerifyProps = () => {
|
|
4
4
|
isVerificationRequired: () => boolean;
|
|
5
5
|
/** `options.trustDevice` asks the server to trust this device for later sign-ins. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-two-factor-verify.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-two-factor-verify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"use-two-factor-verify.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-two-factor-verify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAErH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAIpF,MAAM,MAAM,uBAAuB,GAAG,MAAM;IAC1C,sBAAsB,EAAE,MAAM,OAAO,CAAC;IACtC,qFAAqF;IACrF,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,0BAA0B,KAAK,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;IACxG,qFAAqF;IACrF,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,0BAA0B,KAAK,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;IACnH,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACrC,YAAY,EAAE,cAAc,GAAG,IAAI,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,uBAkFhC,CAAC"}
|