@stytch/vanilla-js 5.18.2 → 5.18.4
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 +14 -0
- package/dist/OneTapClient-zVI7LxJ6.d.ts +11 -0
- package/dist/adminPortal/index.d.ts +357 -11
- package/dist/adminPortal/index.esm.js +1 -1
- package/dist/adminPortal/index.js +1 -1
- package/dist/b2b/index.d.ts +73 -1
- package/dist/b2b/index.esm.js +82 -75
- package/dist/b2b/index.headless.d.ts +134 -1
- package/dist/b2b/index.headless.esm.js +36 -44
- package/dist/b2b/index.headless.js +35 -43
- package/dist/b2b/index.js +81 -74
- package/dist/{extractErrorMessage-CBdT83I1.js → extractErrorMessage-77eIbFpi.js} +38 -40
- package/dist/{extractErrorMessage-C1MkGgw9.js → extractErrorMessage-kTWTy_Kp.js} +38 -40
- package/dist/index.d.ts +112 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.headless.d.ts +99 -1
- package/dist/index.headless.esm.js +248 -315
- package/dist/index.headless.js +248 -315
- package/dist/index.js +1 -1
- package/dist/{internal-CuNGC8Ow.js → internal-C0TNgwBY.js} +226 -288
- package/dist/{internal-CSX7OA60.js → internal-C4xsnb6n.js} +226 -288
- package/package.json +16 -15
- package/dist/BootstrapDataManager.d.ts +0 -40
- package/dist/CaptchaProvider.d.ts +0 -7
- package/dist/ClientsideServicesProvider.d.ts +0 -16
- package/dist/HeadlessOAuthClient.d.ts +0 -68
- package/dist/IDPClient.d.ts +0 -45
- package/dist/NetworkClient.d.ts +0 -26
- package/dist/PKCEManager.d.ts +0 -12
- package/dist/StytchHeadlessClient.d.ts +0 -46
- package/dist/StytchUIClient.d.ts +0 -106
- package/dist/SubscriptionService.d.ts +0 -128
- package/dist/adminPortal/AdminPortalB2BProducts.d.ts +0 -11
- package/dist/adminPortal/AdminPortalStyleConfig.d.ts +0 -174
- package/dist/adminPortal/AdminPortalWrapper.d.ts +0 -11
- package/dist/adminPortal/MainContainer.d.ts +0 -4
- package/dist/adminPortal/MuiClassNameSetup.d.ts +0 -1
- package/dist/adminPortal/Router.d.ts +0 -44
- package/dist/adminPortal/StytchClientContext.d.ts +0 -13
- package/dist/adminPortal/classNameSeed.d.ts +0 -1
- package/dist/adminPortal/components/Accordion.d.ts +0 -1
- package/dist/adminPortal/components/ActionMenu.d.ts +0 -18
- package/dist/adminPortal/components/Alert.d.ts +0 -4
- package/dist/adminPortal/components/Autocomplete.d.ts +0 -18
- package/dist/adminPortal/components/Button.d.ts +0 -6
- package/dist/adminPortal/components/Checkbox.d.ts +0 -4
- package/dist/adminPortal/components/Code.d.ts +0 -4
- package/dist/adminPortal/components/CopyableText.d.ts +0 -6
- package/dist/adminPortal/components/DeleteConnection.d.ts +0 -24
- package/dist/adminPortal/components/Divider.d.ts +0 -4
- package/dist/adminPortal/components/EmbeddedTable.d.ts +0 -4
- package/dist/adminPortal/components/FilterMenu.d.ts +0 -11
- package/dist/adminPortal/components/FlexBox.d.ts +0 -1
- package/dist/adminPortal/components/IconButtonMenu.d.ts +0 -24
- package/dist/adminPortal/components/IdpField.d.ts +0 -6
- package/dist/adminPortal/components/InfoIcon.d.ts +0 -3
- package/dist/adminPortal/components/Input.d.ts +0 -6
- package/dist/adminPortal/components/Instruction.d.ts +0 -4
- package/dist/adminPortal/components/InstructionSet.d.ts +0 -6
- package/dist/adminPortal/components/Label.d.ts +0 -4
- package/dist/adminPortal/components/ListEditor.d.ts +0 -5
- package/dist/adminPortal/components/MenuItem.d.ts +0 -5
- package/dist/adminPortal/components/Modal.d.ts +0 -16
- package/dist/adminPortal/components/PaddedContainer.d.ts +0 -2
- package/dist/adminPortal/components/PaddingLeft.d.ts +0 -1
- package/dist/adminPortal/components/PageLoadingIndicator.d.ts +0 -2
- package/dist/adminPortal/components/PaginatedTable.d.ts +0 -4
- package/dist/adminPortal/components/Radio.d.ts +0 -8
- package/dist/adminPortal/components/RadioGroup.d.ts +0 -4
- package/dist/adminPortal/components/RolesList.d.ts +0 -12
- package/dist/adminPortal/components/ScimFields.d.ts +0 -6
- package/dist/adminPortal/components/SearchBar.d.ts +0 -3
- package/dist/adminPortal/components/Select.d.ts +0 -10
- package/dist/adminPortal/components/SetDefaultConnection.d.ts +0 -29
- package/dist/adminPortal/components/SettingsContainer.d.ts +0 -24
- package/dist/adminPortal/components/SettingsList.d.ts +0 -4
- package/dist/adminPortal/components/SettingsListItem.d.ts +0 -5
- package/dist/adminPortal/components/SettingsSection.d.ts +0 -7
- package/dist/adminPortal/components/Switch.d.ts +0 -9
- package/dist/adminPortal/components/Table.d.ts +0 -4
- package/dist/adminPortal/components/TableActions.d.ts +0 -5
- package/dist/adminPortal/components/Tag.d.ts +0 -6
- package/dist/adminPortal/components/TagList.d.ts +0 -4
- package/dist/adminPortal/components/Toast.d.ts +0 -5
- package/dist/adminPortal/components/Tooltip.d.ts +0 -3
- package/dist/adminPortal/components/Typography.d.ts +0 -4
- package/dist/adminPortal/makeAdminPortalComponentMountFn.d.ts +0 -21
- package/dist/adminPortal/memberManagement/AccessSection.d.ts +0 -6
- package/dist/adminPortal/memberManagement/AdminPortalMemberManagement.d.ts +0 -25
- package/dist/adminPortal/memberManagement/AuthManagementSection.d.ts +0 -5
- package/dist/adminPortal/memberManagement/DangerZoneSection.d.ts +0 -5
- package/dist/adminPortal/memberManagement/InviteModal.d.ts +0 -29
- package/dist/adminPortal/memberManagement/MemberDetailsScreen.d.ts +0 -4
- package/dist/adminPortal/memberManagement/MemberDetailsSection.d.ts +0 -5
- package/dist/adminPortal/memberManagement/MemberListScreen.d.ts +0 -19
- package/dist/adminPortal/memberManagement/MemberManagementRouter.d.ts +0 -29
- package/dist/adminPortal/memberManagement/MemberStatus.d.ts +0 -3
- package/dist/adminPortal/memberManagement/getMemberStatusDisplayName.d.ts +0 -1
- package/dist/adminPortal/memberManagement/mountAdminPortalMemberManagement.d.ts +0 -15
- package/dist/adminPortal/memberManagement/useMemberActivation.d.ts +0 -16
- package/dist/adminPortal/scim/AdminPortalSCIM.d.ts +0 -29
- package/dist/adminPortal/scim/SCIMConnectionDangerZoneSection.d.ts +0 -5
- package/dist/adminPortal/scim/SCIMConnectionDetailsScreen.d.ts +0 -5
- package/dist/adminPortal/scim/SCIMConnectionDetailsSection.d.ts +0 -5
- package/dist/adminPortal/scim/SCIMConnectionRoleAssignmentsSection.d.ts +0 -7
- package/dist/adminPortal/scim/SCIMConnectionTokenRotationSection.d.ts +0 -5
- package/dist/adminPortal/scim/SCIMNewConnectionConfigureScreen.d.ts +0 -5
- package/dist/adminPortal/scim/SCIMNewConnectionScreen.d.ts +0 -2
- package/dist/adminPortal/scim/SCIMRouter.d.ts +0 -45
- package/dist/adminPortal/scim/SCIMScreen.d.ts +0 -2
- package/dist/adminPortal/scim/mountAdminPortalSCIM.d.ts +0 -15
- package/dist/adminPortal/scim/scimInfo.d.ts +0 -175
- package/dist/adminPortal/settings/AdminPortalOrgRouter.d.ts +0 -19
- package/dist/adminPortal/settings/AdminPortalOrgSettings.d.ts +0 -35
- package/dist/adminPortal/settings/OrgSettingsAuthenticationSettingsSection.d.ts +0 -5
- package/dist/adminPortal/settings/OrgSettingsDetailsSection.d.ts +0 -22
- package/dist/adminPortal/settings/OrgSettingsRoleAssignmentsSection.d.ts +0 -5
- package/dist/adminPortal/settings/OrgSettingsScreen.d.ts +0 -2
- package/dist/adminPortal/settings/OrgSettingsUserOnboardingSection.d.ts +0 -5
- package/dist/adminPortal/settings/mountAdminPortalOrgSettings.d.ts +0 -16
- package/dist/adminPortal/shared/components/Accordion.d.ts +0 -11
- package/dist/adminPortal/shared/components/Button.d.ts +0 -22
- package/dist/adminPortal/shared/components/Checkbox.d.ts +0 -14
- package/dist/adminPortal/shared/components/Code.d.ts +0 -4
- package/dist/adminPortal/shared/components/ContentSpacing.d.ts +0 -6
- package/dist/adminPortal/shared/components/CopyableText.d.ts +0 -16
- package/dist/adminPortal/shared/components/EmbeddedTable.d.ts +0 -16
- package/dist/adminPortal/shared/components/FlexBox.d.ts +0 -11
- package/dist/adminPortal/shared/components/InfoIcon.d.ts +0 -7
- package/dist/adminPortal/shared/components/Input.d.ts +0 -28
- package/dist/adminPortal/shared/components/Label.d.ts +0 -11
- package/dist/adminPortal/shared/components/ListEditor.d.ts +0 -29
- package/dist/adminPortal/shared/components/MenuItem.d.ts +0 -29
- package/dist/adminPortal/shared/components/Modal.d.ts +0 -20
- package/dist/adminPortal/shared/components/PaginatedTable.d.ts +0 -77
- package/dist/adminPortal/shared/components/Radio.d.ts +0 -22
- package/dist/adminPortal/shared/components/RadioGroup.d.ts +0 -13
- package/dist/adminPortal/shared/components/RowItem.d.ts +0 -4
- package/dist/adminPortal/shared/components/SearchBar.d.ts +0 -10
- package/dist/adminPortal/shared/components/Select.d.ts +0 -35
- package/dist/adminPortal/shared/components/Table.d.ts +0 -30
- package/dist/adminPortal/shared/components/TableActions.d.ts +0 -15
- package/dist/adminPortal/shared/components/Tag.d.ts +0 -2
- package/dist/adminPortal/shared/components/Toast.d.ts +0 -24
- package/dist/adminPortal/shared/components/Tooltip.d.ts +0 -11
- package/dist/adminPortal/shared/components/Typography.d.ts +0 -13
- package/dist/adminPortal/shared/components/componentInjection.d.ts +0 -51
- package/dist/adminPortal/shared/components/constants.d.ts +0 -3
- package/dist/adminPortal/shared/components/types.d.ts +0 -15
- package/dist/adminPortal/shared/utils/clickToCopyUtils.d.ts +0 -11
- package/dist/adminPortal/shared/utils/keys.d.ts +0 -74
- package/dist/adminPortal/shared/utils/mergeSx.d.ts +0 -2
- package/dist/adminPortal/shared/utils/noop.d.ts +0 -1
- package/dist/adminPortal/shared/utils/tableUtils.d.ts +0 -5
- package/dist/adminPortal/shared/utils/uniqueIds.d.ts +0 -2
- package/dist/adminPortal/shared/utils/useToggleState.d.ts +0 -7
- package/dist/adminPortal/sso/AdminPortalSSO.d.ts +0 -29
- package/dist/adminPortal/sso/AppDetails.d.ts +0 -8
- package/dist/adminPortal/sso/AttributeMappingTable.d.ts +0 -22
- package/dist/adminPortal/sso/CreateApplication.d.ts +0 -5
- package/dist/adminPortal/sso/DetailedAttributeMappingTable.d.ts +0 -8
- package/dist/adminPortal/sso/DetailsSection.d.ts +0 -6
- package/dist/adminPortal/sso/IdpInfo.d.ts +0 -162
- package/dist/adminPortal/sso/IdpSelect.d.ts +0 -133
- package/dist/adminPortal/sso/OrganizationUpdatesSection.d.ts +0 -7
- package/dist/adminPortal/sso/RoleAssignmentsSection.d.ts +0 -6
- package/dist/adminPortal/sso/SSOConnectionDetailsScreen.d.ts +0 -4
- package/dist/adminPortal/sso/SSOConnectionsScreen.d.ts +0 -2
- package/dist/adminPortal/sso/SSONewConnectionConfigureScreen.d.ts +0 -5
- package/dist/adminPortal/sso/SSONewConnectionScreen.d.ts +0 -2
- package/dist/adminPortal/sso/SSORouter.d.ts +0 -45
- package/dist/adminPortal/sso/TaggedConnection.d.ts +0 -11
- package/dist/adminPortal/sso/mountAdminPortalSSO.d.ts +0 -15
- package/dist/adminPortal/utils/AdminPortalUIConfigRoleDisplayProvider.d.ts +0 -29
- package/dist/adminPortal/utils/Connection.d.ts +0 -9
- package/dist/adminPortal/utils/ConnectionType.d.ts +0 -1
- package/dist/adminPortal/utils/FeatureStateComponent.d.ts +0 -10
- package/dist/adminPortal/utils/FormSectionBody.d.ts +0 -6
- package/dist/adminPortal/utils/arraysHaveSameContents.d.ts +0 -20
- package/dist/adminPortal/utils/clickToCopyUtils.d.ts +0 -5
- package/dist/adminPortal/utils/collator.d.ts +0 -1
- package/dist/adminPortal/utils/decorateCurrentMemberName.d.ts +0 -1
- package/dist/adminPortal/utils/fetchMembers.d.ts +0 -15
- package/dist/adminPortal/utils/getDisplay.d.ts +0 -4
- package/dist/adminPortal/utils/getFeatureState.d.ts +0 -9
- package/dist/adminPortal/utils/getRoleDefaultDescription.d.ts +0 -2
- package/dist/adminPortal/utils/getRoleDefaultDisplayName.d.ts +0 -2
- package/dist/adminPortal/utils/getSsoRoleAssignments.d.ts +0 -8
- package/dist/adminPortal/utils/isEmptyObject.d.ts +0 -1
- package/dist/adminPortal/utils/isOauthMethod.d.ts +0 -2
- package/dist/adminPortal/utils/makeUseStorage.d.ts +0 -1
- package/dist/adminPortal/utils/memberGetKey.d.ts +0 -1
- package/dist/adminPortal/utils/noValue.d.ts +0 -1
- package/dist/adminPortal/utils/oAuthProviders.d.ts +0 -3
- package/dist/adminPortal/utils/organizationGetKey.d.ts +0 -1
- package/dist/adminPortal/utils/prependAsterisks.d.ts +0 -1
- package/dist/adminPortal/utils/roles.d.ts +0 -2
- package/dist/adminPortal/utils/theme.d.ts +0 -5
- package/dist/adminPortal/utils/useAdminPortalConfig.d.ts +0 -17
- package/dist/adminPortal/utils/useAllowedAuthMethods.d.ts +0 -4
- package/dist/adminPortal/utils/useAllowedMfaMethods.d.ts +0 -2
- package/dist/adminPortal/utils/useApiNetworkClient.d.ts +0 -1
- package/dist/adminPortal/utils/useB2BInternals.d.ts +0 -1
- package/dist/adminPortal/utils/useConnections.d.ts +0 -11
- package/dist/adminPortal/utils/useDebouncedState.d.ts +0 -1
- package/dist/adminPortal/utils/useDisplayPagination.d.ts +0 -19
- package/dist/adminPortal/utils/useFormState.d.ts +0 -14
- package/dist/adminPortal/utils/useGetRoleDescription.d.ts +0 -2
- package/dist/adminPortal/utils/useGetRoleDisplayName.d.ts +0 -2
- package/dist/adminPortal/utils/useGetRoleSortOrder.d.ts +0 -2
- package/dist/adminPortal/utils/useItemsPerPage.d.ts +0 -7
- package/dist/adminPortal/utils/useLocalStorage.d.ts +0 -1
- package/dist/adminPortal/utils/useMutateMember.d.ts +0 -4
- package/dist/adminPortal/utils/useMutateOrganization.d.ts +0 -4
- package/dist/adminPortal/utils/useMutateScimConnection.d.ts +0 -4
- package/dist/adminPortal/utils/useMutateSsoConnection.d.ts +0 -16
- package/dist/adminPortal/utils/useMutateWithToast.d.ts +0 -7
- package/dist/adminPortal/utils/useNavigateAwayWarning.d.ts +0 -1
- package/dist/adminPortal/utils/useOrgInfo.d.ts +0 -1
- package/dist/adminPortal/utils/usePagination.d.ts +0 -8
- package/dist/adminPortal/utils/usePersistentFilter.d.ts +0 -6
- package/dist/adminPortal/utils/useRbac.d.ts +0 -56
- package/dist/adminPortal/utils/useRevalidateConnectionList.d.ts +0 -1
- package/dist/adminPortal/utils/useRoleAutocomplete.d.ts +0 -7
- package/dist/adminPortal/utils/useRoleDisplayInfo.d.ts +0 -7
- package/dist/adminPortal/utils/useRoleSortFn.d.ts +0 -16
- package/dist/adminPortal/utils/useRoles.d.ts +0 -2
- package/dist/adminPortal/utils/useScimConnection.d.ts +0 -4
- package/dist/adminPortal/utils/useScimConnectionGroups.d.ts +0 -6
- package/dist/adminPortal/utils/useSelf.d.ts +0 -5
- package/dist/adminPortal/utils/useSessionStorage.d.ts +0 -1
- package/dist/adminPortal/utils/useSsoConnections.d.ts +0 -4
- package/dist/adminPortal/utils/useStateSliceSetter.d.ts +0 -2
- package/dist/adminPortal/utils/useStytchClient.d.ts +0 -1
- package/dist/adminPortal/utils/useUpdateCachedMember.d.ts +0 -5
- package/dist/assets/CreateIcon.d.ts +0 -6
- package/dist/assets/amazon.d.ts +0 -3
- package/dist/assets/apple.d.ts +0 -3
- package/dist/assets/backArrow.d.ts +0 -5
- package/dist/assets/binance.d.ts +0 -3
- package/dist/assets/bitbucket.d.ts +0 -3
- package/dist/assets/check.d.ts +0 -2
- package/dist/assets/checkmark.d.ts +0 -2
- package/dist/assets/chevron.d.ts +0 -3
- package/dist/assets/coinbase.d.ts +0 -4
- package/dist/assets/confirmation.d.ts +0 -2
- package/dist/assets/copy.d.ts +0 -3
- package/dist/assets/cross.d.ts +0 -2
- package/dist/assets/discord.d.ts +0 -3
- package/dist/assets/errorIcon.d.ts +0 -3
- package/dist/assets/facebook.d.ts +0 -3
- package/dist/assets/figma.d.ts +0 -3
- package/dist/assets/genericWallet.d.ts +0 -4
- package/dist/assets/github.d.ts +0 -3
- package/dist/assets/gitlab.d.ts +0 -3
- package/dist/assets/gmail.d.ts +0 -3
- package/dist/assets/google.d.ts +0 -3
- package/dist/assets/hubspot.d.ts +0 -3
- package/dist/assets/linkedin.d.ts +0 -3
- package/dist/assets/metamask.d.ts +0 -4
- package/dist/assets/microsoft.d.ts +0 -3
- package/dist/assets/okta.d.ts +0 -3
- package/dist/assets/outlook.d.ts +0 -3
- package/dist/assets/passkeyAdded.d.ts +0 -2
- package/dist/assets/passkeys.d.ts +0 -3
- package/dist/assets/passkeysCollage.d.ts +0 -2
- package/dist/assets/passwordIcon.d.ts +0 -5
- package/dist/assets/pencil.d.ts +0 -2
- package/dist/assets/phantom.d.ts +0 -3
- package/dist/assets/salesforce.d.ts +0 -3
- package/dist/assets/slack.d.ts +0 -3
- package/dist/assets/snackbarError.d.ts +0 -2
- package/dist/assets/snackbarSuccess.d.ts +0 -2
- package/dist/assets/snapchat.d.ts +0 -3
- package/dist/assets/sso.d.ts +0 -3
- package/dist/assets/successIcon.d.ts +0 -3
- package/dist/assets/tiktok.d.ts +0 -3
- package/dist/assets/trash.d.ts +0 -2
- package/dist/assets/twitch.d.ts +0 -3
- package/dist/assets/twitter.d.ts +0 -3
- package/dist/assets/vessel.d.ts +0 -4
- package/dist/assets/warningIcon.d.ts +0 -3
- package/dist/assets/yahoo.d.ts +0 -3
- package/dist/assets/yahooLogo.d.ts +0 -3
- package/dist/b2b/B2BIDPClient.d.ts +0 -47
- package/dist/b2b/HeadlessB2BOAuthClient.d.ts +0 -99
- package/dist/b2b/StytchB2BHeadlessClient.d.ts +0 -51
- package/dist/b2b/StytchB2BUIClient.d.ts +0 -63
- package/dist/b2b/oneTap/B2BOneTapProvider.d.ts +0 -39
- package/dist/b2b/ssoDiscovery.d.ts +0 -6
- package/dist/getPersistentStorageKey.d.ts +0 -1
- package/dist/oneTap/OneTapClient.d.ts +0 -22
- package/dist/oneTap/OneTapProvider.d.ts +0 -36
- package/dist/oneTap/navigatorSupportsFedCM.d.ts +0 -1
- package/dist/oneTap/positionModes.d.ts +0 -6
- package/dist/types.d.ts +0 -28
- package/dist/ui/CreateWebComponent.d.ts +0 -20
- package/dist/ui/b2b/App.d.ts +0 -8
- package/dist/ui/b2b/ConsentManifestGeneratorProvider.d.ts +0 -9
- package/dist/ui/b2b/Container.d.ts +0 -3
- package/dist/ui/b2b/GlobalContextProvider.d.ts +0 -28
- package/dist/ui/b2b/MfaState.d.ts +0 -50
- package/dist/ui/b2b/clearStytchSearchParams.d.ts +0 -2
- package/dist/ui/b2b/generateProductComponentsOrdering.d.ts +0 -14
- package/dist/ui/b2b/getAuthMethodsForMember.d.ts +0 -2
- package/dist/ui/b2b/getEnabledMethods.d.ts +0 -5
- package/dist/ui/b2b/getOtpCodeExpiration.d.ts +0 -1
- package/dist/ui/b2b/hooks/useEffectiveAuthConfig.d.ts +0 -10
- package/dist/ui/b2b/hooks/useEmailOtpDiscoverySend.d.ts +0 -5
- package/dist/ui/b2b/hooks/useEmailOtpLoginOrSignup.d.ts +0 -6
- package/dist/ui/b2b/hooks/useEmlDiscoverySend.d.ts +0 -5
- package/dist/ui/b2b/hooks/useEmlLoginOrSignup.d.ts +0 -6
- package/dist/ui/b2b/hooks/useIsOnlyFloatingOneTap.d.ts +0 -1
- package/dist/ui/b2b/hooks/useSsoDiscoveryConnection.d.ts +0 -3
- package/dist/ui/b2b/hooks/useStytchMember.d.ts +0 -2
- package/dist/ui/b2b/mfa.d.ts +0 -70
- package/dist/ui/b2b/reducer.d.ts +0 -38
- package/dist/ui/b2b/screens/Confirmation.d.ts +0 -2
- package/dist/ui/b2b/screens/Discovery.d.ts +0 -2
- package/dist/ui/b2b/screens/EmailConfirmation.d.ts +0 -2
- package/dist/ui/b2b/screens/EmailForm.d.ts +0 -3
- package/dist/ui/b2b/screens/EmailMethodSelectionScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/EmailOTPEntryScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/IDPConsent.d.ts +0 -2
- package/dist/ui/b2b/screens/MFAEnrollmentSelectionScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/Main.d.ts +0 -2
- package/dist/ui/b2b/screens/OAuthButtons.d.ts +0 -15
- package/dist/ui/b2b/screens/PasswordAuthenticate.d.ts +0 -7
- package/dist/ui/b2b/screens/PasswordEmailForm.d.ts +0 -2
- package/dist/ui/b2b/screens/PasswordForgotForm.d.ts +0 -2
- package/dist/ui/b2b/screens/PasswordResetConfirmation.d.ts +0 -2
- package/dist/ui/b2b/screens/PasswordResetForm.d.ts +0 -2
- package/dist/ui/b2b/screens/PasswordSetNew.d.ts +0 -2
- package/dist/ui/b2b/screens/PasswordUseButton.d.ts +0 -2
- package/dist/ui/b2b/screens/RecoveryCodeEntryScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/RecoveryCodeSaveScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/SMSOTPEnrollScreen.d.ts +0 -3
- package/dist/ui/b2b/screens/SMSOTPEntryScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/SSOButtons.d.ts +0 -4
- package/dist/ui/b2b/screens/SSODiscoveryEmail.d.ts +0 -2
- package/dist/ui/b2b/screens/SSODiscoveryFallback.d.ts +0 -2
- package/dist/ui/b2b/screens/SSODiscoveryMenu.d.ts +0 -2
- package/dist/ui/b2b/screens/TOTPEnrollManualScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/TOTPEnrollQRScreen.d.ts +0 -2
- package/dist/ui/b2b/screens/TOTPEntryScreen.d.ts +0 -2
- package/dist/ui/b2b/types/AppScreens.d.ts +0 -27
- package/dist/ui/b2b/types/AppState.d.ts +0 -47
- package/dist/ui/b2b/types/ErrorType.d.ts +0 -7
- package/dist/ui/b2b/utils.d.ts +0 -64
- package/dist/ui/b2c/App.d.ts +0 -14
- package/dist/ui/b2c/Container.d.ts +0 -3
- package/dist/ui/b2c/GlobalContextProvider.d.ts +0 -84
- package/dist/ui/b2c/reducer.d.ts +0 -23
- package/dist/ui/b2c/screens/Confirmation.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/ConnectWallet.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/Error.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/OtherWallets.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/PasskeyConfirmation.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/SetupNewWallet.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/SignMessage.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/Success.d.ts +0 -2
- package/dist/ui/b2c/screens/Crypto/WalletButtons.d.ts +0 -4
- package/dist/ui/b2c/screens/IdentityProvider/IDPConsent.d.ts +0 -2
- package/dist/ui/b2c/screens/Main/LoginForm/MagicLinkForm.d.ts +0 -2
- package/dist/ui/b2c/screens/Main/LoginForm/OTPForm.d.ts +0 -16
- package/dist/ui/b2c/screens/Main/LoginForm/PasskeyButton.d.ts +0 -2
- package/dist/ui/b2c/screens/Main/LoginForm/PasswordForm.d.ts +0 -2
- package/dist/ui/b2c/screens/Main/LoginForm/index.d.ts +0 -2
- package/dist/ui/b2c/screens/Main/OAuthButtons.d.ts +0 -2
- package/dist/ui/b2c/screens/Main/index.d.ts +0 -2
- package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationStart.d.ts +0 -2
- package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationSuccess.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/MagicLinkOption.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/PasswordAuthenticate.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/PasswordBreached.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/PasswordDedupe.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/PasswordForgot.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/PasswordNewUser.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/PasswordSecondaryMethod.d.ts +0 -4
- package/dist/ui/b2c/screens/Password/PasswordSetNew.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/PasswordlessCreate.d.ts +0 -2
- package/dist/ui/b2c/screens/Password/ResetPassword.d.ts +0 -2
- package/dist/ui/b2c/screens/Secondary/EmailConfirmation.d.ts +0 -6
- package/dist/ui/b2c/screens/Secondary/OTPAuthenticate.d.ts +0 -4
- package/dist/ui/b2c/screens/Secondary/OTPConfirmation.d.ts +0 -2
- package/dist/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.d.ts +0 -2
- package/dist/ui/b2c/utils.d.ts +0 -5
- package/dist/ui/components/AlertBox.d.ts +0 -8
- package/dist/ui/components/AnimatedContainer.d.ts +0 -5
- package/dist/ui/components/B2BOneTap.d.ts +0 -5
- package/dist/ui/components/Button.d.ts +0 -5
- package/dist/ui/components/CircularProgress.d.ts +0 -12
- package/dist/ui/components/Confirmation.d.ts +0 -7
- package/dist/ui/components/CountrySelector.d.ts +0 -7
- package/dist/ui/components/Divider.d.ts +0 -2
- package/dist/ui/components/EditableRow.d.ts +0 -15
- package/dist/ui/components/EmailConfirmation.d.ts +0 -11
- package/dist/ui/components/EmailInput.d.ts +0 -7
- package/dist/ui/components/ErrorScreen.d.ts +0 -5
- package/dist/ui/components/ErrorText.d.ts +0 -4
- package/dist/ui/components/Flex.d.ts +0 -40
- package/dist/ui/components/IDPConsent.d.ts +0 -39
- package/dist/ui/components/IDPConsentManifest.d.ts +0 -10
- package/dist/ui/components/IDPLogout.d.ts +0 -32
- package/dist/ui/components/InlineButton.d.ts +0 -7
- package/dist/ui/components/Input.d.ts +0 -1
- package/dist/ui/components/InsetContainer.d.ts +0 -1
- package/dist/ui/components/Loading.d.ts +0 -3
- package/dist/ui/components/LoadingBar.d.ts +0 -4
- package/dist/ui/components/LoadingButton.d.ts +0 -8
- package/dist/ui/components/MainContainer.d.ts +0 -8
- package/dist/ui/components/MenuButton.d.ts +0 -6
- package/dist/ui/components/OAuthB2BButton.d.ts +0 -14
- package/dist/ui/components/OAuthButton.d.ts +0 -14
- package/dist/ui/components/OTPControl.d.ts +0 -8
- package/dist/ui/components/OTPEntry.d.ts +0 -11
- package/dist/ui/components/OTPInput.d.ts +0 -6
- package/dist/ui/components/OneTap.d.ts +0 -20
- package/dist/ui/components/OneTapErrorMessages.d.ts +0 -7
- package/dist/ui/components/PasswordError.d.ts +0 -17
- package/dist/ui/components/PasswordInput.d.ts +0 -6
- package/dist/ui/components/PasswordStrengthCheck.d.ts +0 -4
- package/dist/ui/components/PhoneInput.d.ts +0 -10
- package/dist/ui/components/SentOTPEntry.d.ts +0 -10
- package/dist/ui/components/Snackbar.d.ts +0 -2
- package/dist/ui/components/SubmitButton.d.ts +0 -8
- package/dist/ui/components/TOTPEntry.d.ts +0 -8
- package/dist/ui/components/Text.d.ts +0 -9
- package/dist/ui/components/VerifyEmailConfirmation.d.ts +0 -10
- package/dist/ui/components/WalletButton.d.ts +0 -8
- package/dist/ui/hooks/useIsMounted.d.ts +0 -3
- package/dist/ui/hooks/useIsOnlyFloatingOneTap.d.ts +0 -1
- package/dist/ui/hooks/useMountEffect.d.ts +0 -6
- package/dist/ui/hooks/usePromptPasskey.d.ts +0 -7
- package/dist/ui/hooks/useStytchUser.d.ts +0 -2
- package/dist/ui/theme.d.ts +0 -124
- package/dist/utils/KnownIdp.d.ts +0 -3
- package/dist/utils/Optional.d.ts +0 -3
- package/dist/utils/StyledComponentProps.d.ts +0 -2
- package/dist/utils/assertUnreachable.d.ts +0 -1
- package/dist/utils/crypto.d.ts +0 -60
- package/dist/utils/deepEqual.d.ts +0 -1
- package/dist/utils/extractErrorMessage.d.ts +0 -1
- package/dist/utils/extractErrorType.d.ts +0 -1
- package/dist/utils/handleParsePhoneNumber.d.ts +0 -13
- package/dist/utils/idpHelpers.d.ts +0 -50
- package/dist/utils/index.d.ts +0 -28
- package/dist/utils/internal.d.ts +0 -37
- package/dist/utils/isTruthy.d.ts +0 -3
- package/dist/utils/oauthProviderType.d.ts +0 -7
- package/dist/utils/passkeys.d.ts +0 -8
- package/dist/utils/passwordManagerDisableAutofillProps.d.ts +0 -3
- package/dist/utils/uniqueValuesSplitOnSpaces.d.ts +0 -3
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
function _defineProperty(
|
|
2
|
-
function _slicedToArray2(
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _slicedToArray2(r, e) { return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2(); }
|
|
3
3
|
function _nonIterableRest2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
4
|
function _iterableToArrayLimit2(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
5
|
-
function _arrayWithHoles2(
|
|
6
|
-
function _toConsumableArray2(
|
|
5
|
+
function _arrayWithHoles2(r) { if (Array.isArray(r)) return r; }
|
|
6
|
+
function _toConsumableArray2(r) { return _arrayWithoutHoles2(r) || _iterableToArray2(r) || _unsupportedIterableToArray2(r) || _nonIterableSpread2(); }
|
|
7
7
|
function _nonIterableSpread2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8
|
-
function _unsupportedIterableToArray2(
|
|
9
|
-
function _iterableToArray2(
|
|
10
|
-
function _arrayWithoutHoles2(
|
|
11
|
-
function _arrayLikeToArray2(
|
|
8
|
+
function _unsupportedIterableToArray2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r, a) : void 0; } }
|
|
9
|
+
function _iterableToArray2(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
10
|
+
function _arrayWithoutHoles2(r) { if (Array.isArray(r)) return _arrayLikeToArray2(r); }
|
|
11
|
+
function _arrayLikeToArray2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12
12
|
function _callSuper2(t, o, e) { return o = _getPrototypeOf2(o), _possibleConstructorReturn2(t, _isNativeReflectConstruct2() ? Reflect.construct(o, e || [], _getPrototypeOf2(t).constructor) : o.apply(t, e)); }
|
|
13
|
-
function _possibleConstructorReturn2(
|
|
13
|
+
function _possibleConstructorReturn2(t, e) { if (e && ("object" == _typeof2(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized2(t); }
|
|
14
|
+
function _assertThisInitialized2(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
14
15
|
function _isNativeReflectConstruct2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct2 = function _isNativeReflectConstruct2() { return !!t; })(); }
|
|
15
|
-
function _getPrototypeOf2(
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
function _regeneratorRuntime2() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime2 = function _regeneratorRuntime2() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof2(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof2(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
16
|
+
function _getPrototypeOf2(t) { return _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf2(t); }
|
|
17
|
+
function _inherits2(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf2(t, e); }
|
|
18
|
+
function _setPrototypeOf2(t, e) { return _setPrototypeOf2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf2(t, e); }
|
|
19
|
+
function _regeneratorRuntime2() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime2 = function _regeneratorRuntime2() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof2(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof2(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
20
20
|
function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof2(o); }
|
|
21
|
-
function _classCallCheck2(
|
|
22
|
-
function __defineProperties(
|
|
23
|
-
function _createClass2(
|
|
24
|
-
function _toPropertyKey2(t) { var i = _toPrimitive2(t, "string"); return "symbol" == _typeof2(i) ? i :
|
|
21
|
+
function _classCallCheck2(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
22
|
+
function __defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey2(o.key), o); } }
|
|
23
|
+
function _createClass2(e, r, t) { return r && __defineProperties(e.prototype, r), t && __defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
24
|
+
function _toPropertyKey2(t) { var i = _toPrimitive2(t, "string"); return "symbol" == _typeof2(i) ? i : i + ""; }
|
|
25
25
|
function _toPrimitive2(t, r) { if ("object" != _typeof2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
26
|
function _typeof$1(o) {
|
|
27
27
|
"@babel/helpers - typeof";
|
|
@@ -32,75 +32,59 @@ function _typeof$1(o) {
|
|
|
32
32
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
33
33
|
}, _typeof$1(o);
|
|
34
34
|
}
|
|
35
|
-
function _createClass$1(
|
|
36
|
-
Object.defineProperty(
|
|
37
|
-
writable:
|
|
38
|
-
});
|
|
39
|
-
return Constructor;
|
|
35
|
+
function _createClass$1(e, r, t) {
|
|
36
|
+
return Object.defineProperty(e, "prototype", {
|
|
37
|
+
writable: !1
|
|
38
|
+
}), e;
|
|
40
39
|
}
|
|
41
|
-
function _classCallCheck$1(
|
|
42
|
-
if (!(
|
|
43
|
-
throw new TypeError("Cannot call a class as a function");
|
|
44
|
-
}
|
|
40
|
+
function _classCallCheck$1(a, n) {
|
|
41
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
45
42
|
}
|
|
46
43
|
function _callSuper$1(t, o, e) {
|
|
47
44
|
return o = _getPrototypeOf$1(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e));
|
|
48
45
|
}
|
|
49
|
-
function _possibleConstructorReturn$1(
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
54
|
-
}
|
|
55
|
-
return _assertThisInitialized$1(self);
|
|
46
|
+
function _possibleConstructorReturn$1(t, e) {
|
|
47
|
+
if (e && ("object" == _typeof$1(e) || "function" == typeof e)) return e;
|
|
48
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
49
|
+
return _assertThisInitialized$1(t);
|
|
56
50
|
}
|
|
57
|
-
function _assertThisInitialized$1(
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
return self;
|
|
51
|
+
function _assertThisInitialized$1(e) {
|
|
52
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
53
|
+
return e;
|
|
62
54
|
}
|
|
63
|
-
function _inherits$1(
|
|
64
|
-
if (typeof
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
55
|
+
function _inherits$1(t, e) {
|
|
56
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
57
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
68
58
|
constructor: {
|
|
69
|
-
value:
|
|
70
|
-
writable:
|
|
71
|
-
configurable:
|
|
59
|
+
value: t,
|
|
60
|
+
writable: !0,
|
|
61
|
+
configurable: !0
|
|
72
62
|
}
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
});
|
|
77
|
-
if (superClass) _setPrototypeOf$1(subClass, superClass);
|
|
63
|
+
}), Object.defineProperty(t, "prototype", {
|
|
64
|
+
writable: !1
|
|
65
|
+
}), e && _setPrototypeOf$1(t, e);
|
|
78
66
|
}
|
|
79
|
-
function _wrapNativeSuper$1(
|
|
80
|
-
var
|
|
81
|
-
_wrapNativeSuper$1 = function _wrapNativeSuper(
|
|
82
|
-
if (
|
|
83
|
-
if (typeof
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
88
|
-
_cache.set(Class, Wrapper);
|
|
67
|
+
function _wrapNativeSuper$1(t) {
|
|
68
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
69
|
+
return _wrapNativeSuper$1 = function _wrapNativeSuper(t) {
|
|
70
|
+
if (null === t || !_isNativeFunction$1(t)) return t;
|
|
71
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
72
|
+
if (void 0 !== r) {
|
|
73
|
+
if (r.has(t)) return r.get(t);
|
|
74
|
+
r.set(t, Wrapper);
|
|
89
75
|
}
|
|
90
76
|
function Wrapper() {
|
|
91
|
-
return _construct$1(
|
|
77
|
+
return _construct$1(t, arguments, _getPrototypeOf$1(this).constructor);
|
|
92
78
|
}
|
|
93
|
-
Wrapper.prototype = Object.create(
|
|
79
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
94
80
|
constructor: {
|
|
95
81
|
value: Wrapper,
|
|
96
|
-
enumerable:
|
|
97
|
-
writable:
|
|
98
|
-
configurable:
|
|
82
|
+
enumerable: !1,
|
|
83
|
+
writable: !0,
|
|
84
|
+
configurable: !0
|
|
99
85
|
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
return _wrapNativeSuper$1(Class);
|
|
86
|
+
}), _setPrototypeOf$1(Wrapper, t);
|
|
87
|
+
}, _wrapNativeSuper$1(t);
|
|
104
88
|
}
|
|
105
89
|
function _construct$1(t, e, r) {
|
|
106
90
|
if (_isNativeReflectConstruct$1()) return Reflect.construct.apply(null, arguments);
|
|
@@ -117,25 +101,22 @@ function _isNativeReflectConstruct$1() {
|
|
|
117
101
|
return !!t;
|
|
118
102
|
})();
|
|
119
103
|
}
|
|
120
|
-
function _isNativeFunction$1(
|
|
104
|
+
function _isNativeFunction$1(t) {
|
|
121
105
|
try {
|
|
122
|
-
return Function.toString.call(
|
|
123
|
-
} catch (
|
|
124
|
-
return
|
|
106
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
107
|
+
} catch (n) {
|
|
108
|
+
return "function" == typeof t;
|
|
125
109
|
}
|
|
126
110
|
}
|
|
127
|
-
function _setPrototypeOf$1(
|
|
128
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
};
|
|
132
|
-
return _setPrototypeOf$1(o, p);
|
|
111
|
+
function _setPrototypeOf$1(t, e) {
|
|
112
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
113
|
+
return t.__proto__ = e, t;
|
|
114
|
+
}, _setPrototypeOf$1(t, e);
|
|
133
115
|
}
|
|
134
|
-
function _getPrototypeOf$1(
|
|
135
|
-
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
136
|
-
return
|
|
137
|
-
};
|
|
138
|
-
return _getPrototypeOf$1(o);
|
|
116
|
+
function _getPrototypeOf$1(t) {
|
|
117
|
+
return _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
118
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
119
|
+
}, _getPrototypeOf$1(t);
|
|
139
120
|
}
|
|
140
121
|
var Products;
|
|
141
122
|
(function (Products) {
|
|
@@ -248,7 +229,6 @@ var RNUIProducts;
|
|
|
248
229
|
RNUIProducts[RNUIProducts["passwords"] = 3] = "passwords";
|
|
249
230
|
})(RNUIProducts || (RNUIProducts = {}));
|
|
250
231
|
var SDKAPIUnreachableError = /*#__PURE__*/function (_Error) {
|
|
251
|
-
_inherits$1(SDKAPIUnreachableError, _Error);
|
|
252
232
|
function SDKAPIUnreachableError(message, details) {
|
|
253
233
|
var _this;
|
|
254
234
|
_classCallCheck$1(this, SDKAPIUnreachableError);
|
|
@@ -256,13 +236,13 @@ var SDKAPIUnreachableError = /*#__PURE__*/function (_Error) {
|
|
|
256
236
|
_this.message = message + '\n' + details;
|
|
257
237
|
_this.name = 'SDKAPIUnreachableError';
|
|
258
238
|
_this.details = details;
|
|
259
|
-
Object.setPrototypeOf(
|
|
239
|
+
Object.setPrototypeOf(_this, SDKAPIUnreachableError.prototype);
|
|
260
240
|
return _this;
|
|
261
241
|
}
|
|
242
|
+
_inherits$1(SDKAPIUnreachableError, _Error);
|
|
262
243
|
return _createClass$1(SDKAPIUnreachableError);
|
|
263
|
-
}(
|
|
244
|
+
}(/*#__PURE__*/_wrapNativeSuper$1(Error));
|
|
264
245
|
var StytchSDKUsageError = /*#__PURE__*/function (_Error2) {
|
|
265
|
-
_inherits$1(StytchSDKUsageError, _Error2);
|
|
266
246
|
function StytchSDKUsageError(methodName, message) {
|
|
267
247
|
var _this2;
|
|
268
248
|
_classCallCheck$1(this, StytchSDKUsageError);
|
|
@@ -271,10 +251,10 @@ var StytchSDKUsageError = /*#__PURE__*/function (_Error2) {
|
|
|
271
251
|
_this2.message = "Invalid call to ".concat(methodName, "\n") + message;
|
|
272
252
|
return _this2;
|
|
273
253
|
}
|
|
254
|
+
_inherits$1(StytchSDKUsageError, _Error2);
|
|
274
255
|
return _createClass$1(StytchSDKUsageError);
|
|
275
|
-
}(
|
|
256
|
+
}(/*#__PURE__*/_wrapNativeSuper$1(Error));
|
|
276
257
|
var StytchSDKSchemaError = /*#__PURE__*/function (_Error3) {
|
|
277
|
-
_inherits$1(StytchSDKSchemaError, _Error3);
|
|
278
258
|
function StytchSDKSchemaError(schemaError) {
|
|
279
259
|
var _this3;
|
|
280
260
|
_classCallCheck$1(this, StytchSDKSchemaError);
|
|
@@ -287,10 +267,10 @@ var StytchSDKSchemaError = /*#__PURE__*/function (_Error3) {
|
|
|
287
267
|
_this3.message = "[400] Request does not match expected schema\n".concat(messages);
|
|
288
268
|
return _this3;
|
|
289
269
|
}
|
|
270
|
+
_inherits$1(StytchSDKSchemaError, _Error3);
|
|
290
271
|
return _createClass$1(StytchSDKSchemaError);
|
|
291
|
-
}(
|
|
272
|
+
}(/*#__PURE__*/_wrapNativeSuper$1(Error));
|
|
292
273
|
var StytchSDKAPIError = /*#__PURE__*/function (_Error4) {
|
|
293
|
-
_inherits$1(StytchSDKAPIError, _Error4);
|
|
294
274
|
function StytchSDKAPIError(details) {
|
|
295
275
|
var _this4;
|
|
296
276
|
_classCallCheck$1(this, StytchSDKAPIError);
|
|
@@ -309,11 +289,11 @@ var StytchSDKAPIError = /*#__PURE__*/function (_Error4) {
|
|
|
309
289
|
_this4.message = "[".concat(status_code, "] ").concat(error_type, "\n") + "".concat(error_message, "\n") + "See ".concat(error_url, " for more information.\n") + (request_id ? "request_id: ".concat(request_id, "\n") : '');
|
|
310
290
|
return _this4;
|
|
311
291
|
}
|
|
292
|
+
_inherits$1(StytchSDKAPIError, _Error4);
|
|
312
293
|
return _createClass$1(StytchSDKAPIError);
|
|
313
|
-
}(
|
|
294
|
+
}(/*#__PURE__*/_wrapNativeSuper$1(Error));
|
|
314
295
|
var UNRECOVERABLE_ERROR_TYPES = ['unauthorized_credentials', 'user_unauthenticated', 'invalid_secret_authentication', 'session_not_found'];
|
|
315
296
|
var StytchError = /*#__PURE__*/function (_Error5) {
|
|
316
|
-
_inherits$1(StytchError, _Error5);
|
|
317
297
|
function StytchError(name, message) {
|
|
318
298
|
var _this5;
|
|
319
299
|
_classCallCheck$1(this, StytchError);
|
|
@@ -321,21 +301,21 @@ var StytchError = /*#__PURE__*/function (_Error5) {
|
|
|
321
301
|
_this5.name = name;
|
|
322
302
|
return _this5;
|
|
323
303
|
}
|
|
304
|
+
_inherits$1(StytchError, _Error5);
|
|
324
305
|
return _createClass$1(StytchError);
|
|
325
|
-
}(
|
|
306
|
+
}(/*#__PURE__*/_wrapNativeSuper$1(Error));
|
|
326
307
|
var StytchAPIUnreachableError = /*#__PURE__*/function (_StytchError) {
|
|
327
|
-
_inherits$1(StytchAPIUnreachableError, _StytchError);
|
|
328
308
|
function StytchAPIUnreachableError(details) {
|
|
329
309
|
var _this6;
|
|
330
310
|
_classCallCheck$1(this, StytchAPIUnreachableError);
|
|
331
311
|
_this6 = _callSuper$1(this, StytchAPIUnreachableError, ['StytchAPIUnreachableError', details]);
|
|
332
|
-
Object.setPrototypeOf(
|
|
312
|
+
Object.setPrototypeOf(_this6, StytchAPIUnreachableError.prototype);
|
|
333
313
|
return _this6;
|
|
334
314
|
}
|
|
315
|
+
_inherits$1(StytchAPIUnreachableError, _StytchError);
|
|
335
316
|
return _createClass$1(StytchAPIUnreachableError);
|
|
336
317
|
}(StytchError);
|
|
337
318
|
var StytchAPISchemaError = /*#__PURE__*/function (_StytchError2) {
|
|
338
|
-
_inherits$1(StytchAPISchemaError, _StytchError2);
|
|
339
319
|
function StytchAPISchemaError(schemaError) {
|
|
340
320
|
_classCallCheck$1(this, StytchAPISchemaError);
|
|
341
321
|
var _a;
|
|
@@ -344,10 +324,10 @@ var StytchAPISchemaError = /*#__PURE__*/function (_StytchError2) {
|
|
|
344
324
|
}).join('\n');
|
|
345
325
|
return _callSuper$1(this, StytchAPISchemaError, ['StytchAPISchemaError', "Request does not match expected schema\n".concat(messages)]);
|
|
346
326
|
}
|
|
327
|
+
_inherits$1(StytchAPISchemaError, _StytchError2);
|
|
347
328
|
return _createClass$1(StytchAPISchemaError);
|
|
348
329
|
}(StytchError);
|
|
349
330
|
var StytchAPIError = /*#__PURE__*/function (_StytchError3) {
|
|
350
|
-
_inherits$1(StytchAPIError, _StytchError3);
|
|
351
331
|
function StytchAPIError(details) {
|
|
352
332
|
var _this7;
|
|
353
333
|
_classCallCheck$1(this, StytchAPIError);
|
|
@@ -364,10 +344,10 @@ var StytchAPIError = /*#__PURE__*/function (_StytchError3) {
|
|
|
364
344
|
_this7.status_code = status_code;
|
|
365
345
|
return _this7;
|
|
366
346
|
}
|
|
347
|
+
_inherits$1(StytchAPIError, _StytchError3);
|
|
367
348
|
return _createClass$1(StytchAPIError);
|
|
368
349
|
}(StytchError);
|
|
369
350
|
var StytchSDKError = /*#__PURE__*/function (_StytchError4) {
|
|
370
|
-
_inherits$1(StytchSDKError, _StytchError4);
|
|
371
351
|
function StytchSDKError(name, description, options) {
|
|
372
352
|
var _this8;
|
|
373
353
|
_classCallCheck$1(this, StytchSDKError);
|
|
@@ -375,18 +355,18 @@ var StytchSDKError = /*#__PURE__*/function (_StytchError4) {
|
|
|
375
355
|
_this8.options = options;
|
|
376
356
|
return _this8;
|
|
377
357
|
}
|
|
358
|
+
_inherits$1(StytchSDKError, _StytchError4);
|
|
378
359
|
return _createClass$1(StytchSDKError);
|
|
379
360
|
}(StytchError);
|
|
380
361
|
var NoCurrentSessionError = /*#__PURE__*/function (_StytchSDKError) {
|
|
381
|
-
_inherits$1(NoCurrentSessionError, _StytchSDKError);
|
|
382
362
|
function NoCurrentSessionError() {
|
|
383
363
|
_classCallCheck$1(this, NoCurrentSessionError);
|
|
384
364
|
return _callSuper$1(this, NoCurrentSessionError, ['NoCurrentSessionError', 'There is no session currently available. Make sure the user is authenticated with a valid session.']);
|
|
385
365
|
}
|
|
366
|
+
_inherits$1(NoCurrentSessionError, _StytchSDKError);
|
|
386
367
|
return _createClass$1(NoCurrentSessionError);
|
|
387
368
|
}(StytchSDKError);
|
|
388
369
|
var InternalError = /*#__PURE__*/function (_StytchSDKError2) {
|
|
389
|
-
_inherits$1(InternalError, _StytchSDKError2);
|
|
390
370
|
function InternalError(error) {
|
|
391
371
|
var _this9;
|
|
392
372
|
_classCallCheck$1(this, InternalError);
|
|
@@ -394,262 +374,263 @@ var InternalError = /*#__PURE__*/function (_StytchSDKError2) {
|
|
|
394
374
|
_this9.nativeStack = error.nativeStackAndroid || error.nativeStackIOS;
|
|
395
375
|
return _this9;
|
|
396
376
|
}
|
|
377
|
+
_inherits$1(InternalError, _StytchSDKError2);
|
|
397
378
|
return _createClass$1(InternalError);
|
|
398
379
|
}(StytchSDKError);
|
|
399
380
|
var NoBiometricsRegistrationError = /*#__PURE__*/function (_StytchSDKError3) {
|
|
400
|
-
_inherits$1(NoBiometricsRegistrationError, _StytchSDKError3);
|
|
401
381
|
function NoBiometricsRegistrationError() {
|
|
402
382
|
_classCallCheck$1(this, NoBiometricsRegistrationError);
|
|
403
383
|
return _callSuper$1(this, NoBiometricsRegistrationError, ['NoBiometricsRegistrationError', 'There is no biometric registration available. Authenticate with another method and add a new biometric registration first.']);
|
|
404
384
|
}
|
|
385
|
+
_inherits$1(NoBiometricsRegistrationError, _StytchSDKError3);
|
|
405
386
|
return _createClass$1(NoBiometricsRegistrationError);
|
|
406
387
|
}(StytchSDKError);
|
|
407
388
|
var BiometricsUnavailableError = /*#__PURE__*/function (_StytchSDKError4) {
|
|
408
|
-
_inherits$1(BiometricsUnavailableError, _StytchSDKError4);
|
|
409
389
|
function BiometricsUnavailableError() {
|
|
410
390
|
_classCallCheck$1(this, BiometricsUnavailableError);
|
|
411
391
|
return _callSuper$1(this, BiometricsUnavailableError, ['BiometricsUnavailableError', 'Biometrics is not available on the device.']);
|
|
412
392
|
}
|
|
393
|
+
_inherits$1(BiometricsUnavailableError, _StytchSDKError4);
|
|
413
394
|
return _createClass$1(BiometricsUnavailableError);
|
|
414
395
|
}(StytchSDKError);
|
|
415
396
|
var KeyInvalidatedError = /*#__PURE__*/function (_StytchSDKError5) {
|
|
416
|
-
_inherits$1(KeyInvalidatedError, _StytchSDKError5);
|
|
417
397
|
function KeyInvalidatedError() {
|
|
418
398
|
_classCallCheck$1(this, KeyInvalidatedError);
|
|
419
399
|
return _callSuper$1(this, KeyInvalidatedError, ['KeyInvalidatedError', 'The biometrics enrollment on the device has changed.']);
|
|
420
400
|
}
|
|
401
|
+
_inherits$1(KeyInvalidatedError, _StytchSDKError5);
|
|
421
402
|
return _createClass$1(KeyInvalidatedError);
|
|
422
403
|
}(StytchSDKError);
|
|
423
404
|
var KeystoreUnavailableError = /*#__PURE__*/function (_StytchSDKError6) {
|
|
424
|
-
_inherits$1(KeystoreUnavailableError, _StytchSDKError6);
|
|
425
405
|
function KeystoreUnavailableError() {
|
|
426
406
|
_classCallCheck$1(this, KeystoreUnavailableError);
|
|
427
407
|
return _callSuper$1(this, KeystoreUnavailableError, ['KeystoreUnavailableError', 'The Android keystore is unavailable on the device. Consider setting allowFallbackToCleartext to true.']);
|
|
428
408
|
}
|
|
409
|
+
_inherits$1(KeystoreUnavailableError, _StytchSDKError6);
|
|
429
410
|
return _createClass$1(KeystoreUnavailableError);
|
|
430
411
|
}(StytchSDKError);
|
|
431
412
|
var NoBiometricsEnrolledError = /*#__PURE__*/function (_StytchSDKError7) {
|
|
432
|
-
_inherits$1(NoBiometricsEnrolledError, _StytchSDKError7);
|
|
433
413
|
function NoBiometricsEnrolledError() {
|
|
434
414
|
_classCallCheck$1(this, NoBiometricsEnrolledError);
|
|
435
415
|
return _callSuper$1(this, NoBiometricsEnrolledError, ['NoBiometricsEnrolledError', 'There is no biometric factor enrolled on the device. Add a biometric factor in the device settings.']);
|
|
436
416
|
}
|
|
417
|
+
_inherits$1(NoBiometricsEnrolledError, _StytchSDKError7);
|
|
437
418
|
return _createClass$1(NoBiometricsEnrolledError);
|
|
438
419
|
}(StytchSDKError);
|
|
439
420
|
var BiometricsAlreadyEnrolledError = /*#__PURE__*/function (_StytchSDKError8) {
|
|
440
|
-
_inherits$1(BiometricsAlreadyEnrolledError, _StytchSDKError8);
|
|
441
421
|
function BiometricsAlreadyEnrolledError() {
|
|
442
422
|
_classCallCheck$1(this, BiometricsAlreadyEnrolledError);
|
|
443
423
|
return _callSuper$1(this, BiometricsAlreadyEnrolledError, ['BiometricsAlreadyEnrolledError', 'There is already a biometric factor enrolled on this device. Fully authenticate with all factors and remove the existing registration before attempting to register again.']);
|
|
444
424
|
}
|
|
425
|
+
_inherits$1(BiometricsAlreadyEnrolledError, _StytchSDKError8);
|
|
445
426
|
return _createClass$1(BiometricsAlreadyEnrolledError);
|
|
446
427
|
}(StytchSDKError);
|
|
447
428
|
var UserCancellationError = /*#__PURE__*/function (_StytchSDKError9) {
|
|
448
|
-
_inherits$1(UserCancellationError, _StytchSDKError9);
|
|
449
429
|
function UserCancellationError() {
|
|
450
430
|
_classCallCheck$1(this, UserCancellationError);
|
|
451
431
|
return _callSuper$1(this, UserCancellationError, ['UserCancellationError', 'The user canceled the prompt. Ask the user to try again.']);
|
|
452
432
|
}
|
|
433
|
+
_inherits$1(UserCancellationError, _StytchSDKError9);
|
|
453
434
|
return _createClass$1(UserCancellationError);
|
|
454
435
|
}(StytchSDKError);
|
|
455
436
|
var UserLockedOutError = /*#__PURE__*/function (_StytchSDKError10) {
|
|
456
|
-
_inherits$1(UserLockedOutError, _StytchSDKError10);
|
|
457
437
|
function UserLockedOutError() {
|
|
458
438
|
_classCallCheck$1(this, UserLockedOutError);
|
|
459
439
|
return _callSuper$1(this, UserLockedOutError, ['UserLockedOutError', 'The user has been locked out due to too many failed attempts. Ask the user to try again later.']);
|
|
460
440
|
}
|
|
441
|
+
_inherits$1(UserLockedOutError, _StytchSDKError10);
|
|
461
442
|
return _createClass$1(UserLockedOutError);
|
|
462
443
|
}(StytchSDKError);
|
|
463
444
|
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (_StytchSDKError11) {
|
|
464
|
-
_inherits$1(DeviceCredentialsNotAllowedError, _StytchSDKError11);
|
|
465
445
|
function DeviceCredentialsNotAllowedError() {
|
|
466
446
|
_classCallCheck$1(this, DeviceCredentialsNotAllowedError);
|
|
467
447
|
return _callSuper$1(this, DeviceCredentialsNotAllowedError, ['DeviceCredentialsNotAllowedError', 'The device credentials allowment is mismatched. Change the allowDeviceCredentials parameter to be the same in both the register and authenticate methods.']);
|
|
468
448
|
}
|
|
449
|
+
_inherits$1(DeviceCredentialsNotAllowedError, _StytchSDKError11);
|
|
469
450
|
return _createClass$1(DeviceCredentialsNotAllowedError);
|
|
470
451
|
}(StytchSDKError);
|
|
471
452
|
var MissingGoogleClientIDError = /*#__PURE__*/function (_StytchSDKError12) {
|
|
472
|
-
_inherits$1(MissingGoogleClientIDError, _StytchSDKError12);
|
|
473
453
|
function MissingGoogleClientIDError() {
|
|
474
454
|
_classCallCheck$1(this, MissingGoogleClientIDError);
|
|
475
455
|
return _callSuper$1(this, MissingGoogleClientIDError, ['MissingGoogleClientIDError', 'No Google client ID was found in the project.']);
|
|
476
456
|
}
|
|
457
|
+
_inherits$1(MissingGoogleClientIDError, _StytchSDKError12);
|
|
477
458
|
return _createClass$1(MissingGoogleClientIDError);
|
|
478
459
|
}(StytchSDKError);
|
|
479
460
|
var MissingPKCEError = /*#__PURE__*/function (_StytchSDKError13) {
|
|
480
|
-
_inherits$1(MissingPKCEError, _StytchSDKError13);
|
|
481
461
|
function MissingPKCEError() {
|
|
482
462
|
_classCallCheck$1(this, MissingPKCEError);
|
|
483
463
|
return _callSuper$1(this, MissingPKCEError, ['MissingPKCEError', 'Make sure this flow is completed on the same device on which it was started.']);
|
|
484
464
|
}
|
|
465
|
+
_inherits$1(MissingPKCEError, _StytchSDKError13);
|
|
485
466
|
return _createClass$1(MissingPKCEError);
|
|
486
467
|
}(StytchSDKError);
|
|
487
468
|
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (_StytchSDKError14) {
|
|
488
|
-
_inherits$1(MissingAuthorizationCredentialIDTokenError, _StytchSDKError14);
|
|
489
469
|
function MissingAuthorizationCredentialIDTokenError() {
|
|
490
470
|
_classCallCheck$1(this, MissingAuthorizationCredentialIDTokenError);
|
|
491
471
|
return _callSuper$1(this, MissingAuthorizationCredentialIDTokenError, ['MissingAuthorizationCredentialIDTokenError', 'The authorization credential is missing an ID token.']);
|
|
492
472
|
}
|
|
473
|
+
_inherits$1(MissingAuthorizationCredentialIDTokenError, _StytchSDKError14);
|
|
493
474
|
return _createClass$1(MissingAuthorizationCredentialIDTokenError);
|
|
494
475
|
}(StytchSDKError);
|
|
495
476
|
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (_StytchSDKError15) {
|
|
496
|
-
_inherits$1(InvalidAuthorizationCredentialError, _StytchSDKError15);
|
|
497
477
|
function InvalidAuthorizationCredentialError() {
|
|
498
478
|
_classCallCheck$1(this, InvalidAuthorizationCredentialError);
|
|
499
479
|
return _callSuper$1(this, InvalidAuthorizationCredentialError, ['InvalidAuthorizationCredentialError', 'The authorization credential is invalid. Verify that OAuth is set up correctly in the developer console, and call the start flow method.']);
|
|
500
480
|
}
|
|
481
|
+
_inherits$1(InvalidAuthorizationCredentialError, _StytchSDKError15);
|
|
501
482
|
return _createClass$1(InvalidAuthorizationCredentialError);
|
|
502
483
|
}(StytchSDKError);
|
|
503
484
|
var NoCredentialsPresentError = /*#__PURE__*/function (_StytchSDKError16) {
|
|
504
|
-
_inherits$1(NoCredentialsPresentError, _StytchSDKError16);
|
|
505
485
|
function NoCredentialsPresentError() {
|
|
506
486
|
_classCallCheck$1(this, NoCredentialsPresentError);
|
|
507
487
|
return _callSuper$1(this, NoCredentialsPresentError, ['NoCredentialsPresentError', 'The user did not provide credentials for a Google OneTap attempt']);
|
|
508
488
|
}
|
|
489
|
+
_inherits$1(NoCredentialsPresentError, _StytchSDKError16);
|
|
509
490
|
return _createClass$1(NoCredentialsPresentError);
|
|
510
491
|
}(StytchSDKError);
|
|
511
492
|
var MissingPublicKeyError = /*#__PURE__*/function (_StytchSDKError17) {
|
|
512
|
-
_inherits$1(MissingPublicKeyError, _StytchSDKError17);
|
|
513
493
|
function MissingPublicKeyError() {
|
|
514
494
|
_classCallCheck$1(this, MissingPublicKeyError);
|
|
515
495
|
return _callSuper$1(this, MissingPublicKeyError, ['MissingPublicKeyError', 'Failed to retrieve the public key. Add a new biometric registration.']);
|
|
516
496
|
}
|
|
497
|
+
_inherits$1(MissingPublicKeyError, _StytchSDKError17);
|
|
517
498
|
return _createClass$1(MissingPublicKeyError);
|
|
518
499
|
}(StytchSDKError);
|
|
519
500
|
var ChallengeSigningFailedError = /*#__PURE__*/function (_StytchSDKError18) {
|
|
520
|
-
_inherits$1(ChallengeSigningFailedError, _StytchSDKError18);
|
|
521
501
|
function ChallengeSigningFailedError() {
|
|
522
502
|
_classCallCheck$1(this, ChallengeSigningFailedError);
|
|
523
503
|
return _callSuper$1(this, ChallengeSigningFailedError, ['ChallengeSigningFailedError', 'Failed to sign the challenge with the key.']);
|
|
524
504
|
}
|
|
505
|
+
_inherits$1(ChallengeSigningFailedError, _StytchSDKError18);
|
|
525
506
|
return _createClass$1(ChallengeSigningFailedError);
|
|
526
507
|
}(StytchSDKError);
|
|
527
508
|
var SDKNotConfiguredError = /*#__PURE__*/function (_StytchSDKError19) {
|
|
528
|
-
_inherits$1(SDKNotConfiguredError, _StytchSDKError19);
|
|
529
509
|
function SDKNotConfiguredError() {
|
|
530
510
|
_classCallCheck$1(this, SDKNotConfiguredError);
|
|
531
511
|
return _callSuper$1(this, SDKNotConfiguredError, ['SDKNotConfiguredError', 'Stytch client is not confiured. You must call the configure method before using the SDK']);
|
|
532
512
|
}
|
|
513
|
+
_inherits$1(SDKNotConfiguredError, _StytchSDKError19);
|
|
533
514
|
return _createClass$1(SDKNotConfiguredError);
|
|
534
515
|
}(StytchSDKError);
|
|
535
516
|
var FailedCodeChallengeError = /*#__PURE__*/function (_StytchSDKError20) {
|
|
536
|
-
_inherits$1(FailedCodeChallengeError, _StytchSDKError20);
|
|
537
517
|
function FailedCodeChallengeError() {
|
|
538
518
|
_classCallCheck$1(this, FailedCodeChallengeError);
|
|
539
519
|
return _callSuper$1(this, FailedCodeChallengeError, ['FailedCodeChallengeError', 'Failed to create a code challenge']);
|
|
540
520
|
}
|
|
521
|
+
_inherits$1(FailedCodeChallengeError, _StytchSDKError20);
|
|
541
522
|
return _createClass$1(FailedCodeChallengeError);
|
|
542
523
|
}(StytchSDKError);
|
|
543
524
|
var PasskeysUnsupportedError = /*#__PURE__*/function (_StytchSDKError21) {
|
|
544
|
-
_inherits$1(PasskeysUnsupportedError, _StytchSDKError21);
|
|
545
525
|
function PasskeysUnsupportedError() {
|
|
546
526
|
_classCallCheck$1(this, PasskeysUnsupportedError);
|
|
547
527
|
return _callSuper$1(this, PasskeysUnsupportedError, ['PasskeysUnsupportedError', 'Passkeys are not supported on this device']);
|
|
548
528
|
}
|
|
529
|
+
_inherits$1(PasskeysUnsupportedError, _StytchSDKError21);
|
|
549
530
|
return _createClass$1(PasskeysUnsupportedError);
|
|
550
531
|
}(StytchSDKError);
|
|
551
532
|
var FailedToDecryptDataError = /*#__PURE__*/function (_StytchSDKError22) {
|
|
552
|
-
_inherits$1(FailedToDecryptDataError, _StytchSDKError22);
|
|
553
533
|
function FailedToDecryptDataError() {
|
|
554
534
|
_classCallCheck$1(this, FailedToDecryptDataError);
|
|
555
535
|
return _callSuper$1(this, FailedToDecryptDataError, ['FailedToDecryptDataError', 'Failed to decrypt user data']);
|
|
556
536
|
}
|
|
537
|
+
_inherits$1(FailedToDecryptDataError, _StytchSDKError22);
|
|
557
538
|
return _createClass$1(FailedToDecryptDataError);
|
|
558
539
|
}(StytchSDKError);
|
|
559
540
|
var BiometricsFailedError = /*#__PURE__*/function (_StytchSDKError23) {
|
|
560
|
-
_inherits$1(BiometricsFailedError, _StytchSDKError23);
|
|
561
541
|
function BiometricsFailedError() {
|
|
562
542
|
_classCallCheck$1(this, BiometricsFailedError);
|
|
563
543
|
return _callSuper$1(this, BiometricsFailedError, ['BiometricsFailedError', 'Biometric authentication failed']);
|
|
564
544
|
}
|
|
545
|
+
_inherits$1(BiometricsFailedError, _StytchSDKError23);
|
|
565
546
|
return _createClass$1(BiometricsFailedError);
|
|
566
547
|
}(StytchSDKError);
|
|
567
548
|
var InvalidStartUrlError = /*#__PURE__*/function (_StytchSDKError24) {
|
|
568
|
-
_inherits$1(InvalidStartUrlError, _StytchSDKError24);
|
|
569
549
|
function InvalidStartUrlError() {
|
|
570
550
|
_classCallCheck$1(this, InvalidStartUrlError);
|
|
571
551
|
return _callSuper$1(this, InvalidStartUrlError, ['InvalidStartUrlError', 'The start URL was invalid or improperly formatted.']);
|
|
572
552
|
}
|
|
553
|
+
_inherits$1(InvalidStartUrlError, _StytchSDKError24);
|
|
573
554
|
return _createClass$1(InvalidStartUrlError);
|
|
574
555
|
}(StytchSDKError);
|
|
575
556
|
var InvalidRedirectSchemeError = /*#__PURE__*/function (_StytchSDKError25) {
|
|
576
|
-
_inherits$1(InvalidRedirectSchemeError, _StytchSDKError25);
|
|
577
557
|
function InvalidRedirectSchemeError() {
|
|
578
558
|
_classCallCheck$1(this, InvalidRedirectSchemeError);
|
|
579
559
|
return _callSuper$1(this, InvalidRedirectSchemeError, ['InvalidRedirectSchemeError', 'The scheme from the given redirect urls was invalid. Possible reasons include: nil scheme, non-custom scheme (using http or https), or differing schemes for login/signup urls.']);
|
|
580
560
|
}
|
|
561
|
+
_inherits$1(InvalidRedirectSchemeError, _StytchSDKError25);
|
|
581
562
|
return _createClass$1(InvalidRedirectSchemeError);
|
|
582
563
|
}(StytchSDKError);
|
|
583
564
|
var MissingUrlError = /*#__PURE__*/function (_StytchSDKError26) {
|
|
584
|
-
_inherits$1(MissingUrlError, _StytchSDKError26);
|
|
585
565
|
function MissingUrlError() {
|
|
586
566
|
_classCallCheck$1(this, MissingUrlError);
|
|
587
567
|
return _callSuper$1(this, MissingUrlError, ['MissingUrlError', 'The underlying web authentication service failed to return a URL.']);
|
|
588
568
|
}
|
|
569
|
+
_inherits$1(MissingUrlError, _StytchSDKError26);
|
|
589
570
|
return _createClass$1(MissingUrlError);
|
|
590
571
|
}(StytchSDKError);
|
|
591
572
|
var InvalidCredentialTypeError = /*#__PURE__*/function (_StytchSDKError27) {
|
|
592
|
-
_inherits$1(InvalidCredentialTypeError, _StytchSDKError27);
|
|
593
573
|
function InvalidCredentialTypeError() {
|
|
594
574
|
_classCallCheck$1(this, InvalidCredentialTypeError);
|
|
595
575
|
return _callSuper$1(this, InvalidCredentialTypeError, ['InvalidCredentialTypeError', 'The public key credential type was not of the expected type.']);
|
|
596
576
|
}
|
|
577
|
+
_inherits$1(InvalidCredentialTypeError, _StytchSDKError27);
|
|
597
578
|
return _createClass$1(InvalidCredentialTypeError);
|
|
598
579
|
}(StytchSDKError);
|
|
599
580
|
var MissingAttestationObjectError = /*#__PURE__*/function (_StytchSDKError28) {
|
|
600
|
-
_inherits$1(MissingAttestationObjectError, _StytchSDKError28);
|
|
601
581
|
function MissingAttestationObjectError() {
|
|
602
582
|
_classCallCheck$1(this, MissingAttestationObjectError);
|
|
603
583
|
return _callSuper$1(this, MissingAttestationObjectError, ['MissingAttestationObjectError', 'The public key credential is missing the attestation object.']);
|
|
604
584
|
}
|
|
585
|
+
_inherits$1(MissingAttestationObjectError, _StytchSDKError28);
|
|
605
586
|
return _createClass$1(MissingAttestationObjectError);
|
|
606
587
|
}(StytchSDKError);
|
|
607
588
|
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (_StytchSDKError29) {
|
|
608
|
-
_inherits$1(JSONDataNotConvertibleToStringError, _StytchSDKError29);
|
|
609
589
|
function JSONDataNotConvertibleToStringError() {
|
|
610
590
|
_classCallCheck$1(this, JSONDataNotConvertibleToStringError);
|
|
611
591
|
return _callSuper$1(this, JSONDataNotConvertibleToStringError, ['JSONDataNotConvertibleToStringError', 'JSON data unable to be converted to String type.']);
|
|
612
592
|
}
|
|
593
|
+
_inherits$1(JSONDataNotConvertibleToStringError, _StytchSDKError29);
|
|
613
594
|
return _createClass$1(JSONDataNotConvertibleToStringError);
|
|
614
595
|
}(StytchSDKError);
|
|
615
596
|
var RandomNumberGenerationFailed = /*#__PURE__*/function (_StytchSDKError30) {
|
|
616
|
-
_inherits$1(RandomNumberGenerationFailed, _StytchSDKError30);
|
|
617
597
|
function RandomNumberGenerationFailed() {
|
|
618
598
|
_classCallCheck$1(this, RandomNumberGenerationFailed);
|
|
619
599
|
return _callSuper$1(this, RandomNumberGenerationFailed, ['RandomNumberGenerationFailed', 'Random number generation failed']);
|
|
620
600
|
}
|
|
601
|
+
_inherits$1(RandomNumberGenerationFailed, _StytchSDKError30);
|
|
621
602
|
return _createClass$1(RandomNumberGenerationFailed);
|
|
622
603
|
}(StytchSDKError);
|
|
623
604
|
var PasskeysInvalidEncoding = /*#__PURE__*/function (_StytchSDKError31) {
|
|
624
|
-
_inherits$1(PasskeysInvalidEncoding, _StytchSDKError31);
|
|
625
605
|
function PasskeysInvalidEncoding() {
|
|
626
606
|
_classCallCheck$1(this, PasskeysInvalidEncoding);
|
|
627
607
|
return _callSuper$1(this, PasskeysInvalidEncoding, ['PasskeysInvalidEncoding', 'Invalid passkey encoding']);
|
|
628
608
|
}
|
|
609
|
+
_inherits$1(PasskeysInvalidEncoding, _StytchSDKError31);
|
|
629
610
|
return _createClass$1(PasskeysInvalidEncoding);
|
|
630
611
|
}(StytchSDKError);
|
|
631
612
|
var PasskeysMisconfigured = /*#__PURE__*/function (_StytchSDKError32) {
|
|
632
|
-
_inherits$1(PasskeysMisconfigured, _StytchSDKError32);
|
|
633
613
|
function PasskeysMisconfigured() {
|
|
634
614
|
_classCallCheck$1(this, PasskeysMisconfigured);
|
|
635
615
|
return _callSuper$1(this, PasskeysMisconfigured, ['PasskeysMisconfigured', 'Passkeys are misconfigured. Verify that you have added the correct associated domain for your application, and that the signing information is correct.']);
|
|
636
616
|
}
|
|
617
|
+
_inherits$1(PasskeysMisconfigured, _StytchSDKError32);
|
|
637
618
|
return _createClass$1(PasskeysMisconfigured);
|
|
638
619
|
}(StytchSDKError);
|
|
639
620
|
var SignInWithAppleMisconfigured = /*#__PURE__*/function (_StytchSDKError33) {
|
|
640
|
-
_inherits$1(SignInWithAppleMisconfigured, _StytchSDKError33);
|
|
641
621
|
function SignInWithAppleMisconfigured() {
|
|
642
622
|
_classCallCheck$1(this, SignInWithAppleMisconfigured);
|
|
643
623
|
return _callSuper$1(this, SignInWithAppleMisconfigured, ['SignInWithAppleMisconfigured', 'Sign In With Apple is misconfigured. Verify that you have correctly configured Apple OAuth in the Stytch Dashboard and added the Sign In With Apple capability to your project.']);
|
|
644
624
|
}
|
|
625
|
+
_inherits$1(SignInWithAppleMisconfigured, _StytchSDKError33);
|
|
645
626
|
return _createClass$1(SignInWithAppleMisconfigured);
|
|
646
627
|
}(StytchSDKError);
|
|
647
628
|
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (_StytchSDKError34) {
|
|
648
|
-
_inherits$1(IDPOAuthFlowMissingParamError, _StytchSDKError34);
|
|
649
629
|
function IDPOAuthFlowMissingParamError(details) {
|
|
650
630
|
_classCallCheck$1(this, IDPOAuthFlowMissingParamError);
|
|
651
631
|
return _callSuper$1(this, IDPOAuthFlowMissingParamError, ['IDPOAuthFlowMissingParamError', details]);
|
|
652
632
|
}
|
|
633
|
+
_inherits$1(IDPOAuthFlowMissingParamError, _StytchSDKError34);
|
|
653
634
|
return _createClass$1(IDPOAuthFlowMissingParamError);
|
|
654
635
|
}(StytchSDKError);
|
|
655
636
|
function errorToStytchError(error) {
|
|
@@ -761,53 +742,50 @@ var B2BOAuthProviders;
|
|
|
761
742
|
B2BOAuthProviders["Slack"] = "slack";
|
|
762
743
|
B2BOAuthProviders["GitHub"] = "github";
|
|
763
744
|
})(B2BOAuthProviders || (B2BOAuthProviders = {}));
|
|
764
|
-
function _createForOfIteratorHelper(
|
|
765
|
-
var
|
|
766
|
-
if (!
|
|
767
|
-
if (Array.isArray(
|
|
768
|
-
|
|
769
|
-
var
|
|
770
|
-
|
|
745
|
+
function _createForOfIteratorHelper(r, e) {
|
|
746
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
747
|
+
if (!t) {
|
|
748
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
749
|
+
t && (r = t);
|
|
750
|
+
var _n = 0,
|
|
751
|
+
F = function F() {};
|
|
771
752
|
return {
|
|
772
753
|
s: F,
|
|
773
754
|
n: function n() {
|
|
774
|
-
|
|
775
|
-
done:
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
value: o[i++]
|
|
755
|
+
return _n >= r.length ? {
|
|
756
|
+
done: !0
|
|
757
|
+
} : {
|
|
758
|
+
done: !1,
|
|
759
|
+
value: r[_n++]
|
|
780
760
|
};
|
|
781
761
|
},
|
|
782
|
-
e: function e(
|
|
783
|
-
throw
|
|
762
|
+
e: function e(r) {
|
|
763
|
+
throw r;
|
|
784
764
|
},
|
|
785
765
|
f: F
|
|
786
766
|
};
|
|
787
767
|
}
|
|
788
768
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
789
769
|
}
|
|
790
|
-
var
|
|
791
|
-
|
|
792
|
-
|
|
770
|
+
var o,
|
|
771
|
+
a = !0,
|
|
772
|
+
u = !1;
|
|
793
773
|
return {
|
|
794
774
|
s: function s() {
|
|
795
|
-
|
|
775
|
+
t = t.call(r);
|
|
796
776
|
},
|
|
797
777
|
n: function n() {
|
|
798
|
-
var
|
|
799
|
-
|
|
800
|
-
return step;
|
|
778
|
+
var r = t.next();
|
|
779
|
+
return a = r.done, r;
|
|
801
780
|
},
|
|
802
|
-
e: function e(
|
|
803
|
-
|
|
804
|
-
err = _e2;
|
|
781
|
+
e: function e(r) {
|
|
782
|
+
u = !0, o = r;
|
|
805
783
|
},
|
|
806
784
|
f: function f() {
|
|
807
785
|
try {
|
|
808
|
-
|
|
786
|
+
a || null == t["return"] || t["return"]();
|
|
809
787
|
} finally {
|
|
810
|
-
if (
|
|
788
|
+
if (u) throw o;
|
|
811
789
|
}
|
|
812
790
|
}
|
|
813
791
|
};
|
|
@@ -821,36 +799,35 @@ function _typeof(o) {
|
|
|
821
799
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
822
800
|
}, _typeof(o);
|
|
823
801
|
}
|
|
824
|
-
function _toConsumableArray(
|
|
825
|
-
return _arrayWithoutHoles(
|
|
802
|
+
function _toConsumableArray(r) {
|
|
803
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
826
804
|
}
|
|
827
805
|
function _nonIterableSpread() {
|
|
828
806
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
829
807
|
}
|
|
830
|
-
function _iterableToArray(
|
|
831
|
-
if (typeof Symbol
|
|
808
|
+
function _iterableToArray(r) {
|
|
809
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
832
810
|
}
|
|
833
|
-
function _arrayWithoutHoles(
|
|
834
|
-
if (Array.isArray(
|
|
811
|
+
function _arrayWithoutHoles(r) {
|
|
812
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
835
813
|
}
|
|
836
|
-
function _slicedToArray(
|
|
837
|
-
return _arrayWithHoles(
|
|
814
|
+
function _slicedToArray(r, e) {
|
|
815
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
838
816
|
}
|
|
839
817
|
function _nonIterableRest() {
|
|
840
818
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
841
819
|
}
|
|
842
|
-
function _unsupportedIterableToArray(
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
820
|
+
function _unsupportedIterableToArray(r, a) {
|
|
821
|
+
if (r) {
|
|
822
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
823
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
824
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
825
|
+
}
|
|
849
826
|
}
|
|
850
|
-
function _arrayLikeToArray(
|
|
851
|
-
|
|
852
|
-
for (var
|
|
853
|
-
return
|
|
827
|
+
function _arrayLikeToArray(r, a) {
|
|
828
|
+
(null == a || a > r.length) && (a = r.length);
|
|
829
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
830
|
+
return n;
|
|
854
831
|
}
|
|
855
832
|
function _iterableToArrayLimit(r, l) {
|
|
856
833
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -876,8 +853,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
876
853
|
return a;
|
|
877
854
|
}
|
|
878
855
|
}
|
|
879
|
-
function _arrayWithHoles(
|
|
880
|
-
if (Array.isArray(
|
|
856
|
+
function _arrayWithHoles(r) {
|
|
857
|
+
if (Array.isArray(r)) return r;
|
|
881
858
|
}
|
|
882
859
|
function _regeneratorRuntime() {
|
|
883
860
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -988,7 +965,7 @@ function _regeneratorRuntime() {
|
|
|
988
965
|
function makeInvokeMethod(e, r, n) {
|
|
989
966
|
var o = h;
|
|
990
967
|
return function (i, a) {
|
|
991
|
-
if (o === f) throw
|
|
968
|
+
if (o === f) throw Error("Generator is already running");
|
|
992
969
|
if (o === s) {
|
|
993
970
|
if ("throw" === i) throw a;
|
|
994
971
|
return {
|
|
@@ -1130,7 +1107,7 @@ function _regeneratorRuntime() {
|
|
|
1130
1107
|
} else if (c) {
|
|
1131
1108
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
1132
1109
|
} else {
|
|
1133
|
-
if (!u) throw
|
|
1110
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
1134
1111
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
1135
1112
|
}
|
|
1136
1113
|
}
|
|
@@ -1170,7 +1147,7 @@ function _regeneratorRuntime() {
|
|
|
1170
1147
|
return o;
|
|
1171
1148
|
}
|
|
1172
1149
|
}
|
|
1173
|
-
throw
|
|
1150
|
+
throw Error("illegal catch attempt");
|
|
1174
1151
|
},
|
|
1175
1152
|
delegateYield: function delegateYield(e, r, n) {
|
|
1176
1153
|
return this.delegate = {
|
|
@@ -1181,26 +1158,20 @@ function _regeneratorRuntime() {
|
|
|
1181
1158
|
}
|
|
1182
1159
|
}, e;
|
|
1183
1160
|
}
|
|
1184
|
-
function _defineProperties(
|
|
1185
|
-
for (var
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1188
|
-
descriptor.configurable = true;
|
|
1189
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
1190
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
1161
|
+
function _defineProperties(e, r) {
|
|
1162
|
+
for (var t = 0; t < r.length; t++) {
|
|
1163
|
+
var o = r[t];
|
|
1164
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
1191
1165
|
}
|
|
1192
1166
|
}
|
|
1193
|
-
function _createClass(
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
writable: false
|
|
1198
|
-
});
|
|
1199
|
-
return Constructor;
|
|
1167
|
+
function _createClass(e, r, t) {
|
|
1168
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
1169
|
+
writable: !1
|
|
1170
|
+
}), e;
|
|
1200
1171
|
}
|
|
1201
1172
|
function _toPropertyKey(t) {
|
|
1202
1173
|
var i = _toPrimitive(t, "string");
|
|
1203
|
-
return "symbol" == _typeof(i) ? i :
|
|
1174
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
1204
1175
|
}
|
|
1205
1176
|
function _toPrimitive(t, r) {
|
|
1206
1177
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -1212,69 +1183,54 @@ function _toPrimitive(t, r) {
|
|
|
1212
1183
|
}
|
|
1213
1184
|
return String(t);
|
|
1214
1185
|
}
|
|
1215
|
-
function _classCallCheck(
|
|
1216
|
-
if (!(
|
|
1217
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1218
|
-
}
|
|
1186
|
+
function _classCallCheck(a, n) {
|
|
1187
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
1219
1188
|
}
|
|
1220
1189
|
function _callSuper(t, o, e) {
|
|
1221
1190
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
1222
1191
|
}
|
|
1223
|
-
function _possibleConstructorReturn(
|
|
1224
|
-
if (
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1228
|
-
}
|
|
1229
|
-
return _assertThisInitialized(self);
|
|
1192
|
+
function _possibleConstructorReturn(t, e) {
|
|
1193
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
1194
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1195
|
+
return _assertThisInitialized(t);
|
|
1230
1196
|
}
|
|
1231
|
-
function _assertThisInitialized(
|
|
1232
|
-
if (
|
|
1233
|
-
|
|
1234
|
-
}
|
|
1235
|
-
return self;
|
|
1197
|
+
function _assertThisInitialized(e) {
|
|
1198
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1199
|
+
return e;
|
|
1236
1200
|
}
|
|
1237
|
-
function _inherits(
|
|
1238
|
-
if (typeof
|
|
1239
|
-
|
|
1240
|
-
}
|
|
1241
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
1201
|
+
function _inherits(t, e) {
|
|
1202
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
1203
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
1242
1204
|
constructor: {
|
|
1243
|
-
value:
|
|
1244
|
-
writable:
|
|
1245
|
-
configurable:
|
|
1205
|
+
value: t,
|
|
1206
|
+
writable: !0,
|
|
1207
|
+
configurable: !0
|
|
1246
1208
|
}
|
|
1247
|
-
})
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
});
|
|
1251
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
1209
|
+
}), Object.defineProperty(t, "prototype", {
|
|
1210
|
+
writable: !1
|
|
1211
|
+
}), e && _setPrototypeOf(t, e);
|
|
1252
1212
|
}
|
|
1253
|
-
function _wrapNativeSuper(
|
|
1254
|
-
var
|
|
1255
|
-
_wrapNativeSuper = function _wrapNativeSuper(
|
|
1256
|
-
if (
|
|
1257
|
-
if (typeof
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
1262
|
-
_cache.set(Class, Wrapper);
|
|
1213
|
+
function _wrapNativeSuper(t) {
|
|
1214
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
1215
|
+
return _wrapNativeSuper = function _wrapNativeSuper(t) {
|
|
1216
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
1217
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
1218
|
+
if (void 0 !== r) {
|
|
1219
|
+
if (r.has(t)) return r.get(t);
|
|
1220
|
+
r.set(t, Wrapper);
|
|
1263
1221
|
}
|
|
1264
1222
|
function Wrapper() {
|
|
1265
|
-
return _construct(
|
|
1223
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
1266
1224
|
}
|
|
1267
|
-
Wrapper.prototype = Object.create(
|
|
1225
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
1268
1226
|
constructor: {
|
|
1269
1227
|
value: Wrapper,
|
|
1270
|
-
enumerable:
|
|
1271
|
-
writable:
|
|
1272
|
-
configurable:
|
|
1228
|
+
enumerable: !1,
|
|
1229
|
+
writable: !0,
|
|
1230
|
+
configurable: !0
|
|
1273
1231
|
}
|
|
1274
|
-
});
|
|
1275
|
-
|
|
1276
|
-
};
|
|
1277
|
-
return _wrapNativeSuper(Class);
|
|
1232
|
+
}), _setPrototypeOf(Wrapper, t);
|
|
1233
|
+
}, _wrapNativeSuper(t);
|
|
1278
1234
|
}
|
|
1279
1235
|
function _construct(t, e, r) {
|
|
1280
1236
|
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
@@ -1291,25 +1247,22 @@ function _isNativeReflectConstruct() {
|
|
|
1291
1247
|
return !!t;
|
|
1292
1248
|
})();
|
|
1293
1249
|
}
|
|
1294
|
-
function _isNativeFunction(
|
|
1250
|
+
function _isNativeFunction(t) {
|
|
1295
1251
|
try {
|
|
1296
|
-
return Function.toString.call(
|
|
1297
|
-
} catch (
|
|
1298
|
-
return
|
|
1252
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
1253
|
+
} catch (n) {
|
|
1254
|
+
return "function" == typeof t;
|
|
1299
1255
|
}
|
|
1300
1256
|
}
|
|
1301
|
-
function _setPrototypeOf(
|
|
1302
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
};
|
|
1306
|
-
return _setPrototypeOf(o, p);
|
|
1257
|
+
function _setPrototypeOf(t, e) {
|
|
1258
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
1259
|
+
return t.__proto__ = e, t;
|
|
1260
|
+
}, _setPrototypeOf(t, e);
|
|
1307
1261
|
}
|
|
1308
|
-
function _getPrototypeOf(
|
|
1309
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
1310
|
-
return
|
|
1311
|
-
};
|
|
1312
|
-
return _getPrototypeOf(o);
|
|
1262
|
+
function _getPrototypeOf(t) {
|
|
1263
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
1264
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1265
|
+
}, _getPrototypeOf(t);
|
|
1313
1266
|
}
|
|
1314
1267
|
var TEST_API_URL = 'https://test.stytch.com';
|
|
1315
1268
|
var LIVE_API_URL = 'https://api.stytch.com';
|
|
@@ -1362,7 +1315,6 @@ var RetriableErrorType;
|
|
|
1362
1315
|
RetriableErrorType["RequiredCatcha"] = "Catcha Required";
|
|
1363
1316
|
})(RetriableErrorType || (RetriableErrorType = {}));
|
|
1364
1317
|
var RetriableError = /*#__PURE__*/function (_Error) {
|
|
1365
|
-
_inherits(RetriableError, _Error);
|
|
1366
1318
|
function RetriableError(type) {
|
|
1367
1319
|
var _this;
|
|
1368
1320
|
_classCallCheck(this, RetriableError);
|
|
@@ -1370,8 +1322,9 @@ var RetriableError = /*#__PURE__*/function (_Error) {
|
|
|
1370
1322
|
_this.type = type;
|
|
1371
1323
|
return _this;
|
|
1372
1324
|
}
|
|
1325
|
+
_inherits(RetriableError, _Error);
|
|
1373
1326
|
return _createClass(RetriableError);
|
|
1374
|
-
}(
|
|
1327
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
1375
1328
|
function _retriableFetchSDK(_ref) {
|
|
1376
1329
|
var method = _ref.method,
|
|
1377
1330
|
finalURL = _ref.finalURL,
|
|
@@ -2057,7 +2010,7 @@ var ErrorMarshaller = /*#__PURE__*/function () {
|
|
|
2057
2010
|
function ErrorMarshaller() {
|
|
2058
2011
|
_classCallCheck(this, ErrorMarshaller);
|
|
2059
2012
|
}
|
|
2060
|
-
_createClass(ErrorMarshaller, null, [{
|
|
2013
|
+
return _createClass(ErrorMarshaller, null, [{
|
|
2061
2014
|
key: "marshall",
|
|
2062
2015
|
value: function marshall(error) {
|
|
2063
2016
|
return Object.assign(Object.assign({}, error), {
|
|
@@ -2108,7 +2061,6 @@ var ErrorMarshaller = /*#__PURE__*/function () {
|
|
|
2108
2061
|
return ErrorMarshaller.inflate(Error, error);
|
|
2109
2062
|
}
|
|
2110
2063
|
}]);
|
|
2111
|
-
return ErrorMarshaller;
|
|
2112
2064
|
}();
|
|
2113
2065
|
var DEFAULT_MAX_BATCH_SIZE = 15;
|
|
2114
2066
|
var DEFAULT_INTERVAL_DURATION_MS = 800;
|
|
@@ -2120,7 +2072,7 @@ var EventLogger = /*#__PURE__*/function () {
|
|
|
2120
2072
|
setInterval(this.flush.bind(this), args.intervalDurationMs);
|
|
2121
2073
|
this.batch = [];
|
|
2122
2074
|
}
|
|
2123
|
-
_createClass(EventLogger, [{
|
|
2075
|
+
return _createClass(EventLogger, [{
|
|
2124
2076
|
key: "logEvent",
|
|
2125
2077
|
value: function logEvent(telemetry, event) {
|
|
2126
2078
|
this.batch.push({
|
|
@@ -2170,7 +2122,6 @@ var EventLogger = /*#__PURE__*/function () {
|
|
|
2170
2122
|
}));
|
|
2171
2123
|
}
|
|
2172
2124
|
}]);
|
|
2173
|
-
return EventLogger;
|
|
2174
2125
|
}();
|
|
2175
2126
|
var EmailSentType;
|
|
2176
2127
|
(function (EmailSentType) {
|
|
@@ -2526,7 +2477,7 @@ var HeadlessSessionClient = /*#__PURE__*/function () {
|
|
|
2526
2477
|
}));
|
|
2527
2478
|
};
|
|
2528
2479
|
}
|
|
2529
|
-
_createClass(HeadlessSessionClient, [{
|
|
2480
|
+
return _createClass(HeadlessSessionClient, [{
|
|
2530
2481
|
key: "getTokens",
|
|
2531
2482
|
value: function getTokens() {
|
|
2532
2483
|
return this._subscriptionService.getTokens();
|
|
@@ -2539,7 +2490,6 @@ var HeadlessSessionClient = /*#__PURE__*/function () {
|
|
|
2539
2490
|
this._subscriptionService.updateTokens(tokens);
|
|
2540
2491
|
}
|
|
2541
2492
|
}]);
|
|
2542
|
-
return HeadlessSessionClient;
|
|
2543
2493
|
}();
|
|
2544
2494
|
var DefaultDynamicConfig$4 = Promise.resolve({
|
|
2545
2495
|
pkceRequiredForEmailMagicLinks: false
|
|
@@ -2713,7 +2663,7 @@ var HeadlessMagicLinksClient = /*#__PURE__*/function () {
|
|
|
2713
2663
|
}));
|
|
2714
2664
|
};
|
|
2715
2665
|
}
|
|
2716
|
-
_createClass(HeadlessMagicLinksClient, [{
|
|
2666
|
+
return _createClass(HeadlessMagicLinksClient, [{
|
|
2717
2667
|
key: "getCodeChallenge",
|
|
2718
2668
|
value: function getCodeChallenge() {
|
|
2719
2669
|
return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
@@ -2776,7 +2726,6 @@ var HeadlessMagicLinksClient = /*#__PURE__*/function () {
|
|
|
2776
2726
|
}));
|
|
2777
2727
|
}
|
|
2778
2728
|
}]);
|
|
2779
|
-
return HeadlessMagicLinksClient;
|
|
2780
2729
|
}();
|
|
2781
2730
|
var HeadlessOTPClient = /*#__PURE__*/_createClass(function HeadlessOTPClient(_networkClient, _subscriptionService) {
|
|
2782
2731
|
var _this7 = this;
|
|
@@ -3081,7 +3030,7 @@ var HeadlessOAuthClient$1 = /*#__PURE__*/function () {
|
|
|
3081
3030
|
start: this.startOAuthFlow(OAuthProviders.Yahoo)
|
|
3082
3031
|
};
|
|
3083
3032
|
}
|
|
3084
|
-
_createClass(HeadlessOAuthClient, [{
|
|
3033
|
+
return _createClass(HeadlessOAuthClient, [{
|
|
3085
3034
|
key: "authenticate",
|
|
3086
3035
|
value: function authenticate(token, options) {
|
|
3087
3036
|
return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee38() {
|
|
@@ -3224,7 +3173,6 @@ var HeadlessOAuthClient$1 = /*#__PURE__*/function () {
|
|
|
3224
3173
|
};
|
|
3225
3174
|
}
|
|
3226
3175
|
}]);
|
|
3227
|
-
return HeadlessOAuthClient;
|
|
3228
3176
|
}();
|
|
3229
3177
|
var DefaultDynamicConfig$3 = Promise.resolve({
|
|
3230
3178
|
siweRequiredForCryptoWallets: false
|
|
@@ -3244,7 +3192,7 @@ var HeadlessCryptoWalletClient = /*#__PURE__*/function () {
|
|
|
3244
3192
|
this.dfpProtectedAuth = dfpProtectedAuth;
|
|
3245
3193
|
this._config = _config;
|
|
3246
3194
|
}
|
|
3247
|
-
_createClass(HeadlessCryptoWalletClient, [{
|
|
3195
|
+
return _createClass(HeadlessCryptoWalletClient, [{
|
|
3248
3196
|
key: "authenticateStart",
|
|
3249
3197
|
value: function authenticateStart(options) {
|
|
3250
3198
|
var _a;
|
|
@@ -3333,7 +3281,6 @@ var HeadlessCryptoWalletClient = /*#__PURE__*/function () {
|
|
|
3333
3281
|
}));
|
|
3334
3282
|
}
|
|
3335
3283
|
}]);
|
|
3336
|
-
return HeadlessCryptoWalletClient;
|
|
3337
3284
|
}();
|
|
3338
3285
|
var HeadlessTOTPClient = /*#__PURE__*/function () {
|
|
3339
3286
|
function HeadlessTOTPClient(_networkClient, _subscriptionService, dfpProtectedAuth) {
|
|
@@ -3342,7 +3289,7 @@ var HeadlessTOTPClient = /*#__PURE__*/function () {
|
|
|
3342
3289
|
this._subscriptionService = _subscriptionService;
|
|
3343
3290
|
this.dfpProtectedAuth = dfpProtectedAuth;
|
|
3344
3291
|
}
|
|
3345
|
-
_createClass(HeadlessTOTPClient, [{
|
|
3292
|
+
return _createClass(HeadlessTOTPClient, [{
|
|
3346
3293
|
key: "create",
|
|
3347
3294
|
value: function create(options) {
|
|
3348
3295
|
return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee43() {
|
|
@@ -3465,7 +3412,6 @@ var HeadlessTOTPClient = /*#__PURE__*/function () {
|
|
|
3465
3412
|
}));
|
|
3466
3413
|
}
|
|
3467
3414
|
}]);
|
|
3468
|
-
return HeadlessTOTPClient;
|
|
3469
3415
|
}();
|
|
3470
3416
|
function base64urlToBuffer(baseurl64String) {
|
|
3471
3417
|
var padding = "==".slice(0, (4 - baseurl64String.length % 4) % 4);
|
|
@@ -3697,7 +3643,7 @@ var HeadlessWebAuthnClient = /*#__PURE__*/function () {
|
|
|
3697
3643
|
return true;
|
|
3698
3644
|
};
|
|
3699
3645
|
}
|
|
3700
|
-
_createClass(HeadlessWebAuthnClient, [{
|
|
3646
|
+
return _createClass(HeadlessWebAuthnClient, [{
|
|
3701
3647
|
key: "register",
|
|
3702
3648
|
value: function register(options) {
|
|
3703
3649
|
var _a, _b;
|
|
@@ -3887,7 +3833,6 @@ var HeadlessWebAuthnClient = /*#__PURE__*/function () {
|
|
|
3887
3833
|
}));
|
|
3888
3834
|
}
|
|
3889
3835
|
}]);
|
|
3890
|
-
return HeadlessWebAuthnClient;
|
|
3891
3836
|
}();
|
|
3892
3837
|
var DefaultDynamicConfig$2 = Promise.resolve({
|
|
3893
3838
|
pkceRequiredForPasswordResets: false
|
|
@@ -3903,7 +3848,7 @@ var HeadlessPasswordClient = /*#__PURE__*/function () {
|
|
|
3903
3848
|
this._config = _config;
|
|
3904
3849
|
this.dfpProtectedAuth = dfpProtectedAuth;
|
|
3905
3850
|
}
|
|
3906
|
-
_createClass(HeadlessPasswordClient, [{
|
|
3851
|
+
return _createClass(HeadlessPasswordClient, [{
|
|
3907
3852
|
key: "getCodeChallenge",
|
|
3908
3853
|
value: function getCodeChallenge() {
|
|
3909
3854
|
return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee53() {
|
|
@@ -4211,7 +4156,6 @@ var HeadlessPasswordClient = /*#__PURE__*/function () {
|
|
|
4211
4156
|
}));
|
|
4212
4157
|
}
|
|
4213
4158
|
}]);
|
|
4214
|
-
return HeadlessPasswordClient;
|
|
4215
4159
|
}();
|
|
4216
4160
|
var HeadlessImpersonationClient = /*#__PURE__*/_createClass(function HeadlessImpersonationClient(_networkClient, _subscriptionService, dfpProtectedAuth) {
|
|
4217
4161
|
var _this9 = this;
|
|
@@ -4266,7 +4210,7 @@ var IframeHostClient = /*#__PURE__*/function () {
|
|
|
4266
4210
|
this.iframeURL = iframeURL;
|
|
4267
4211
|
this.createIframe();
|
|
4268
4212
|
}
|
|
4269
|
-
_createClass(IframeHostClient, [{
|
|
4213
|
+
return _createClass(IframeHostClient, [{
|
|
4270
4214
|
key: "createIframe",
|
|
4271
4215
|
value: function createIframe() {
|
|
4272
4216
|
var existingIframe = document.querySelector("[src~=\"".concat(this.iframeURL, "\"]"));
|
|
@@ -4333,7 +4277,6 @@ var IframeHostClient = /*#__PURE__*/function () {
|
|
|
4333
4277
|
}));
|
|
4334
4278
|
}
|
|
4335
4279
|
}]);
|
|
4336
|
-
return IframeHostClient;
|
|
4337
4280
|
}();
|
|
4338
4281
|
var SearchDataManager = /*#__PURE__*/function () {
|
|
4339
4282
|
function SearchDataManager(_networkClient, dfpProtectedAuth) {
|
|
@@ -4341,7 +4284,7 @@ var SearchDataManager = /*#__PURE__*/function () {
|
|
|
4341
4284
|
this._networkClient = _networkClient;
|
|
4342
4285
|
this.dfpProtectedAuth = dfpProtectedAuth;
|
|
4343
4286
|
}
|
|
4344
|
-
_createClass(SearchDataManager, [{
|
|
4287
|
+
return _createClass(SearchDataManager, [{
|
|
4345
4288
|
key: "searchUser",
|
|
4346
4289
|
value: function searchUser(email) {
|
|
4347
4290
|
var _this30 = this;
|
|
@@ -4372,7 +4315,6 @@ var SearchDataManager = /*#__PURE__*/function () {
|
|
|
4372
4315
|
});
|
|
4373
4316
|
}
|
|
4374
4317
|
}]);
|
|
4375
|
-
return SearchDataManager;
|
|
4376
4318
|
}();
|
|
4377
4319
|
var shouldTryRefresh = function shouldTryRefresh(state) {
|
|
4378
4320
|
return !!(state === null || state === void 0 ? void 0 : state.session);
|
|
@@ -4430,7 +4372,7 @@ var SessionManager = /*#__PURE__*/function () {
|
|
|
4430
4372
|
this.timeout = null;
|
|
4431
4373
|
this._subscriptionService.subscribeToState(this._onDataChange);
|
|
4432
4374
|
}
|
|
4433
|
-
_createClass(SessionManager, [{
|
|
4375
|
+
return _createClass(SessionManager, [{
|
|
4434
4376
|
key: "performBackgroundRefresh",
|
|
4435
4377
|
value: function performBackgroundRefresh() {
|
|
4436
4378
|
var _this32 = this;
|
|
@@ -4474,7 +4416,6 @@ var SessionManager = /*#__PURE__*/function () {
|
|
|
4474
4416
|
return UNRECOVERABLE_ERROR_TYPES.includes(error.error_type);
|
|
4475
4417
|
}
|
|
4476
4418
|
}]);
|
|
4477
|
-
return SessionManager;
|
|
4478
4419
|
}();
|
|
4479
4420
|
SessionManager.REFRESH_INTERVAL_MS = 1000 * 60 * 3;
|
|
4480
4421
|
var StateChangeClient = /*#__PURE__*/_createClass(function StateChangeClient(_subscriptionService, emptyState) {
|
|
@@ -4528,7 +4469,7 @@ var BootstrapDataManager = /*#__PURE__*/function () {
|
|
|
4528
4469
|
return DEFAULT_BOOTSTRAP();
|
|
4529
4470
|
});
|
|
4530
4471
|
}
|
|
4531
|
-
_createClass2(BootstrapDataManager, [{
|
|
4472
|
+
return _createClass2(BootstrapDataManager, [{
|
|
4532
4473
|
key: "getSync",
|
|
4533
4474
|
value: function getSync() {
|
|
4534
4475
|
var cached = this._dataLayer.getItem(BOOTSTRAP_CACHE_KEY);
|
|
@@ -4574,7 +4515,6 @@ var BootstrapDataManager = /*#__PURE__*/function () {
|
|
|
4574
4515
|
};
|
|
4575
4516
|
}
|
|
4576
4517
|
}]);
|
|
4577
|
-
return BootstrapDataManager;
|
|
4578
4518
|
}();
|
|
4579
4519
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
4580
4520
|
function adopt(value) {
|
|
@@ -4696,7 +4636,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
|
|
|
4696
4636
|
return _this12.call('parsedPhoneNumber', req);
|
|
4697
4637
|
};
|
|
4698
4638
|
}
|
|
4699
|
-
_createClass2(ClientsideServicesProvider, [{
|
|
4639
|
+
return _createClass2(ClientsideServicesProvider, [{
|
|
4700
4640
|
key: "frameClient",
|
|
4701
4641
|
get: function get() {
|
|
4702
4642
|
var _a;
|
|
@@ -4709,17 +4649,15 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
|
|
|
4709
4649
|
return this.frameClient.call(handlerName, [req]);
|
|
4710
4650
|
}
|
|
4711
4651
|
}]);
|
|
4712
|
-
return ClientsideServicesProvider;
|
|
4713
4652
|
}();
|
|
4714
4653
|
var HeadlessOAuthClient = /*#__PURE__*/function (_HeadlessOAuthClient$) {
|
|
4715
|
-
_inherits2(HeadlessOAuthClient, _HeadlessOAuthClient$);
|
|
4716
4654
|
function HeadlessOAuthClient(_networkClient, _subscriptionService, _pkceManager, _dynamicConfig, _config, _oneTap) {
|
|
4717
4655
|
var _this13;
|
|
4718
4656
|
_classCallCheck2(this, HeadlessOAuthClient);
|
|
4719
4657
|
_this13 = _callSuper2(this, HeadlessOAuthClient, [_networkClient, _subscriptionService, _pkceManager, _dynamicConfig, _config]);
|
|
4720
4658
|
_this13._oneTap = _oneTap;
|
|
4721
4659
|
_this13.startOneTap = function (options) {
|
|
4722
|
-
return __awaiter(
|
|
4660
|
+
return __awaiter(_this13, void 0, void 0, /*#__PURE__*/_regeneratorRuntime2().mark(function _callee12() {
|
|
4723
4661
|
var clientResult, client, onSuccessCallback;
|
|
4724
4662
|
return _regeneratorRuntime2().wrap(function _callee12$(_context12) {
|
|
4725
4663
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -4759,9 +4697,10 @@ var HeadlessOAuthClient = /*#__PURE__*/function (_HeadlessOAuthClient$) {
|
|
|
4759
4697
|
};
|
|
4760
4698
|
return _this13;
|
|
4761
4699
|
}
|
|
4700
|
+
_inherits2(HeadlessOAuthClient, _HeadlessOAuthClient$);
|
|
4762
4701
|
return _createClass2(HeadlessOAuthClient);
|
|
4763
4702
|
}(HeadlessOAuthClient$1);
|
|
4764
|
-
var version = "5.18.
|
|
4703
|
+
var version = "5.18.4";
|
|
4765
4704
|
var NetworkClient = /*#__PURE__*/function () {
|
|
4766
4705
|
function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
|
|
4767
4706
|
_classCallCheck2(this, NetworkClient);
|
|
@@ -4781,7 +4720,7 @@ var NetworkClient = /*#__PURE__*/function () {
|
|
|
4781
4720
|
logEventURL: this.buildSDKUrl('/events')
|
|
4782
4721
|
});
|
|
4783
4722
|
}
|
|
4784
|
-
_createClass2(NetworkClient, [{
|
|
4723
|
+
return _createClass2(NetworkClient, [{
|
|
4785
4724
|
key: "logEvent",
|
|
4786
4725
|
value: function logEvent(_ref7) {
|
|
4787
4726
|
var name = _ref7.name,
|
|
@@ -4914,7 +4853,6 @@ var NetworkClient = /*#__PURE__*/function () {
|
|
|
4914
4853
|
return "".concat(this.baseURL, "/sdk/v1").concat(url);
|
|
4915
4854
|
}
|
|
4916
4855
|
}]);
|
|
4917
|
-
return NetworkClient;
|
|
4918
4856
|
}();
|
|
4919
4857
|
var navigatorSupportsFedCM = typeof window !== 'undefined' && 'IdentityCredential' in window;
|
|
4920
4858
|
var getConfiguredEmbeddedMode = function getConfiguredEmbeddedMode(position) {
|
|
@@ -4936,7 +4874,7 @@ var GoogleOneTapClient = /*#__PURE__*/function () {
|
|
|
4936
4874
|
this._googleClient = _googleClient;
|
|
4937
4875
|
this._clientId = _clientId;
|
|
4938
4876
|
}
|
|
4939
|
-
_createClass2(GoogleOneTapClient, [{
|
|
4877
|
+
return _createClass2(GoogleOneTapClient, [{
|
|
4940
4878
|
key: "cancel",
|
|
4941
4879
|
value: function cancel() {
|
|
4942
4880
|
this._googleClient.cancel();
|
|
@@ -5015,7 +4953,6 @@ var GoogleOneTapClient = /*#__PURE__*/function () {
|
|
|
5015
4953
|
});
|
|
5016
4954
|
}
|
|
5017
4955
|
}]);
|
|
5018
|
-
return GoogleOneTapClient;
|
|
5019
4956
|
}();
|
|
5020
4957
|
var loadGoogleOneTapClient = function loadGoogleOneTapClient() {
|
|
5021
4958
|
return loadESModule(GOOGLE_ONE_TAP_SCRIPT_URL, function () {
|
|
@@ -5061,7 +4998,7 @@ var OneTapProvider = /*#__PURE__*/function () {
|
|
|
5061
4998
|
window.location.href = redirect_url;
|
|
5062
4999
|
};
|
|
5063
5000
|
}
|
|
5064
|
-
_createClass2(OneTapProvider, [{
|
|
5001
|
+
return _createClass2(OneTapProvider, [{
|
|
5065
5002
|
key: "createOneTapClient",
|
|
5066
5003
|
value: function createOneTapClient() {
|
|
5067
5004
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime2().mark(function _callee66() {
|
|
@@ -5170,7 +5107,6 @@ var OneTapProvider = /*#__PURE__*/function () {
|
|
|
5170
5107
|
return !OneTapProvider.WillGoogleOneTapShowBannerForUA(navigator.userAgent);
|
|
5171
5108
|
}
|
|
5172
5109
|
}]);
|
|
5173
|
-
return OneTapProvider;
|
|
5174
5110
|
}();
|
|
5175
5111
|
var PKCE_VERIFIER_STORAGE_KEY = 'PKCE_VERIFIER';
|
|
5176
5112
|
function toHex(n) {
|
|
@@ -5190,7 +5126,7 @@ var PKCEManager = /*#__PURE__*/function () {
|
|
|
5190
5126
|
this._dataLayer = _dataLayer;
|
|
5191
5127
|
this.namespace = namespace;
|
|
5192
5128
|
}
|
|
5193
|
-
_createClass2(PKCEManager, [{
|
|
5129
|
+
return _createClass2(PKCEManager, [{
|
|
5194
5130
|
key: "key",
|
|
5195
5131
|
value: function key() {
|
|
5196
5132
|
return PKCE_VERIFIER_STORAGE_KEY + ':' + this.namespace;
|
|
@@ -5262,13 +5198,12 @@ var PKCEManager = /*#__PURE__*/function () {
|
|
|
5262
5198
|
}));
|
|
5263
5199
|
}
|
|
5264
5200
|
}]);
|
|
5265
|
-
return PKCEManager;
|
|
5266
5201
|
}();
|
|
5267
5202
|
var createDeepEqual = function createDeepEqual() {
|
|
5268
5203
|
var _ref15 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
5269
5204
|
_ref15$KEYS_TO_EXCLUD = _ref15.KEYS_TO_EXCLUDE,
|
|
5270
5205
|
KEYS_TO_EXCLUDE = _ref15$KEYS_TO_EXCLUD === void 0 ? [] : _ref15$KEYS_TO_EXCLUD;
|
|
5271
|
-
var
|
|
5206
|
+
var _deepEqual = function deepEqual(a, b) {
|
|
5272
5207
|
if (_typeof2(a) !== _typeof2(b)) return false;
|
|
5273
5208
|
if (a === null || b === null) return a === b;
|
|
5274
5209
|
if (_typeof2(a) === 'object') {
|
|
@@ -5283,12 +5218,12 @@ var createDeepEqual = function createDeepEqual() {
|
|
|
5283
5218
|
var _ref19 = _slicedToArray2(_ref18, 2),
|
|
5284
5219
|
k = _ref19[0],
|
|
5285
5220
|
v = _ref19[1];
|
|
5286
|
-
return
|
|
5221
|
+
return _deepEqual(v, b[k]);
|
|
5287
5222
|
});
|
|
5288
5223
|
}
|
|
5289
5224
|
return a === b;
|
|
5290
5225
|
};
|
|
5291
|
-
return
|
|
5226
|
+
return _deepEqual;
|
|
5292
5227
|
};
|
|
5293
5228
|
var isLocalhost = function isLocalhost() {
|
|
5294
5229
|
return Boolean(window.location.hostname === 'localhost' || window.location.hostname === '[::1]' || window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));
|
|
@@ -5504,7 +5439,7 @@ var SubscriptionDataLayer = /*#__PURE__*/function () {
|
|
|
5504
5439
|
}
|
|
5505
5440
|
this.state = parsedState;
|
|
5506
5441
|
}
|
|
5507
|
-
_createClass2(SubscriptionDataLayer, [{
|
|
5442
|
+
return _createClass2(SubscriptionDataLayer, [{
|
|
5508
5443
|
key: "opaqueTokenCookieName",
|
|
5509
5444
|
get: function get() {
|
|
5510
5445
|
var _a;
|
|
@@ -5670,14 +5605,13 @@ var SubscriptionDataLayer = /*#__PURE__*/function () {
|
|
|
5670
5605
|
return cookieOpts;
|
|
5671
5606
|
}
|
|
5672
5607
|
}]);
|
|
5673
|
-
return SubscriptionDataLayer;
|
|
5674
5608
|
}();
|
|
5675
5609
|
var ConsumerSubscriptionDataLayer = /*#__PURE__*/function (_SubscriptionDataLaye) {
|
|
5676
|
-
_inherits2(ConsumerSubscriptionDataLayer, _SubscriptionDataLaye);
|
|
5677
5610
|
function ConsumerSubscriptionDataLayer() {
|
|
5678
5611
|
_classCallCheck2(this, ConsumerSubscriptionDataLayer);
|
|
5679
5612
|
return _callSuper2(this, ConsumerSubscriptionDataLayer, arguments);
|
|
5680
5613
|
}
|
|
5614
|
+
_inherits2(ConsumerSubscriptionDataLayer, _SubscriptionDataLaye);
|
|
5681
5615
|
return _createClass2(ConsumerSubscriptionDataLayer);
|
|
5682
5616
|
}(SubscriptionDataLayer);
|
|
5683
5617
|
var consumerDataLayerCacheSymbol = Symbol["for"]('__stytch_DataLayer');
|
|
@@ -5735,7 +5669,7 @@ var BaseSubscriptionService = /*#__PURE__*/function () {
|
|
|
5735
5669
|
}
|
|
5736
5670
|
}
|
|
5737
5671
|
}
|
|
5738
|
-
_createClass2(BaseSubscriptionService, [{
|
|
5672
|
+
return _createClass2(BaseSubscriptionService, [{
|
|
5739
5673
|
key: "getTokens",
|
|
5740
5674
|
value: function getTokens() {
|
|
5741
5675
|
var _this$_datalayer$read2 = this._datalayer.readSessionCookie(),
|
|
@@ -5871,10 +5805,8 @@ var BaseSubscriptionService = /*#__PURE__*/function () {
|
|
|
5871
5805
|
this.fromCache = false;
|
|
5872
5806
|
}
|
|
5873
5807
|
}]);
|
|
5874
|
-
return BaseSubscriptionService;
|
|
5875
5808
|
}();
|
|
5876
5809
|
var ConsumerSubscriptionService = /*#__PURE__*/function (_BaseSubscriptionServ) {
|
|
5877
|
-
_inherits2(ConsumerSubscriptionService, _BaseSubscriptionServ);
|
|
5878
5810
|
function ConsumerSubscriptionService() {
|
|
5879
5811
|
var _this19;
|
|
5880
5812
|
_classCallCheck2(this, ConsumerSubscriptionService);
|
|
@@ -5921,6 +5853,7 @@ var ConsumerSubscriptionService = /*#__PURE__*/function (_BaseSubscriptionServ)
|
|
|
5921
5853
|
};
|
|
5922
5854
|
return _this19;
|
|
5923
5855
|
}
|
|
5856
|
+
_inherits2(ConsumerSubscriptionService, _BaseSubscriptionServ);
|
|
5924
5857
|
return _createClass2(ConsumerSubscriptionService);
|
|
5925
5858
|
}(BaseSubscriptionService);
|
|
5926
5859
|
var internalSymB2C = Symbol["for"]('stytch__internal_b2c');
|