authhero 5.8.1 → 5.9.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/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +97 -97
- package/dist/authhero.d.ts +17622 -72311
- package/dist/authhero.mjs +5587 -5593
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -0
- package/dist/types/adapters/cache/in-memory.d.ts +52 -0
- package/dist/types/adapters/cache/index.d.ts +2 -0
- package/dist/types/adapters/index.d.ts +1 -0
- package/dist/types/authentication-flows/auth0-migration.d.ts +53 -0
- package/dist/types/authentication-flows/authorization-code.d.ts +23 -0
- package/dist/types/authentication-flows/client-credentials.d.ts +16 -0
- package/dist/types/authentication-flows/common.d.ts +253 -0
- package/dist/types/authentication-flows/connection.d.ts +17 -0
- package/dist/types/authentication-flows/mfa.d.ts +49 -0
- package/dist/types/authentication-flows/passkey-enrollment.d.ts +19 -0
- package/dist/types/authentication-flows/password.d.ts +24 -0
- package/dist/types/authentication-flows/passwordless.d.ts +571 -0
- package/dist/types/authentication-flows/refresh-token-migration.d.ts +17 -0
- package/dist/types/authentication-flows/refresh-token.d.ts +15 -0
- package/dist/types/authentication-flows/resume.d.ts +22 -0
- package/dist/types/authentication-flows/silent.d.ts +25 -0
- package/dist/types/authentication-flows/ticket.d.ts +7 -0
- package/dist/types/authentication-flows/try-connection.d.ts +33 -0
- package/dist/types/authentication-flows/universal.d.ts +19 -0
- package/dist/types/build-hash.d.ts +7 -0
- package/dist/types/client/client-bundle.d.ts +1 -0
- package/dist/types/client/form-handler.d.ts +9 -0
- package/dist/types/client/incognito-handler.d.ts +5 -0
- package/dist/types/client/index.d.ts +1 -0
- package/dist/types/client/input-otp.d.ts +12 -0
- package/dist/types/client/password-toggle.d.ts +10 -0
- package/dist/types/client/user-agent-detector.d.ts +22 -0
- package/dist/types/components/AccountChangeEmailPage.d.ts +14 -0
- package/dist/types/components/AccountForm.d.ts +17 -0
- package/dist/types/components/AccountPage.d.ts +15 -0
- package/dist/types/components/AppLogo.d.ts +8 -0
- package/dist/types/components/AuthLayout.d.ts +18 -0
- package/dist/types/components/Button.d.ts +12 -0
- package/dist/types/components/ChangeEmailForm.d.ts +14 -0
- package/dist/types/components/ChangeEmailPage.d.ts +15 -0
- package/dist/types/components/ContinueForm.d.ts +13 -0
- package/dist/types/components/EmailValidatedForm.d.ts +12 -0
- package/dist/types/components/EmailValidatedPage.d.ts +11 -0
- package/dist/types/components/EnterCodeForm.d.ts +13 -0
- package/dist/types/components/EnterCodePage.d.ts +14 -0
- package/dist/types/components/EnterPasswordForm.d.ts +14 -0
- package/dist/types/components/EnterPasswordPage.d.ts +13 -0
- package/dist/types/components/ErrorMessage.d.ts +6 -0
- package/dist/types/components/Footer.d.ts +9 -0
- package/dist/types/components/ForgotPasswordForm.d.ts +14 -0
- package/dist/types/components/ForgotPasswordPage.d.ts +13 -0
- package/dist/types/components/ForgotPasswordSentPage.d.ts +11 -0
- package/dist/types/components/Form.d.ts +6 -0
- package/dist/types/components/FormNodePage.d.ts +16 -0
- package/dist/types/components/GoBack.d.ts +5 -0
- package/dist/types/components/GoogleLogo.d.ts +4 -0
- package/dist/types/components/Icon.d.ts +8 -0
- package/dist/types/components/IconEye.d.ts +8 -0
- package/dist/types/components/IconEyeSlash.d.ts +8 -0
- package/dist/types/components/IconPen.d.ts +7 -0
- package/dist/types/components/IdentifierForm.d.ts +16 -0
- package/dist/types/components/IdentifierPage.d.ts +15 -0
- package/dist/types/components/ImpersonateForm.d.ts +14 -0
- package/dist/types/components/ImpersonationPage.d.ts +13 -0
- package/dist/types/components/InvalidSessionPage.d.ts +11 -0
- package/dist/types/components/Layout.d.ts +11 -0
- package/dist/types/components/LoginForm.d.ts +15 -0
- package/dist/types/components/MessagePage.d.ts +13 -0
- package/dist/types/components/PasswordInput.d.ts +6 -0
- package/dist/types/components/PreSignUpConfirmationPage.d.ts +12 -0
- package/dist/types/components/PreSignUpPage.d.ts +12 -0
- package/dist/types/components/ResetPasswordForm.d.ts +14 -0
- package/dist/types/components/ResetPasswordPage.d.ts +12 -0
- package/dist/types/components/SignUpForm.d.ts +15 -0
- package/dist/types/components/SignUpPage.d.ts +14 -0
- package/dist/types/components/SocialButton.d.ts +10 -0
- package/dist/types/components/Spinner.d.ts +6 -0
- package/dist/types/components/Trans.d.ts +8 -0
- package/dist/types/components/UnverifiedEmailPage.d.ts +11 -0
- package/dist/types/components/UserNotFoundPage.d.ts +12 -0
- package/dist/types/components/VippsLogo.d.ts +4 -0
- package/dist/types/components/index.d.ts +34 -0
- package/dist/types/components/stories/AccountForm.stories.d.ts +13 -0
- package/dist/types/components/stories/AuthLayout.stories.d.ts +27 -0
- package/dist/types/components/stories/ChangeEmailForm.stories.d.ts +11 -0
- package/dist/types/components/stories/ContinueForm.stories.d.ts +10 -0
- package/dist/types/components/stories/EnterCodeForm.stories.d.ts +9 -0
- package/dist/types/components/stories/EnterPasswordForm.stories.d.ts +22 -0
- package/dist/types/components/stories/IdentifierForm.stories.d.ts +42 -0
- package/dist/types/components/stories/IdentifierPage.stories.d.ts +33 -0
- package/dist/types/components/stories/ImpersonateForm.stories.d.ts +11 -0
- package/dist/types/components/stories/LoginForm.stories.d.ts +12 -0
- package/dist/types/components/ui/button.d.ts +12 -0
- package/dist/types/components/ui/card.d.ts +30 -0
- package/dist/types/components/ui/input-otp.d.ts +31 -0
- package/dist/types/components/ui/input.d.ts +15 -0
- package/dist/types/components/ui/label.d.ts +9 -0
- package/dist/types/constants/defaultBranding.d.ts +2 -0
- package/dist/types/constants/defaultTheme.d.ts +2 -0
- package/dist/types/constants/index.d.ts +2 -0
- package/dist/types/constants.d.ts +15 -0
- package/dist/types/email-services/index.d.ts +3 -0
- package/dist/types/email-services/mailgun.d.ts +18 -0
- package/dist/types/email-services/postmark.d.ts +14 -0
- package/dist/types/email-services/resend.d.ts +14 -0
- package/dist/types/emails/defaults/Layout.d.ts +12 -0
- package/dist/types/emails/defaults/PrimaryButton.d.ts +11 -0
- package/dist/types/emails/defaults/ResetEmail.d.ts +1 -0
- package/dist/types/emails/defaults/ResetEmailByCode.d.ts +1 -0
- package/dist/types/emails/defaults/UserInvitation.d.ts +1 -0
- package/dist/types/emails/defaults/VerifyEmail.d.ts +1 -0
- package/dist/types/emails/defaults/VerifyEmailByCode.d.ts +1 -0
- package/dist/types/emails/defaults/WelcomeEmail.d.ts +1 -0
- package/dist/types/emails/defaults/compiled.d.ts +2 -0
- package/dist/types/emails/defaults/index.d.ts +6 -0
- package/dist/types/emails/defaults/subjects.d.ts +2 -0
- package/dist/types/emails/index.d.ts +70 -0
- package/dist/types/emails/render.d.ts +41 -0
- package/dist/types/errors/is-unique-constraint-error.d.ts +8 -0
- package/dist/types/errors/json-http-exception.d.ts +5 -0
- package/dist/types/errors/redirect-exception.d.ts +6 -0
- package/dist/types/generated/locale-types.d.ts +690 -0
- package/dist/types/helpers/cache-wrapper.d.ts +23 -0
- package/dist/types/helpers/client-assertion.d.ts +49 -0
- package/dist/types/helpers/client-keys.d.ts +27 -0
- package/dist/types/helpers/client.d.ts +496 -0
- package/dist/types/helpers/dcr/constraint-enforcement.d.ts +24 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +83 -0
- package/dist/types/helpers/dcr/mint-iat.d.ts +14 -0
- package/dist/types/helpers/dcr/mint-token.d.ts +7 -0
- package/dist/types/helpers/dcr/validate-connect-origin.d.ts +20 -0
- package/dist/types/helpers/dcr/verify-token.d.ts +8 -0
- package/dist/types/helpers/default-destinations.d.ts +55 -0
- package/dist/types/helpers/entity-hooks-wrapper.d.ts +43 -0
- package/dist/types/helpers/hook-events.d.ts +20 -0
- package/dist/types/helpers/hook-user-payload.d.ts +8 -0
- package/dist/types/helpers/hrd.d.ts +3 -0
- package/dist/types/helpers/logging.d.ts +65 -0
- package/dist/types/helpers/outbox-cleanup.d.ts +10 -0
- package/dist/types/helpers/outbox-destinations/index.d.ts +2 -0
- package/dist/types/helpers/outbox-destinations/log-streams.d.ts +66 -0
- package/dist/types/helpers/outbox-destinations/logs.d.ts +20 -0
- package/dist/types/helpers/outbox-destinations/registration-finalizer.d.ts +29 -0
- package/dist/types/helpers/outbox-destinations/webhooks.d.ts +57 -0
- package/dist/types/helpers/outbox-relay.d.ts +34 -0
- package/dist/types/helpers/password-policy.d.ts +54 -0
- package/dist/types/helpers/request-object.d.ts +40 -0
- package/dist/types/helpers/run-outbox-relay.d.ts +58 -0
- package/dist/types/helpers/saml.d.ts +1 -0
- package/dist/types/helpers/scope-claims.d.ts +4 -0
- package/dist/types/helpers/scopes-permissions.d.ts +38 -0
- package/dist/types/helpers/server-timing.d.ts +12 -0
- package/dist/types/helpers/service-token.d.ts +54 -0
- package/dist/types/helpers/set-tenant-id.d.ts +15 -0
- package/dist/types/helpers/signing-keys.d.ts +16 -0
- package/dist/types/helpers/try-connection-client.d.ts +15 -0
- package/dist/types/helpers/user-linking.d.ts +14 -0
- package/dist/types/helpers/user-session-cleanup.d.ts +21 -0
- package/dist/types/helpers/users.d.ts +46 -0
- package/dist/types/helpers/wait-until.d.ts +21 -0
- package/dist/types/hooks/addDataHooks.d.ts +16 -0
- package/dist/types/hooks/code-executor/local.d.ts +13 -0
- package/dist/types/hooks/codehooks.d.ts +70 -0
- package/dist/types/hooks/formhooks.d.ts +99 -0
- package/dist/types/hooks/helpers/token-api.d.ts +17 -0
- package/dist/types/hooks/index.d.ts +20 -0
- package/dist/types/hooks/link-users.d.ts +29 -0
- package/dist/types/hooks/pagehooks.d.ts +16 -0
- package/dist/types/hooks/post-user-login.d.ts +29 -0
- package/dist/types/hooks/pre-defined/account-linking.d.ts +73 -0
- package/dist/types/hooks/pre-defined/ensure-username.d.ts +86 -0
- package/dist/types/hooks/pre-defined/index.d.ts +23 -0
- package/dist/types/hooks/pre-defined/set-preferred-username.d.ts +26 -0
- package/dist/types/hooks/templatehooks.d.ts +29 -0
- package/dist/types/hooks/user-deletion.d.ts +14 -0
- package/dist/types/hooks/user-registration.d.ts +88 -0
- package/dist/types/hooks/user-update.d.ts +16 -0
- package/dist/types/hooks/validate-signup.d.ts +34 -0
- package/dist/types/hooks/webhooks.d.ts +35 -0
- package/dist/types/i18n/index.d.ts +77 -0
- package/dist/types/index.d.ts +15791 -0
- package/dist/types/locales/index.d.ts +9 -0
- package/dist/types/middlewares/apply-config.d.ts +14 -0
- package/dist/types/middlewares/authentication.d.ts +26 -0
- package/dist/types/middlewares/client-info.d.ts +8 -0
- package/dist/types/middlewares/index.d.ts +6 -0
- package/dist/types/middlewares/outbox.d.ts +24 -0
- package/dist/types/middlewares/register-component.d.ts +10 -0
- package/dist/types/middlewares/tenant.d.ts +12 -0
- package/dist/types/migration-providers/auth0.d.ts +3 -0
- package/dist/types/migration-providers/index.d.ts +5 -0
- package/dist/types/migration-providers/types.d.ts +32 -0
- package/dist/types/routes/auth-api/account.d.ts +36 -0
- package/dist/types/routes/auth-api/authenticate.d.ts +31 -0
- package/dist/types/routes/auth-api/authorize.d.ts +239 -0
- package/dist/types/routes/auth-api/callback.d.ts +234 -0
- package/dist/types/routes/auth-api/connect-start.d.ts +52 -0
- package/dist/types/routes/auth-api/dbconnections.d.ts +43 -0
- package/dist/types/routes/auth-api/index.d.ts +1580 -0
- package/dist/types/routes/auth-api/logout.d.ts +20 -0
- package/dist/types/routes/auth-api/oidc-logout.d.ts +52 -0
- package/dist/types/routes/auth-api/passwordless.d.ts +154 -0
- package/dist/types/routes/auth-api/register/index.d.ts +159 -0
- package/dist/types/routes/auth-api/register/shared.d.ts +30 -0
- package/dist/types/routes/auth-api/revoke.d.ts +73 -0
- package/dist/types/routes/auth-api/token.d.ts +412 -0
- package/dist/types/routes/auth-api/userinfo.d.ts +84 -0
- package/dist/types/routes/auth-api/well-known.d.ts +74 -0
- package/dist/types/routes/management-api/action-executions.d.ts +90 -0
- package/dist/types/routes/management-api/action-triggers.d.ts +118 -0
- package/dist/types/routes/management-api/actions.d.ts +673 -0
- package/dist/types/routes/management-api/analytics.d.ts +18 -0
- package/dist/types/routes/management-api/attack-protection.d.ts +189 -0
- package/dist/types/routes/management-api/authentication-methods.d.ts +115 -0
- package/dist/types/routes/management-api/branding.d.ts +402 -0
- package/dist/types/routes/management-api/client-grants.d.ts +183 -0
- package/dist/types/routes/management-api/client-registration-tokens.d.ts +35 -0
- package/dist/types/routes/management-api/clients.d.ts +995 -0
- package/dist/types/routes/management-api/connections.d.ts +872 -0
- package/dist/types/routes/management-api/custom-domains.d.ts +266 -0
- package/dist/types/routes/management-api/email-templates.d.ts +205 -0
- package/dist/types/routes/management-api/emails.d.ts +124 -0
- package/dist/types/routes/management-api/failed-events.d.ts +146 -0
- package/dist/types/routes/management-api/flows.d.ts +438 -0
- package/dist/types/routes/management-api/forms.d.ts +4090 -0
- package/dist/types/routes/management-api/guardian.d.ts +211 -0
- package/dist/types/routes/management-api/hook-code.d.ts +142 -0
- package/dist/types/routes/management-api/hooks.d.ts +405 -0
- package/dist/types/routes/management-api/index.d.ts +13210 -0
- package/dist/types/routes/management-api/keys.d.ts +98 -0
- package/dist/types/routes/management-api/log-streams.d.ts +170 -0
- package/dist/types/routes/management-api/logs.d.ts +159 -0
- package/dist/types/routes/management-api/migration-sources.d.ts +173 -0
- package/dist/types/routes/management-api/organizations.d.ts +896 -0
- package/dist/types/routes/management-api/prompts.d.ts +150 -0
- package/dist/types/routes/management-api/refresh_tokens.d.ts +66 -0
- package/dist/types/routes/management-api/resource-servers.d.ts +321 -0
- package/dist/types/routes/management-api/roles.d.ts +260 -0
- package/dist/types/routes/management-api/sessions.d.ts +78 -0
- package/dist/types/routes/management-api/stats.d.ts +44 -0
- package/dist/types/routes/management-api/tenants.d.ts +546 -0
- package/dist/types/routes/management-api/themes.d.ts +265 -0
- package/dist/types/routes/management-api/tickets.d.ts +75 -0
- package/dist/types/routes/management-api/users-by-email.d.ts +23 -0
- package/dist/types/routes/management-api/users.d.ts +1085 -0
- package/dist/types/routes/saml/index.d.ts +64 -0
- package/dist/types/routes/saml/samlp.d.ts +64 -0
- package/dist/types/routes/setup.d.ts +6 -0
- package/dist/types/routes/universal-login/account-change-email-confirmation.d.ts +30 -0
- package/dist/types/routes/universal-login/account-change-email-verify.d.ts +66 -0
- package/dist/types/routes/universal-login/account-change-email.d.ts +58 -0
- package/dist/types/routes/universal-login/account.d.ts +64 -0
- package/dist/types/routes/universal-login/common.d.ts +1482 -0
- package/dist/types/routes/universal-login/continue.d.ts +37 -0
- package/dist/types/routes/universal-login/enter-password.d.ts +49 -0
- package/dist/types/routes/universal-login/error-handler.d.ts +14 -0
- package/dist/types/routes/universal-login/error-page.d.ts +32 -0
- package/dist/types/routes/universal-login/error.d.ts +20 -0
- package/dist/types/routes/universal-login/flow-api.d.ts +381 -0
- package/dist/types/routes/universal-login/flow-widget.d.ts +23 -0
- package/dist/types/routes/universal-login/forgot-password.d.ts +32 -0
- package/dist/types/routes/universal-login/form-node.d.ts +74 -0
- package/dist/types/routes/universal-login/identifier.d.ts +55 -0
- package/dist/types/routes/universal-login/impersonate.d.ts +71 -0
- package/dist/types/routes/universal-login/index.d.ts +748 -0
- package/dist/types/routes/universal-login/info.d.ts +20 -0
- package/dist/types/routes/universal-login/invalid-session.d.ts +19 -0
- package/dist/types/routes/universal-login/otp-challenge.d.ts +54 -0
- package/dist/types/routes/universal-login/pre-signup-sent.d.ts +19 -0
- package/dist/types/routes/universal-login/pre-signup.d.ts +32 -0
- package/dist/types/routes/universal-login/reset-password.d.ts +39 -0
- package/dist/types/routes/universal-login/sanitization-utils.d.ts +55 -0
- package/dist/types/routes/universal-login/screen-api.d.ts +20 -0
- package/dist/types/routes/universal-login/screens/accept-invitation.d.ts +13 -0
- package/dist/types/routes/universal-login/screens/account-delete.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account-helpers.d.ts +13 -0
- package/dist/types/routes/universal-login/screens/account-linked.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account-mfa-phone-enrollment.d.ts +10 -0
- package/dist/types/routes/universal-login/screens/account-mfa-totp-enrollment.d.ts +10 -0
- package/dist/types/routes/universal-login/screens/account-passkeys.d.ts +10 -0
- package/dist/types/routes/universal-login/screens/account-profile.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account-security.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/connect-consent.d.ts +9 -0
- package/dist/types/routes/universal-login/screens/connect-tenant-select.d.ts +13 -0
- package/dist/types/routes/universal-login/screens/email-otp-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/enter-password.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/forgot-password.d.ts +11 -0
- package/dist/types/routes/universal-login/screens/identifier.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/impersonate.d.ts +15 -0
- package/dist/types/routes/universal-login/screens/index.d.ts +29 -0
- package/dist/types/routes/universal-login/screens/login-passwordless-identifier.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/login.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/magic-link-sent.d.ts +11 -0
- package/dist/types/routes/universal-login/screens/mfa-login-options.d.ts +21 -0
- package/dist/types/routes/universal-login/screens/mfa-phone-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/mfa-phone-enrollment.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/mfa-totp-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/mfa-totp-enrollment.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/passkey-challenge.d.ts +16 -0
- package/dist/types/routes/universal-login/screens/passkey-enrollment-nudge.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/passkey-enrollment.d.ts +11 -0
- package/dist/types/routes/universal-login/screens/passkey-utils.d.ts +100 -0
- package/dist/types/routes/universal-login/screens/registry.d.ts +28 -0
- package/dist/types/routes/universal-login/screens/reset-password-code.d.ts +18 -0
- package/dist/types/routes/universal-login/screens/reset-password.d.ts +36 -0
- package/dist/types/routes/universal-login/screens/signup.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/sms-otp-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/try-connection-result.d.ts +12 -0
- package/dist/types/routes/universal-login/screens/types.d.ts +167 -0
- package/dist/types/routes/universal-login/signup.d.ts +54 -0
- package/dist/types/routes/universal-login/u2-form-node.d.ts +93 -0
- package/dist/types/routes/universal-login/u2-index.d.ts +173 -0
- package/dist/types/routes/universal-login/u2-routes.d.ts +98 -0
- package/dist/types/routes/universal-login/u2-widget-page.d.ts +187 -0
- package/dist/types/routes/universal-login/universal-login-template.d.ts +55 -0
- package/dist/types/routes/universal-login/validate-email.d.ts +20 -0
- package/dist/types/routes/universal-login/widget-routes.d.ts +81 -0
- package/dist/types/seed.d.ts +86 -0
- package/dist/types/state-machines/index.d.ts +1 -0
- package/dist/types/state-machines/login-session.d.ts +173 -0
- package/dist/types/storybook-utils/HonoJSXWrapper.d.ts +43 -0
- package/dist/types/strategies/apple.d.ts +24 -0
- package/dist/types/strategies/facebook.d.ts +20 -0
- package/dist/types/strategies/github.d.ts +23 -0
- package/dist/types/strategies/google-oauth2.d.ts +43 -0
- package/dist/types/strategies/index.d.ts +69 -0
- package/dist/types/strategies/internal-oauth2.d.ts +17 -0
- package/dist/types/strategies/microsoft.d.ts +24 -0
- package/dist/types/strategies/oauth2.d.ts +38 -0
- package/dist/types/strategies/oidc.d.ts +38 -0
- package/dist/types/strategies/saml.d.ts +9 -0
- package/dist/types/strategies/vipps.d.ts +16 -0
- package/dist/types/styles/index.d.ts +9 -0
- package/dist/types/styles/tailwind.d.ts +1 -0
- package/dist/types/types/Auth0Client.d.ts +9 -0
- package/dist/types/types/AuthError.d.ts +14 -0
- package/dist/types/types/AuthHeroConfig.d.ts +415 -0
- package/dist/types/types/Bindings.d.ts +51 -0
- package/dist/types/types/GrantFlowResult.d.ts +22 -0
- package/dist/types/types/Hooks.d.ts +240 -0
- package/dist/types/types/IdToken.d.ts +30 -0
- package/dist/types/types/UserInfo.d.ts +8 -0
- package/dist/types/types/Variables.d.ts +33 -0
- package/dist/types/types/auth0/Query.d.ts +12 -0
- package/dist/types/types/auth0/Totals.d.ts +11 -0
- package/dist/types/types/auth0/UserResponse.d.ts +46 -0
- package/dist/types/types/auth0/index.d.ts +3 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/saml.d.ts +1 -0
- package/dist/types/utils/append-log.d.ts +10 -0
- package/dist/types/utils/auth-header.d.ts +18 -0
- package/dist/types/utils/auth0-upstream.d.ts +60 -0
- package/dist/types/utils/authIframe.d.ts +11 -0
- package/dist/types/utils/client-info.d.ts +47 -0
- package/dist/types/utils/color.d.ts +23 -0
- package/dist/types/utils/connections.d.ts +11 -0
- package/dist/types/utils/cookies.d.ts +28 -0
- package/dist/types/utils/crypto.d.ts +2 -0
- package/dist/types/utils/deep-merge.d.ts +6 -0
- package/dist/types/utils/encryption.d.ts +22 -0
- package/dist/types/utils/entity-id.d.ts +13 -0
- package/dist/types/utils/fetchAll.d.ts +60 -0
- package/dist/types/utils/form-post.d.ts +1 -0
- package/dist/types/utils/id-token-hash.d.ts +1 -0
- package/dist/types/utils/incognito.d.ts +11 -0
- package/dist/types/utils/instance-to-json.d.ts +8 -0
- package/dist/types/utils/ip.d.ts +8 -0
- package/dist/types/utils/is-valid-redirect-url.d.ts +4 -0
- package/dist/types/utils/jwk-alg.d.ts +20 -0
- package/dist/types/utils/jwks.d.ts +41 -0
- package/dist/types/utils/jwt.d.ts +15 -0
- package/dist/types/utils/organization-id.d.ts +2 -0
- package/dist/types/utils/otp.d.ts +1 -0
- package/dist/types/utils/refresh-token-format.d.ts +20 -0
- package/dist/types/utils/safe-compare.d.ts +1 -0
- package/dist/types/utils/sort.d.ts +4 -0
- package/dist/types/utils/ssrf-fetch.d.ts +44 -0
- package/dist/types/utils/ulid.d.ts +1 -0
- package/dist/types/utils/url.d.ts +16 -0
- package/dist/types/utils/user-id.d.ts +2 -0
- package/dist/types/utils/username-password-provider.d.ts +67 -0
- package/dist/types/utils/username.d.ts +11 -0
- package/dist/types/variables.d.ts +4 -0
- package/package.json +11 -11
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding, User } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
error?: string;
|
|
6
|
+
theme: Theme | null;
|
|
7
|
+
branding: Branding | null;
|
|
8
|
+
user: User;
|
|
9
|
+
state: string;
|
|
10
|
+
client: EnrichedClient;
|
|
11
|
+
};
|
|
12
|
+
declare const ImpersonationPage: FC<Props>;
|
|
13
|
+
export default ImpersonationPage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
redirectUrl?: string;
|
|
6
|
+
theme: Theme | null;
|
|
7
|
+
branding: Branding | null;
|
|
8
|
+
client: EnrichedClient;
|
|
9
|
+
};
|
|
10
|
+
declare const InvalidSessionPage: FC<Props>;
|
|
11
|
+
export default InvalidSessionPage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Branding, Theme } from "@authhero/adapter-interfaces";
|
|
2
|
+
import { EnrichedClient } from "../helpers/client";
|
|
3
|
+
import { PropsWithChildren } from "hono/jsx";
|
|
4
|
+
type LayoutProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
theme: Theme | null;
|
|
7
|
+
branding: Branding | null;
|
|
8
|
+
client: EnrichedClient | null;
|
|
9
|
+
};
|
|
10
|
+
declare const Layout: ({ title, children, theme, branding, client, }: PropsWithChildren<LayoutProps>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
11
|
+
export default Layout;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
export interface LoginFormProps {
|
|
5
|
+
error?: string;
|
|
6
|
+
theme?: Theme | null;
|
|
7
|
+
branding?: Branding | null;
|
|
8
|
+
state: string;
|
|
9
|
+
email: string;
|
|
10
|
+
client: EnrichedClient;
|
|
11
|
+
className?: string;
|
|
12
|
+
showCodeOption?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const LoginForm: FC<LoginFormProps>;
|
|
15
|
+
export default LoginForm;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
message: string;
|
|
6
|
+
theme: Theme | null;
|
|
7
|
+
branding: Branding | null;
|
|
8
|
+
client: EnrichedClient;
|
|
9
|
+
pageTitle?: string;
|
|
10
|
+
state?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const MessagePage: FC<Props>;
|
|
13
|
+
export default MessagePage;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
theme: Theme | null;
|
|
6
|
+
branding: Branding | null;
|
|
7
|
+
client: EnrichedClient;
|
|
8
|
+
email: string;
|
|
9
|
+
state: string;
|
|
10
|
+
};
|
|
11
|
+
declare const PreSignUpConfirmationPage: FC<Props>;
|
|
12
|
+
export default PreSignUpConfirmationPage;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
state: string;
|
|
6
|
+
theme: Theme | null;
|
|
7
|
+
branding: Branding | null;
|
|
8
|
+
client: EnrichedClient;
|
|
9
|
+
email?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const PreSignupPage: FC<Props>;
|
|
12
|
+
export default PreSignupPage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
error?: string;
|
|
6
|
+
theme?: Theme | null;
|
|
7
|
+
branding?: Branding | null;
|
|
8
|
+
loginSession: LoginSession;
|
|
9
|
+
email: string;
|
|
10
|
+
client: EnrichedClient;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const ResetPasswordForm: FC<Props>;
|
|
14
|
+
export default ResetPasswordForm;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type ResetPasswordPageProps = {
|
|
5
|
+
error?: string;
|
|
6
|
+
theme: Theme | null;
|
|
7
|
+
branding: Branding | null;
|
|
8
|
+
client: EnrichedClient;
|
|
9
|
+
email: string;
|
|
10
|
+
};
|
|
11
|
+
declare const ResetPasswordPage: FC<ResetPasswordPageProps>;
|
|
12
|
+
export default ResetPasswordPage;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
error?: string;
|
|
6
|
+
theme?: Theme | null;
|
|
7
|
+
branding?: Branding | null;
|
|
8
|
+
loginSession: LoginSession;
|
|
9
|
+
email?: string;
|
|
10
|
+
code?: string;
|
|
11
|
+
client: EnrichedClient;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const SignUpForm: FC<Props>;
|
|
15
|
+
export default SignUpForm;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
state: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
theme: Theme | null;
|
|
8
|
+
branding: Branding | null;
|
|
9
|
+
client: EnrichedClient;
|
|
10
|
+
email?: string;
|
|
11
|
+
code?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const SignupPage: FC<Props>;
|
|
14
|
+
export default SignupPage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoginSession } from "@authhero/adapter-interfaces";
|
|
2
|
+
type Props = {
|
|
3
|
+
connection: string;
|
|
4
|
+
icon: any;
|
|
5
|
+
text: string;
|
|
6
|
+
canResize?: boolean;
|
|
7
|
+
loginSession: LoginSession;
|
|
8
|
+
};
|
|
9
|
+
declare const SocialButton: ({ connection, text, icon, canResize, loginSession, }: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
10
|
+
export default SocialButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
theme: Theme | null;
|
|
6
|
+
branding: Branding | null;
|
|
7
|
+
client: EnrichedClient;
|
|
8
|
+
state: string;
|
|
9
|
+
};
|
|
10
|
+
declare const UnverifiedEmailPage: FC<Props>;
|
|
11
|
+
export default UnverifiedEmailPage;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { AuthParams, Theme, Branding } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
type Props = {
|
|
5
|
+
error?: string;
|
|
6
|
+
theme: Theme | null;
|
|
7
|
+
branding: Branding | null;
|
|
8
|
+
client: EnrichedClient;
|
|
9
|
+
authParams: AuthParams;
|
|
10
|
+
};
|
|
11
|
+
declare const UserNotFound: FC<Props>;
|
|
12
|
+
export default UserNotFound;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import AppLogo from "./AppLogo";
|
|
2
|
+
import AuthLayout from "./AuthLayout";
|
|
3
|
+
import Button from "./Button";
|
|
4
|
+
import EmailValidatedPage from "./EmailValidatedPage";
|
|
5
|
+
import EnterCodePage from "./EnterCodePage";
|
|
6
|
+
import IdentifierPage from "./IdentifierPage";
|
|
7
|
+
import IdentifierForm from "./IdentifierForm";
|
|
8
|
+
import EnterPasswordPage from "./EnterPasswordPage";
|
|
9
|
+
import ErrorMessage from "./ErrorMessage";
|
|
10
|
+
import Footer from "./Footer";
|
|
11
|
+
import ForgotPasswordPage from "./ForgotPasswordPage";
|
|
12
|
+
import ForgotPasswordSentPage from "./ForgotPasswordSentPage";
|
|
13
|
+
import FormComponent from "./Form";
|
|
14
|
+
import { GoBack } from "./GoBack";
|
|
15
|
+
import GoogleLogo from "./GoogleLogo";
|
|
16
|
+
import Icon from "./Icon";
|
|
17
|
+
import InvalidSessionPage from "./InvalidSessionPage";
|
|
18
|
+
import Layout from "./Layout";
|
|
19
|
+
import MessagePage from "./MessagePage";
|
|
20
|
+
import PreSignUpConfirmationPage from "./PreSignUpConfirmationPage";
|
|
21
|
+
import PreSignUpPage from "./PreSignUpPage";
|
|
22
|
+
import ResetPasswordPage from "./ResetPasswordPage";
|
|
23
|
+
import SignUpPage from "./SignUpPage";
|
|
24
|
+
import SocialButton from "./SocialButton";
|
|
25
|
+
import Spinner from "./Spinner";
|
|
26
|
+
import Trans from "./Trans";
|
|
27
|
+
import UnverifiedEmailPage from "./UnverifiedEmailPage";
|
|
28
|
+
import UserNotFoundPage from "./UserNotFoundPage";
|
|
29
|
+
import VippsLogo from "./VippsLogo";
|
|
30
|
+
import ButtonUI from "./ui/button";
|
|
31
|
+
import CardUI, { CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from "./ui/card";
|
|
32
|
+
import InputUI from "./ui/input";
|
|
33
|
+
import LabelUI from "./ui/label";
|
|
34
|
+
export { AppLogo, AuthLayout, Button, EmailValidatedPage, EnterCodePage, IdentifierPage, IdentifierForm, EnterPasswordPage, ErrorMessage, Footer, ForgotPasswordPage, ForgotPasswordSentPage, FormComponent, GoBack, GoogleLogo, Icon, InvalidSessionPage as InvalidSession, Layout, MessagePage as Message, PreSignUpConfirmationPage, PreSignUpPage, ResetPasswordPage, SignUpPage, SocialButton, Spinner, Trans, UnverifiedEmailPage, UserNotFoundPage, VippsLogo, ButtonUI, CardUI, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, InputUI, LabelUI, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import AccountForm from "../AccountForm";
|
|
4
|
+
declare const meta: Meta<typeof AccountForm>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithSuccess: Story;
|
|
9
|
+
export declare const WithError: Story;
|
|
10
|
+
export declare const WithLinkedAccounts: Story;
|
|
11
|
+
export declare const WithLongEmail: Story;
|
|
12
|
+
export declare const WithTheming: Story;
|
|
13
|
+
export declare const DarkMode: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import type { Theme, Branding } from "@authhero/adapter-interfaces";
|
|
4
|
+
import type { EnrichedClient } from "../../helpers/client";
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: ({ title, children, theme, branding, }: import("hono/jsx").PropsWithChildren<{
|
|
8
|
+
title: string;
|
|
9
|
+
theme?: Theme | null;
|
|
10
|
+
branding?: Branding | null;
|
|
11
|
+
client?: EnrichedClient | null;
|
|
12
|
+
}>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: string;
|
|
15
|
+
};
|
|
16
|
+
tags: string[];
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
export declare const CenterLayout: Story;
|
|
21
|
+
export declare const LeftLayout: Story;
|
|
22
|
+
export declare const RightLayout: Story;
|
|
23
|
+
export declare const GradientBackground: Story;
|
|
24
|
+
export declare const ImageBackground: Story;
|
|
25
|
+
export declare const DarkTheme: Story;
|
|
26
|
+
export declare const NoLogo: Story;
|
|
27
|
+
export declare const MultipleComponents: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import ChangeEmailForm from "../ChangeEmailForm";
|
|
4
|
+
declare const meta: Meta<typeof ChangeEmailForm>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
9
|
+
export declare const WithLongCurrentEmail: Story;
|
|
10
|
+
export declare const WithTheming: Story;
|
|
11
|
+
export declare const DarkMode: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import ContinueForm from "../ContinueForm";
|
|
4
|
+
declare const meta: Meta<typeof ContinueForm>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithCustomUser: Story;
|
|
9
|
+
export declare const WithTheming: Story;
|
|
10
|
+
export declare const DarkMode: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import EnterCodeForm from "../EnterCodeForm";
|
|
4
|
+
declare const meta: Meta<typeof EnterCodeForm>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
9
|
+
export declare const WithPasswordLogin: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: any;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
tags: string[];
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const WithError: Story;
|
|
19
|
+
export declare const DarkTheme: Story;
|
|
20
|
+
export declare const CustomBranding: Story;
|
|
21
|
+
export declare const NoLogo: Story;
|
|
22
|
+
export declare const LongEmail: Story;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
import type { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
|
|
4
|
+
import type { EnrichedClient } from "../../helpers/client";
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: import("hono/jsx").FC<{
|
|
8
|
+
error?: string;
|
|
9
|
+
theme?: Theme | null;
|
|
10
|
+
branding?: Branding | null;
|
|
11
|
+
loginSession: LoginSession;
|
|
12
|
+
email?: string;
|
|
13
|
+
client: EnrichedClient;
|
|
14
|
+
className?: string;
|
|
15
|
+
isEmbedded?: boolean;
|
|
16
|
+
browserName?: string;
|
|
17
|
+
}>;
|
|
18
|
+
parameters: {
|
|
19
|
+
layout: string;
|
|
20
|
+
backgrounds: {
|
|
21
|
+
default: string;
|
|
22
|
+
values: {
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
tags: string[];
|
|
29
|
+
};
|
|
30
|
+
export default meta;
|
|
31
|
+
type Story = StoryObj<typeof meta>;
|
|
32
|
+
export declare const Default: Story;
|
|
33
|
+
export declare const WithError: Story;
|
|
34
|
+
export declare const PurpleTheme: Story;
|
|
35
|
+
export declare const DarkTheme: Story;
|
|
36
|
+
export declare const PillStyle: Story;
|
|
37
|
+
export declare const BrandingOnly: Story;
|
|
38
|
+
export declare const PhoneOnly: Story;
|
|
39
|
+
export declare const NoTheming: Story;
|
|
40
|
+
export declare const CustomGoogleFont: Story;
|
|
41
|
+
export declare const MultipleSocialConnections: Story;
|
|
42
|
+
export declare const DeveloperSocialLogins: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
import type { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
|
|
4
|
+
import type { EnrichedClient } from "../../helpers/client";
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: import("hono/jsx").FC<{
|
|
8
|
+
error?: string;
|
|
9
|
+
theme: Theme | null;
|
|
10
|
+
branding: Branding | null;
|
|
11
|
+
loginSession: LoginSession;
|
|
12
|
+
email?: string;
|
|
13
|
+
client: EnrichedClient;
|
|
14
|
+
isEmbedded?: boolean;
|
|
15
|
+
browserName?: string;
|
|
16
|
+
}>;
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: string;
|
|
19
|
+
};
|
|
20
|
+
tags: string[];
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const EmailOnly: Story;
|
|
25
|
+
export declare const EmailWithError: Story;
|
|
26
|
+
export declare const PhoneOnly: Story;
|
|
27
|
+
export declare const EmailOrPhone: Story;
|
|
28
|
+
export declare const EmailWithGoogle: Story;
|
|
29
|
+
export declare const EmailWithAllSocial: Story;
|
|
30
|
+
export declare const SocialOnly: Story;
|
|
31
|
+
export declare const UsernamePassword: Story;
|
|
32
|
+
export declare const NoTheming: Story;
|
|
33
|
+
export declare const CustomColors: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import ImpersonateForm from "../ImpersonateForm";
|
|
4
|
+
declare const meta: Meta<typeof ImpersonateForm>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
9
|
+
export declare const WithCustomUser: Story;
|
|
10
|
+
export declare const WithTheming: Story;
|
|
11
|
+
export declare const DarkMode: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import LoginForm from "../LoginForm";
|
|
4
|
+
declare const meta: Meta<typeof LoginForm>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
9
|
+
export declare const WithoutCodeOption: Story;
|
|
10
|
+
export declare const WithLongEmail: Story;
|
|
11
|
+
export declare const WithTheming: Story;
|
|
12
|
+
export declare const DarkMode: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { PropsWithChildren } from "hono/jsx";
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
variant?: "default" | "outline" | "ghost";
|
|
6
|
+
size?: "default" | "sm" | "lg";
|
|
7
|
+
type?: "button" | "submit" | "reset";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
style?: Record<string, string | number>;
|
|
10
|
+
}
|
|
11
|
+
declare const Button: FC<PropsWithChildren<ButtonProps>>;
|
|
12
|
+
export default Button;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { PropsWithChildren } from "hono/jsx";
|
|
3
|
+
export interface CardProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: Record<string, string | number>;
|
|
6
|
+
}
|
|
7
|
+
declare const Card: FC<PropsWithChildren<CardProps>>;
|
|
8
|
+
export interface CardHeaderProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CardHeader: FC<PropsWithChildren<CardHeaderProps>>;
|
|
12
|
+
export interface CardTitleProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: Record<string, string | number>;
|
|
15
|
+
}
|
|
16
|
+
export declare const CardTitle: FC<PropsWithChildren<CardTitleProps>>;
|
|
17
|
+
export interface CardDescriptionProps {
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: Record<string, string | number>;
|
|
20
|
+
}
|
|
21
|
+
export declare const CardDescription: FC<PropsWithChildren<CardDescriptionProps>>;
|
|
22
|
+
export interface CardContentProps {
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const CardContent: FC<PropsWithChildren<CardContentProps>>;
|
|
26
|
+
export interface CardFooterProps {
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const CardFooter: FC<PropsWithChildren<CardFooterProps>>;
|
|
30
|
+
export default Card;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
export interface InputOTPProps {
|
|
3
|
+
maxLength: number;
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onComplete?: (value: string) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
containerClassName?: string;
|
|
10
|
+
pattern?: RegExp;
|
|
11
|
+
name?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface InputOTPGroupProps {
|
|
17
|
+
children: any;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface InputOTPSlotProps {
|
|
21
|
+
index: number;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: Record<string, string | number>;
|
|
24
|
+
}
|
|
25
|
+
declare const InputOTP: FC<InputOTPProps>;
|
|
26
|
+
declare const InputOTPGroup: FC<InputOTPGroupProps>;
|
|
27
|
+
declare const InputOTPSlot: FC<InputOTPSlotProps>;
|
|
28
|
+
declare const InputOTPSeparator: FC<{
|
|
29
|
+
className?: string;
|
|
30
|
+
}>;
|
|
31
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
export interface InputProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
value?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
style?: Record<string, string | number>;
|
|
13
|
+
}
|
|
14
|
+
declare const Input: FC<InputProps>;
|
|
15
|
+
export default Input;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FC } from "hono/jsx";
|
|
2
|
+
import { PropsWithChildren } from "hono/jsx";
|
|
3
|
+
export interface LabelProps {
|
|
4
|
+
htmlFor?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: Record<string, string | number>;
|
|
7
|
+
}
|
|
8
|
+
declare const Label: FC<PropsWithChildren<LabelProps>>;
|
|
9
|
+
export default Label;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const USERNAME_PASSWORD_PROVIDER = "auth2";
|
|
2
|
+
export declare const JWKS_CACHE_TIMEOUT_IN_SECONDS: number;
|
|
3
|
+
export declare const SILENT_AUTH_MAX_AGE_IN_SECONDS: number;
|
|
4
|
+
export declare const UNIVERSAL_AUTH_SESSION_EXPIRES_IN_SECONDS: number;
|
|
5
|
+
export declare const SILENT_COOKIE_NAME = "auth-token";
|
|
6
|
+
export declare const OTP_EXPIRATION_TIME: number;
|
|
7
|
+
export declare const EMAIL_VERIFICATION_EXPIRATION_TIME: number;
|
|
8
|
+
export declare const AUTHORIZATION_CODE_EXPIRES_IN_SECONDS: number;
|
|
9
|
+
export declare const OAUTH2_CODE_EXPIRES_IN_SECONDS: number;
|
|
10
|
+
export declare const TICKET_EXPIRATION_TIME: number;
|
|
11
|
+
export declare const PASSWORD_RESET_EXPIRATION_TIME: number;
|
|
12
|
+
export declare const LOGIN_SESSION_EXPIRATION_TIME: number;
|
|
13
|
+
export declare const TRY_CONNECTION_CLIENT_ID_PREFIX = "authhero-try-connection-";
|
|
14
|
+
export declare function getTryConnectionClientId(tenantId: string): string;
|
|
15
|
+
export declare function isTryConnectionClientId(clientId: string): boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MailgunEmailService, mailgunCredentialsSchema, type MailgunCredentials, type MailgunEmailServiceOptions, } from "./mailgun";
|
|
2
|
+
export { ResendEmailService, resendCredentialsSchema, type ResendCredentials, type ResendEmailServiceOptions, } from "./resend";
|
|
3
|
+
export { PostmarkEmailService, postmarkCredentialsSchema, type PostmarkCredentials, type PostmarkEmailServiceOptions, } from "./postmark";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import type { EmailServiceAdapter, EmailServiceSendParams } from "@authhero/adapter-interfaces";
|
|
3
|
+
export declare const mailgunCredentialsSchema: z.ZodObject<{
|
|
4
|
+
api_key: z.ZodString;
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
7
|
+
eu: "eu";
|
|
8
|
+
}>>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type MailgunCredentials = z.infer<typeof mailgunCredentialsSchema>;
|
|
11
|
+
export interface MailgunEmailServiceOptions {
|
|
12
|
+
fetchImpl?: typeof fetch;
|
|
13
|
+
}
|
|
14
|
+
export declare class MailgunEmailService implements EmailServiceAdapter {
|
|
15
|
+
private readonly options;
|
|
16
|
+
constructor(options?: MailgunEmailServiceOptions);
|
|
17
|
+
send(params: EmailServiceSendParams): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import type { EmailServiceAdapter, EmailServiceSendParams } from "@authhero/adapter-interfaces";
|
|
3
|
+
export declare const postmarkCredentialsSchema: z.ZodObject<{
|
|
4
|
+
api_key: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type PostmarkCredentials = z.infer<typeof postmarkCredentialsSchema>;
|
|
7
|
+
export interface PostmarkEmailServiceOptions {
|
|
8
|
+
fetchImpl?: typeof fetch;
|
|
9
|
+
}
|
|
10
|
+
export declare class PostmarkEmailService implements EmailServiceAdapter {
|
|
11
|
+
private readonly options;
|
|
12
|
+
constructor(options?: PostmarkEmailServiceOptions);
|
|
13
|
+
send(params: EmailServiceSendParams): Promise<void>;
|
|
14
|
+
}
|