@stytch/vanilla-js 5.18.0 → 5.18.2
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 +17 -0
- package/dist/adminPortal/index.esm.js +1 -1
- package/dist/adminPortal/index.js +1 -1
- package/dist/adminPortal/utils/getDisplay.d.ts +3 -2
- package/dist/adminPortal/utils/oAuthProviders.d.ts +3 -2
- package/dist/b2b/index.esm.js +12 -10
- package/dist/b2b/index.headless.esm.js +3 -3
- package/dist/b2b/index.headless.js +3 -2
- package/dist/b2b/index.js +12 -9
- package/dist/{extractErrorMessage-BAKuYOGm.js → extractErrorMessage-C1MkGgw9.js} +248 -256
- package/dist/{extractErrorMessage-D4aCfh3i.js → extractErrorMessage-CBdT83I1.js} +210 -218
- package/dist/index.esm.js +1 -1
- package/dist/index.headless.esm.js +62 -54
- package/dist/index.headless.js +62 -53
- package/dist/index.js +1 -1
- package/dist/{internal-ChLmIjYa.js → internal-CSX7OA60.js} +61 -53
- package/dist/{internal-DKLdlLMO.js → internal-CuNGC8Ow.js} +61 -52
- package/package.json +7 -6
|
@@ -436,208 +436,216 @@ var NoBiometricsEnrolledError = /*#__PURE__*/function (_StytchSDKError7) {
|
|
|
436
436
|
}
|
|
437
437
|
return _createClass$1(NoBiometricsEnrolledError);
|
|
438
438
|
}(StytchSDKError);
|
|
439
|
-
var
|
|
440
|
-
_inherits$1(
|
|
439
|
+
var BiometricsAlreadyEnrolledError = /*#__PURE__*/function (_StytchSDKError8) {
|
|
440
|
+
_inherits$1(BiometricsAlreadyEnrolledError, _StytchSDKError8);
|
|
441
|
+
function BiometricsAlreadyEnrolledError() {
|
|
442
|
+
_classCallCheck$1(this, BiometricsAlreadyEnrolledError);
|
|
443
|
+
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
|
+
}
|
|
445
|
+
return _createClass$1(BiometricsAlreadyEnrolledError);
|
|
446
|
+
}(StytchSDKError);
|
|
447
|
+
var UserCancellationError = /*#__PURE__*/function (_StytchSDKError9) {
|
|
448
|
+
_inherits$1(UserCancellationError, _StytchSDKError9);
|
|
441
449
|
function UserCancellationError() {
|
|
442
450
|
_classCallCheck$1(this, UserCancellationError);
|
|
443
451
|
return _callSuper$1(this, UserCancellationError, ['UserCancellationError', 'The user canceled the prompt. Ask the user to try again.']);
|
|
444
452
|
}
|
|
445
453
|
return _createClass$1(UserCancellationError);
|
|
446
454
|
}(StytchSDKError);
|
|
447
|
-
var UserLockedOutError = /*#__PURE__*/function (
|
|
448
|
-
_inherits$1(UserLockedOutError,
|
|
455
|
+
var UserLockedOutError = /*#__PURE__*/function (_StytchSDKError10) {
|
|
456
|
+
_inherits$1(UserLockedOutError, _StytchSDKError10);
|
|
449
457
|
function UserLockedOutError() {
|
|
450
458
|
_classCallCheck$1(this, UserLockedOutError);
|
|
451
459
|
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.']);
|
|
452
460
|
}
|
|
453
461
|
return _createClass$1(UserLockedOutError);
|
|
454
462
|
}(StytchSDKError);
|
|
455
|
-
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (
|
|
456
|
-
_inherits$1(DeviceCredentialsNotAllowedError,
|
|
463
|
+
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (_StytchSDKError11) {
|
|
464
|
+
_inherits$1(DeviceCredentialsNotAllowedError, _StytchSDKError11);
|
|
457
465
|
function DeviceCredentialsNotAllowedError() {
|
|
458
466
|
_classCallCheck$1(this, DeviceCredentialsNotAllowedError);
|
|
459
467
|
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.']);
|
|
460
468
|
}
|
|
461
469
|
return _createClass$1(DeviceCredentialsNotAllowedError);
|
|
462
470
|
}(StytchSDKError);
|
|
463
|
-
var MissingGoogleClientIDError = /*#__PURE__*/function (
|
|
464
|
-
_inherits$1(MissingGoogleClientIDError,
|
|
471
|
+
var MissingGoogleClientIDError = /*#__PURE__*/function (_StytchSDKError12) {
|
|
472
|
+
_inherits$1(MissingGoogleClientIDError, _StytchSDKError12);
|
|
465
473
|
function MissingGoogleClientIDError() {
|
|
466
474
|
_classCallCheck$1(this, MissingGoogleClientIDError);
|
|
467
475
|
return _callSuper$1(this, MissingGoogleClientIDError, ['MissingGoogleClientIDError', 'No Google client ID was found in the project.']);
|
|
468
476
|
}
|
|
469
477
|
return _createClass$1(MissingGoogleClientIDError);
|
|
470
478
|
}(StytchSDKError);
|
|
471
|
-
var MissingPKCEError = /*#__PURE__*/function (
|
|
472
|
-
_inherits$1(MissingPKCEError,
|
|
479
|
+
var MissingPKCEError = /*#__PURE__*/function (_StytchSDKError13) {
|
|
480
|
+
_inherits$1(MissingPKCEError, _StytchSDKError13);
|
|
473
481
|
function MissingPKCEError() {
|
|
474
482
|
_classCallCheck$1(this, MissingPKCEError);
|
|
475
483
|
return _callSuper$1(this, MissingPKCEError, ['MissingPKCEError', 'Make sure this flow is completed on the same device on which it was started.']);
|
|
476
484
|
}
|
|
477
485
|
return _createClass$1(MissingPKCEError);
|
|
478
486
|
}(StytchSDKError);
|
|
479
|
-
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (
|
|
480
|
-
_inherits$1(MissingAuthorizationCredentialIDTokenError,
|
|
487
|
+
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (_StytchSDKError14) {
|
|
488
|
+
_inherits$1(MissingAuthorizationCredentialIDTokenError, _StytchSDKError14);
|
|
481
489
|
function MissingAuthorizationCredentialIDTokenError() {
|
|
482
490
|
_classCallCheck$1(this, MissingAuthorizationCredentialIDTokenError);
|
|
483
491
|
return _callSuper$1(this, MissingAuthorizationCredentialIDTokenError, ['MissingAuthorizationCredentialIDTokenError', 'The authorization credential is missing an ID token.']);
|
|
484
492
|
}
|
|
485
493
|
return _createClass$1(MissingAuthorizationCredentialIDTokenError);
|
|
486
494
|
}(StytchSDKError);
|
|
487
|
-
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (
|
|
488
|
-
_inherits$1(InvalidAuthorizationCredentialError,
|
|
495
|
+
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (_StytchSDKError15) {
|
|
496
|
+
_inherits$1(InvalidAuthorizationCredentialError, _StytchSDKError15);
|
|
489
497
|
function InvalidAuthorizationCredentialError() {
|
|
490
498
|
_classCallCheck$1(this, InvalidAuthorizationCredentialError);
|
|
491
499
|
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.']);
|
|
492
500
|
}
|
|
493
501
|
return _createClass$1(InvalidAuthorizationCredentialError);
|
|
494
502
|
}(StytchSDKError);
|
|
495
|
-
var NoCredentialsPresentError = /*#__PURE__*/function (
|
|
496
|
-
_inherits$1(NoCredentialsPresentError,
|
|
503
|
+
var NoCredentialsPresentError = /*#__PURE__*/function (_StytchSDKError16) {
|
|
504
|
+
_inherits$1(NoCredentialsPresentError, _StytchSDKError16);
|
|
497
505
|
function NoCredentialsPresentError() {
|
|
498
506
|
_classCallCheck$1(this, NoCredentialsPresentError);
|
|
499
507
|
return _callSuper$1(this, NoCredentialsPresentError, ['NoCredentialsPresentError', 'The user did not provide credentials for a Google OneTap attempt']);
|
|
500
508
|
}
|
|
501
509
|
return _createClass$1(NoCredentialsPresentError);
|
|
502
510
|
}(StytchSDKError);
|
|
503
|
-
var MissingPublicKeyError = /*#__PURE__*/function (
|
|
504
|
-
_inherits$1(MissingPublicKeyError,
|
|
511
|
+
var MissingPublicKeyError = /*#__PURE__*/function (_StytchSDKError17) {
|
|
512
|
+
_inherits$1(MissingPublicKeyError, _StytchSDKError17);
|
|
505
513
|
function MissingPublicKeyError() {
|
|
506
514
|
_classCallCheck$1(this, MissingPublicKeyError);
|
|
507
515
|
return _callSuper$1(this, MissingPublicKeyError, ['MissingPublicKeyError', 'Failed to retrieve the public key. Add a new biometric registration.']);
|
|
508
516
|
}
|
|
509
517
|
return _createClass$1(MissingPublicKeyError);
|
|
510
518
|
}(StytchSDKError);
|
|
511
|
-
var ChallengeSigningFailedError = /*#__PURE__*/function (
|
|
512
|
-
_inherits$1(ChallengeSigningFailedError,
|
|
519
|
+
var ChallengeSigningFailedError = /*#__PURE__*/function (_StytchSDKError18) {
|
|
520
|
+
_inherits$1(ChallengeSigningFailedError, _StytchSDKError18);
|
|
513
521
|
function ChallengeSigningFailedError() {
|
|
514
522
|
_classCallCheck$1(this, ChallengeSigningFailedError);
|
|
515
523
|
return _callSuper$1(this, ChallengeSigningFailedError, ['ChallengeSigningFailedError', 'Failed to sign the challenge with the key.']);
|
|
516
524
|
}
|
|
517
525
|
return _createClass$1(ChallengeSigningFailedError);
|
|
518
526
|
}(StytchSDKError);
|
|
519
|
-
var SDKNotConfiguredError = /*#__PURE__*/function (
|
|
520
|
-
_inherits$1(SDKNotConfiguredError,
|
|
527
|
+
var SDKNotConfiguredError = /*#__PURE__*/function (_StytchSDKError19) {
|
|
528
|
+
_inherits$1(SDKNotConfiguredError, _StytchSDKError19);
|
|
521
529
|
function SDKNotConfiguredError() {
|
|
522
530
|
_classCallCheck$1(this, SDKNotConfiguredError);
|
|
523
531
|
return _callSuper$1(this, SDKNotConfiguredError, ['SDKNotConfiguredError', 'Stytch client is not confiured. You must call the configure method before using the SDK']);
|
|
524
532
|
}
|
|
525
533
|
return _createClass$1(SDKNotConfiguredError);
|
|
526
534
|
}(StytchSDKError);
|
|
527
|
-
var FailedCodeChallengeError = /*#__PURE__*/function (
|
|
528
|
-
_inherits$1(FailedCodeChallengeError,
|
|
535
|
+
var FailedCodeChallengeError = /*#__PURE__*/function (_StytchSDKError20) {
|
|
536
|
+
_inherits$1(FailedCodeChallengeError, _StytchSDKError20);
|
|
529
537
|
function FailedCodeChallengeError() {
|
|
530
538
|
_classCallCheck$1(this, FailedCodeChallengeError);
|
|
531
539
|
return _callSuper$1(this, FailedCodeChallengeError, ['FailedCodeChallengeError', 'Failed to create a code challenge']);
|
|
532
540
|
}
|
|
533
541
|
return _createClass$1(FailedCodeChallengeError);
|
|
534
542
|
}(StytchSDKError);
|
|
535
|
-
var PasskeysUnsupportedError = /*#__PURE__*/function (
|
|
536
|
-
_inherits$1(PasskeysUnsupportedError,
|
|
543
|
+
var PasskeysUnsupportedError = /*#__PURE__*/function (_StytchSDKError21) {
|
|
544
|
+
_inherits$1(PasskeysUnsupportedError, _StytchSDKError21);
|
|
537
545
|
function PasskeysUnsupportedError() {
|
|
538
546
|
_classCallCheck$1(this, PasskeysUnsupportedError);
|
|
539
547
|
return _callSuper$1(this, PasskeysUnsupportedError, ['PasskeysUnsupportedError', 'Passkeys are not supported on this device']);
|
|
540
548
|
}
|
|
541
549
|
return _createClass$1(PasskeysUnsupportedError);
|
|
542
550
|
}(StytchSDKError);
|
|
543
|
-
var FailedToDecryptDataError = /*#__PURE__*/function (
|
|
544
|
-
_inherits$1(FailedToDecryptDataError,
|
|
551
|
+
var FailedToDecryptDataError = /*#__PURE__*/function (_StytchSDKError22) {
|
|
552
|
+
_inherits$1(FailedToDecryptDataError, _StytchSDKError22);
|
|
545
553
|
function FailedToDecryptDataError() {
|
|
546
554
|
_classCallCheck$1(this, FailedToDecryptDataError);
|
|
547
555
|
return _callSuper$1(this, FailedToDecryptDataError, ['FailedToDecryptDataError', 'Failed to decrypt user data']);
|
|
548
556
|
}
|
|
549
557
|
return _createClass$1(FailedToDecryptDataError);
|
|
550
558
|
}(StytchSDKError);
|
|
551
|
-
var BiometricsFailedError = /*#__PURE__*/function (
|
|
552
|
-
_inherits$1(BiometricsFailedError,
|
|
559
|
+
var BiometricsFailedError = /*#__PURE__*/function (_StytchSDKError23) {
|
|
560
|
+
_inherits$1(BiometricsFailedError, _StytchSDKError23);
|
|
553
561
|
function BiometricsFailedError() {
|
|
554
562
|
_classCallCheck$1(this, BiometricsFailedError);
|
|
555
563
|
return _callSuper$1(this, BiometricsFailedError, ['BiometricsFailedError', 'Biometric authentication failed']);
|
|
556
564
|
}
|
|
557
565
|
return _createClass$1(BiometricsFailedError);
|
|
558
566
|
}(StytchSDKError);
|
|
559
|
-
var InvalidStartUrlError = /*#__PURE__*/function (
|
|
560
|
-
_inherits$1(InvalidStartUrlError,
|
|
567
|
+
var InvalidStartUrlError = /*#__PURE__*/function (_StytchSDKError24) {
|
|
568
|
+
_inherits$1(InvalidStartUrlError, _StytchSDKError24);
|
|
561
569
|
function InvalidStartUrlError() {
|
|
562
570
|
_classCallCheck$1(this, InvalidStartUrlError);
|
|
563
571
|
return _callSuper$1(this, InvalidStartUrlError, ['InvalidStartUrlError', 'The start URL was invalid or improperly formatted.']);
|
|
564
572
|
}
|
|
565
573
|
return _createClass$1(InvalidStartUrlError);
|
|
566
574
|
}(StytchSDKError);
|
|
567
|
-
var InvalidRedirectSchemeError = /*#__PURE__*/function (
|
|
568
|
-
_inherits$1(InvalidRedirectSchemeError,
|
|
575
|
+
var InvalidRedirectSchemeError = /*#__PURE__*/function (_StytchSDKError25) {
|
|
576
|
+
_inherits$1(InvalidRedirectSchemeError, _StytchSDKError25);
|
|
569
577
|
function InvalidRedirectSchemeError() {
|
|
570
578
|
_classCallCheck$1(this, InvalidRedirectSchemeError);
|
|
571
579
|
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.']);
|
|
572
580
|
}
|
|
573
581
|
return _createClass$1(InvalidRedirectSchemeError);
|
|
574
582
|
}(StytchSDKError);
|
|
575
|
-
var MissingUrlError = /*#__PURE__*/function (
|
|
576
|
-
_inherits$1(MissingUrlError,
|
|
583
|
+
var MissingUrlError = /*#__PURE__*/function (_StytchSDKError26) {
|
|
584
|
+
_inherits$1(MissingUrlError, _StytchSDKError26);
|
|
577
585
|
function MissingUrlError() {
|
|
578
586
|
_classCallCheck$1(this, MissingUrlError);
|
|
579
587
|
return _callSuper$1(this, MissingUrlError, ['MissingUrlError', 'The underlying web authentication service failed to return a URL.']);
|
|
580
588
|
}
|
|
581
589
|
return _createClass$1(MissingUrlError);
|
|
582
590
|
}(StytchSDKError);
|
|
583
|
-
var InvalidCredentialTypeError = /*#__PURE__*/function (
|
|
584
|
-
_inherits$1(InvalidCredentialTypeError,
|
|
591
|
+
var InvalidCredentialTypeError = /*#__PURE__*/function (_StytchSDKError27) {
|
|
592
|
+
_inherits$1(InvalidCredentialTypeError, _StytchSDKError27);
|
|
585
593
|
function InvalidCredentialTypeError() {
|
|
586
594
|
_classCallCheck$1(this, InvalidCredentialTypeError);
|
|
587
595
|
return _callSuper$1(this, InvalidCredentialTypeError, ['InvalidCredentialTypeError', 'The public key credential type was not of the expected type.']);
|
|
588
596
|
}
|
|
589
597
|
return _createClass$1(InvalidCredentialTypeError);
|
|
590
598
|
}(StytchSDKError);
|
|
591
|
-
var MissingAttestationObjectError = /*#__PURE__*/function (
|
|
592
|
-
_inherits$1(MissingAttestationObjectError,
|
|
599
|
+
var MissingAttestationObjectError = /*#__PURE__*/function (_StytchSDKError28) {
|
|
600
|
+
_inherits$1(MissingAttestationObjectError, _StytchSDKError28);
|
|
593
601
|
function MissingAttestationObjectError() {
|
|
594
602
|
_classCallCheck$1(this, MissingAttestationObjectError);
|
|
595
603
|
return _callSuper$1(this, MissingAttestationObjectError, ['MissingAttestationObjectError', 'The public key credential is missing the attestation object.']);
|
|
596
604
|
}
|
|
597
605
|
return _createClass$1(MissingAttestationObjectError);
|
|
598
606
|
}(StytchSDKError);
|
|
599
|
-
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (
|
|
600
|
-
_inherits$1(JSONDataNotConvertibleToStringError,
|
|
607
|
+
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (_StytchSDKError29) {
|
|
608
|
+
_inherits$1(JSONDataNotConvertibleToStringError, _StytchSDKError29);
|
|
601
609
|
function JSONDataNotConvertibleToStringError() {
|
|
602
610
|
_classCallCheck$1(this, JSONDataNotConvertibleToStringError);
|
|
603
611
|
return _callSuper$1(this, JSONDataNotConvertibleToStringError, ['JSONDataNotConvertibleToStringError', 'JSON data unable to be converted to String type.']);
|
|
604
612
|
}
|
|
605
613
|
return _createClass$1(JSONDataNotConvertibleToStringError);
|
|
606
614
|
}(StytchSDKError);
|
|
607
|
-
var RandomNumberGenerationFailed = /*#__PURE__*/function (
|
|
608
|
-
_inherits$1(RandomNumberGenerationFailed,
|
|
615
|
+
var RandomNumberGenerationFailed = /*#__PURE__*/function (_StytchSDKError30) {
|
|
616
|
+
_inherits$1(RandomNumberGenerationFailed, _StytchSDKError30);
|
|
609
617
|
function RandomNumberGenerationFailed() {
|
|
610
618
|
_classCallCheck$1(this, RandomNumberGenerationFailed);
|
|
611
619
|
return _callSuper$1(this, RandomNumberGenerationFailed, ['RandomNumberGenerationFailed', 'Random number generation failed']);
|
|
612
620
|
}
|
|
613
621
|
return _createClass$1(RandomNumberGenerationFailed);
|
|
614
622
|
}(StytchSDKError);
|
|
615
|
-
var PasskeysInvalidEncoding = /*#__PURE__*/function (
|
|
616
|
-
_inherits$1(PasskeysInvalidEncoding,
|
|
623
|
+
var PasskeysInvalidEncoding = /*#__PURE__*/function (_StytchSDKError31) {
|
|
624
|
+
_inherits$1(PasskeysInvalidEncoding, _StytchSDKError31);
|
|
617
625
|
function PasskeysInvalidEncoding() {
|
|
618
626
|
_classCallCheck$1(this, PasskeysInvalidEncoding);
|
|
619
627
|
return _callSuper$1(this, PasskeysInvalidEncoding, ['PasskeysInvalidEncoding', 'Invalid passkey encoding']);
|
|
620
628
|
}
|
|
621
629
|
return _createClass$1(PasskeysInvalidEncoding);
|
|
622
630
|
}(StytchSDKError);
|
|
623
|
-
var PasskeysMisconfigured = /*#__PURE__*/function (
|
|
624
|
-
_inherits$1(PasskeysMisconfigured,
|
|
631
|
+
var PasskeysMisconfigured = /*#__PURE__*/function (_StytchSDKError32) {
|
|
632
|
+
_inherits$1(PasskeysMisconfigured, _StytchSDKError32);
|
|
625
633
|
function PasskeysMisconfigured() {
|
|
626
634
|
_classCallCheck$1(this, PasskeysMisconfigured);
|
|
627
635
|
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.']);
|
|
628
636
|
}
|
|
629
637
|
return _createClass$1(PasskeysMisconfigured);
|
|
630
638
|
}(StytchSDKError);
|
|
631
|
-
var SignInWithAppleMisconfigured = /*#__PURE__*/function (
|
|
632
|
-
_inherits$1(SignInWithAppleMisconfigured,
|
|
639
|
+
var SignInWithAppleMisconfigured = /*#__PURE__*/function (_StytchSDKError33) {
|
|
640
|
+
_inherits$1(SignInWithAppleMisconfigured, _StytchSDKError33);
|
|
633
641
|
function SignInWithAppleMisconfigured() {
|
|
634
642
|
_classCallCheck$1(this, SignInWithAppleMisconfigured);
|
|
635
643
|
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.']);
|
|
636
644
|
}
|
|
637
645
|
return _createClass$1(SignInWithAppleMisconfigured);
|
|
638
646
|
}(StytchSDKError);
|
|
639
|
-
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (
|
|
640
|
-
_inherits$1(IDPOAuthFlowMissingParamError,
|
|
647
|
+
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (_StytchSDKError34) {
|
|
648
|
+
_inherits$1(IDPOAuthFlowMissingParamError, _StytchSDKError34);
|
|
641
649
|
function IDPOAuthFlowMissingParamError(details) {
|
|
642
650
|
_classCallCheck$1(this, IDPOAuthFlowMissingParamError);
|
|
643
651
|
return _callSuper$1(this, IDPOAuthFlowMissingParamError, ['IDPOAuthFlowMissingParamError', details]);
|
|
@@ -4753,7 +4761,7 @@ var HeadlessOAuthClient = /*#__PURE__*/function (_HeadlessOAuthClient$) {
|
|
|
4753
4761
|
}
|
|
4754
4762
|
return _createClass2(HeadlessOAuthClient);
|
|
4755
4763
|
}(HeadlessOAuthClient$1);
|
|
4756
|
-
var version = "5.18.
|
|
4764
|
+
var version = "5.18.2";
|
|
4757
4765
|
var NetworkClient = /*#__PURE__*/function () {
|
|
4758
4766
|
function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
|
|
4759
4767
|
_classCallCheck2(this, NetworkClient);
|
|
@@ -6057,4 +6065,4 @@ var StytchHeadlessClient = /*#__PURE__*/_createClass2(function StytchHeadlessCli
|
|
|
6057
6065
|
networkClient: this._networkClient
|
|
6058
6066
|
});
|
|
6059
6067
|
});
|
|
6060
|
-
export { AuthFlowType, B2BMFAProducts, B2BOAuthProviders, B2BProducts, BiometricsFailedError, BiometricsUnavailableError, ChallengeSigningFailedError, DeviceCredentialsNotAllowedError, FailedCodeChallengeError, FailedToDecryptDataError, IDPOAuthFlowMissingParamError, InternalError, InvalidAuthorizationCredentialError, InvalidCredentialTypeError, InvalidRedirectSchemeError, InvalidStartUrlError, JSONDataNotConvertibleToStringError, KeyInvalidatedError, KeystoreUnavailableError, MissingAttestationObjectError, MissingAuthorizationCredentialIDTokenError, MissingGoogleClientIDError, MissingPKCEError, MissingPublicKeyError, MissingUrlError, NoBiometricsEnrolledError, NoBiometricsRegistrationError, NoCredentialsPresentError, NoCurrentSessionError, OAuthProviders, OTPMethods, OneTapPositions, PasskeysInvalidEncoding, PasskeysMisconfigured, PasskeysUnsupportedError, Products, RNUIProducts, RandomNumberGenerationFailed, RedirectURLType, SDKAPIUnreachableError, SDKNotConfiguredError, SignInWithAppleMisconfigured, StytchAPIError, StytchAPISchemaError, StytchAPIUnreachableError, StytchError, StytchEventType, StytchHeadlessClient, StytchSDKAPIError, StytchSDKError, StytchSDKSchemaError, StytchSDKUsageError, UNRECOVERABLE_ERROR_TYPES, UserCancellationError, UserLockedOutError, Wallets, errorToStytchError };
|
|
6068
|
+
export { AuthFlowType, B2BMFAProducts, B2BOAuthProviders, B2BProducts, BiometricsAlreadyEnrolledError, BiometricsFailedError, BiometricsUnavailableError, ChallengeSigningFailedError, DeviceCredentialsNotAllowedError, FailedCodeChallengeError, FailedToDecryptDataError, IDPOAuthFlowMissingParamError, InternalError, InvalidAuthorizationCredentialError, InvalidCredentialTypeError, InvalidRedirectSchemeError, InvalidStartUrlError, JSONDataNotConvertibleToStringError, KeyInvalidatedError, KeystoreUnavailableError, MissingAttestationObjectError, MissingAuthorizationCredentialIDTokenError, MissingGoogleClientIDError, MissingPKCEError, MissingPublicKeyError, MissingUrlError, NoBiometricsEnrolledError, NoBiometricsRegistrationError, NoCredentialsPresentError, NoCurrentSessionError, OAuthProviders, OTPMethods, OneTapPositions, PasskeysInvalidEncoding, PasskeysMisconfigured, PasskeysUnsupportedError, Products, RNUIProducts, RandomNumberGenerationFailed, RedirectURLType, SDKAPIUnreachableError, SDKNotConfiguredError, SignInWithAppleMisconfigured, StytchAPIError, StytchAPISchemaError, StytchAPIUnreachableError, StytchError, StytchEventType, StytchHeadlessClient, StytchSDKAPIError, StytchSDKError, StytchSDKSchemaError, StytchSDKUsageError, UNRECOVERABLE_ERROR_TYPES, UserCancellationError, UserLockedOutError, Wallets, errorToStytchError };
|
package/dist/index.headless.js
CHANGED
|
@@ -438,208 +438,216 @@ var NoBiometricsEnrolledError = /*#__PURE__*/function (_StytchSDKError7) {
|
|
|
438
438
|
}
|
|
439
439
|
return _createClass$1(NoBiometricsEnrolledError);
|
|
440
440
|
}(StytchSDKError);
|
|
441
|
-
var
|
|
442
|
-
_inherits$1(
|
|
441
|
+
var BiometricsAlreadyEnrolledError = /*#__PURE__*/function (_StytchSDKError8) {
|
|
442
|
+
_inherits$1(BiometricsAlreadyEnrolledError, _StytchSDKError8);
|
|
443
|
+
function BiometricsAlreadyEnrolledError() {
|
|
444
|
+
_classCallCheck$1(this, BiometricsAlreadyEnrolledError);
|
|
445
|
+
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.']);
|
|
446
|
+
}
|
|
447
|
+
return _createClass$1(BiometricsAlreadyEnrolledError);
|
|
448
|
+
}(StytchSDKError);
|
|
449
|
+
var UserCancellationError = /*#__PURE__*/function (_StytchSDKError9) {
|
|
450
|
+
_inherits$1(UserCancellationError, _StytchSDKError9);
|
|
443
451
|
function UserCancellationError() {
|
|
444
452
|
_classCallCheck$1(this, UserCancellationError);
|
|
445
453
|
return _callSuper$1(this, UserCancellationError, ['UserCancellationError', 'The user canceled the prompt. Ask the user to try again.']);
|
|
446
454
|
}
|
|
447
455
|
return _createClass$1(UserCancellationError);
|
|
448
456
|
}(StytchSDKError);
|
|
449
|
-
var UserLockedOutError = /*#__PURE__*/function (
|
|
450
|
-
_inherits$1(UserLockedOutError,
|
|
457
|
+
var UserLockedOutError = /*#__PURE__*/function (_StytchSDKError10) {
|
|
458
|
+
_inherits$1(UserLockedOutError, _StytchSDKError10);
|
|
451
459
|
function UserLockedOutError() {
|
|
452
460
|
_classCallCheck$1(this, UserLockedOutError);
|
|
453
461
|
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.']);
|
|
454
462
|
}
|
|
455
463
|
return _createClass$1(UserLockedOutError);
|
|
456
464
|
}(StytchSDKError);
|
|
457
|
-
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (
|
|
458
|
-
_inherits$1(DeviceCredentialsNotAllowedError,
|
|
465
|
+
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (_StytchSDKError11) {
|
|
466
|
+
_inherits$1(DeviceCredentialsNotAllowedError, _StytchSDKError11);
|
|
459
467
|
function DeviceCredentialsNotAllowedError() {
|
|
460
468
|
_classCallCheck$1(this, DeviceCredentialsNotAllowedError);
|
|
461
469
|
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.']);
|
|
462
470
|
}
|
|
463
471
|
return _createClass$1(DeviceCredentialsNotAllowedError);
|
|
464
472
|
}(StytchSDKError);
|
|
465
|
-
var MissingGoogleClientIDError = /*#__PURE__*/function (
|
|
466
|
-
_inherits$1(MissingGoogleClientIDError,
|
|
473
|
+
var MissingGoogleClientIDError = /*#__PURE__*/function (_StytchSDKError12) {
|
|
474
|
+
_inherits$1(MissingGoogleClientIDError, _StytchSDKError12);
|
|
467
475
|
function MissingGoogleClientIDError() {
|
|
468
476
|
_classCallCheck$1(this, MissingGoogleClientIDError);
|
|
469
477
|
return _callSuper$1(this, MissingGoogleClientIDError, ['MissingGoogleClientIDError', 'No Google client ID was found in the project.']);
|
|
470
478
|
}
|
|
471
479
|
return _createClass$1(MissingGoogleClientIDError);
|
|
472
480
|
}(StytchSDKError);
|
|
473
|
-
var MissingPKCEError = /*#__PURE__*/function (
|
|
474
|
-
_inherits$1(MissingPKCEError,
|
|
481
|
+
var MissingPKCEError = /*#__PURE__*/function (_StytchSDKError13) {
|
|
482
|
+
_inherits$1(MissingPKCEError, _StytchSDKError13);
|
|
475
483
|
function MissingPKCEError() {
|
|
476
484
|
_classCallCheck$1(this, MissingPKCEError);
|
|
477
485
|
return _callSuper$1(this, MissingPKCEError, ['MissingPKCEError', 'Make sure this flow is completed on the same device on which it was started.']);
|
|
478
486
|
}
|
|
479
487
|
return _createClass$1(MissingPKCEError);
|
|
480
488
|
}(StytchSDKError);
|
|
481
|
-
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (
|
|
482
|
-
_inherits$1(MissingAuthorizationCredentialIDTokenError,
|
|
489
|
+
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (_StytchSDKError14) {
|
|
490
|
+
_inherits$1(MissingAuthorizationCredentialIDTokenError, _StytchSDKError14);
|
|
483
491
|
function MissingAuthorizationCredentialIDTokenError() {
|
|
484
492
|
_classCallCheck$1(this, MissingAuthorizationCredentialIDTokenError);
|
|
485
493
|
return _callSuper$1(this, MissingAuthorizationCredentialIDTokenError, ['MissingAuthorizationCredentialIDTokenError', 'The authorization credential is missing an ID token.']);
|
|
486
494
|
}
|
|
487
495
|
return _createClass$1(MissingAuthorizationCredentialIDTokenError);
|
|
488
496
|
}(StytchSDKError);
|
|
489
|
-
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (
|
|
490
|
-
_inherits$1(InvalidAuthorizationCredentialError,
|
|
497
|
+
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (_StytchSDKError15) {
|
|
498
|
+
_inherits$1(InvalidAuthorizationCredentialError, _StytchSDKError15);
|
|
491
499
|
function InvalidAuthorizationCredentialError() {
|
|
492
500
|
_classCallCheck$1(this, InvalidAuthorizationCredentialError);
|
|
493
501
|
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.']);
|
|
494
502
|
}
|
|
495
503
|
return _createClass$1(InvalidAuthorizationCredentialError);
|
|
496
504
|
}(StytchSDKError);
|
|
497
|
-
var NoCredentialsPresentError = /*#__PURE__*/function (
|
|
498
|
-
_inherits$1(NoCredentialsPresentError,
|
|
505
|
+
var NoCredentialsPresentError = /*#__PURE__*/function (_StytchSDKError16) {
|
|
506
|
+
_inherits$1(NoCredentialsPresentError, _StytchSDKError16);
|
|
499
507
|
function NoCredentialsPresentError() {
|
|
500
508
|
_classCallCheck$1(this, NoCredentialsPresentError);
|
|
501
509
|
return _callSuper$1(this, NoCredentialsPresentError, ['NoCredentialsPresentError', 'The user did not provide credentials for a Google OneTap attempt']);
|
|
502
510
|
}
|
|
503
511
|
return _createClass$1(NoCredentialsPresentError);
|
|
504
512
|
}(StytchSDKError);
|
|
505
|
-
var MissingPublicKeyError = /*#__PURE__*/function (
|
|
506
|
-
_inherits$1(MissingPublicKeyError,
|
|
513
|
+
var MissingPublicKeyError = /*#__PURE__*/function (_StytchSDKError17) {
|
|
514
|
+
_inherits$1(MissingPublicKeyError, _StytchSDKError17);
|
|
507
515
|
function MissingPublicKeyError() {
|
|
508
516
|
_classCallCheck$1(this, MissingPublicKeyError);
|
|
509
517
|
return _callSuper$1(this, MissingPublicKeyError, ['MissingPublicKeyError', 'Failed to retrieve the public key. Add a new biometric registration.']);
|
|
510
518
|
}
|
|
511
519
|
return _createClass$1(MissingPublicKeyError);
|
|
512
520
|
}(StytchSDKError);
|
|
513
|
-
var ChallengeSigningFailedError = /*#__PURE__*/function (
|
|
514
|
-
_inherits$1(ChallengeSigningFailedError,
|
|
521
|
+
var ChallengeSigningFailedError = /*#__PURE__*/function (_StytchSDKError18) {
|
|
522
|
+
_inherits$1(ChallengeSigningFailedError, _StytchSDKError18);
|
|
515
523
|
function ChallengeSigningFailedError() {
|
|
516
524
|
_classCallCheck$1(this, ChallengeSigningFailedError);
|
|
517
525
|
return _callSuper$1(this, ChallengeSigningFailedError, ['ChallengeSigningFailedError', 'Failed to sign the challenge with the key.']);
|
|
518
526
|
}
|
|
519
527
|
return _createClass$1(ChallengeSigningFailedError);
|
|
520
528
|
}(StytchSDKError);
|
|
521
|
-
var SDKNotConfiguredError = /*#__PURE__*/function (
|
|
522
|
-
_inherits$1(SDKNotConfiguredError,
|
|
529
|
+
var SDKNotConfiguredError = /*#__PURE__*/function (_StytchSDKError19) {
|
|
530
|
+
_inherits$1(SDKNotConfiguredError, _StytchSDKError19);
|
|
523
531
|
function SDKNotConfiguredError() {
|
|
524
532
|
_classCallCheck$1(this, SDKNotConfiguredError);
|
|
525
533
|
return _callSuper$1(this, SDKNotConfiguredError, ['SDKNotConfiguredError', 'Stytch client is not confiured. You must call the configure method before using the SDK']);
|
|
526
534
|
}
|
|
527
535
|
return _createClass$1(SDKNotConfiguredError);
|
|
528
536
|
}(StytchSDKError);
|
|
529
|
-
var FailedCodeChallengeError = /*#__PURE__*/function (
|
|
530
|
-
_inherits$1(FailedCodeChallengeError,
|
|
537
|
+
var FailedCodeChallengeError = /*#__PURE__*/function (_StytchSDKError20) {
|
|
538
|
+
_inherits$1(FailedCodeChallengeError, _StytchSDKError20);
|
|
531
539
|
function FailedCodeChallengeError() {
|
|
532
540
|
_classCallCheck$1(this, FailedCodeChallengeError);
|
|
533
541
|
return _callSuper$1(this, FailedCodeChallengeError, ['FailedCodeChallengeError', 'Failed to create a code challenge']);
|
|
534
542
|
}
|
|
535
543
|
return _createClass$1(FailedCodeChallengeError);
|
|
536
544
|
}(StytchSDKError);
|
|
537
|
-
var PasskeysUnsupportedError = /*#__PURE__*/function (
|
|
538
|
-
_inherits$1(PasskeysUnsupportedError,
|
|
545
|
+
var PasskeysUnsupportedError = /*#__PURE__*/function (_StytchSDKError21) {
|
|
546
|
+
_inherits$1(PasskeysUnsupportedError, _StytchSDKError21);
|
|
539
547
|
function PasskeysUnsupportedError() {
|
|
540
548
|
_classCallCheck$1(this, PasskeysUnsupportedError);
|
|
541
549
|
return _callSuper$1(this, PasskeysUnsupportedError, ['PasskeysUnsupportedError', 'Passkeys are not supported on this device']);
|
|
542
550
|
}
|
|
543
551
|
return _createClass$1(PasskeysUnsupportedError);
|
|
544
552
|
}(StytchSDKError);
|
|
545
|
-
var FailedToDecryptDataError = /*#__PURE__*/function (
|
|
546
|
-
_inherits$1(FailedToDecryptDataError,
|
|
553
|
+
var FailedToDecryptDataError = /*#__PURE__*/function (_StytchSDKError22) {
|
|
554
|
+
_inherits$1(FailedToDecryptDataError, _StytchSDKError22);
|
|
547
555
|
function FailedToDecryptDataError() {
|
|
548
556
|
_classCallCheck$1(this, FailedToDecryptDataError);
|
|
549
557
|
return _callSuper$1(this, FailedToDecryptDataError, ['FailedToDecryptDataError', 'Failed to decrypt user data']);
|
|
550
558
|
}
|
|
551
559
|
return _createClass$1(FailedToDecryptDataError);
|
|
552
560
|
}(StytchSDKError);
|
|
553
|
-
var BiometricsFailedError = /*#__PURE__*/function (
|
|
554
|
-
_inherits$1(BiometricsFailedError,
|
|
561
|
+
var BiometricsFailedError = /*#__PURE__*/function (_StytchSDKError23) {
|
|
562
|
+
_inherits$1(BiometricsFailedError, _StytchSDKError23);
|
|
555
563
|
function BiometricsFailedError() {
|
|
556
564
|
_classCallCheck$1(this, BiometricsFailedError);
|
|
557
565
|
return _callSuper$1(this, BiometricsFailedError, ['BiometricsFailedError', 'Biometric authentication failed']);
|
|
558
566
|
}
|
|
559
567
|
return _createClass$1(BiometricsFailedError);
|
|
560
568
|
}(StytchSDKError);
|
|
561
|
-
var InvalidStartUrlError = /*#__PURE__*/function (
|
|
562
|
-
_inherits$1(InvalidStartUrlError,
|
|
569
|
+
var InvalidStartUrlError = /*#__PURE__*/function (_StytchSDKError24) {
|
|
570
|
+
_inherits$1(InvalidStartUrlError, _StytchSDKError24);
|
|
563
571
|
function InvalidStartUrlError() {
|
|
564
572
|
_classCallCheck$1(this, InvalidStartUrlError);
|
|
565
573
|
return _callSuper$1(this, InvalidStartUrlError, ['InvalidStartUrlError', 'The start URL was invalid or improperly formatted.']);
|
|
566
574
|
}
|
|
567
575
|
return _createClass$1(InvalidStartUrlError);
|
|
568
576
|
}(StytchSDKError);
|
|
569
|
-
var InvalidRedirectSchemeError = /*#__PURE__*/function (
|
|
570
|
-
_inherits$1(InvalidRedirectSchemeError,
|
|
577
|
+
var InvalidRedirectSchemeError = /*#__PURE__*/function (_StytchSDKError25) {
|
|
578
|
+
_inherits$1(InvalidRedirectSchemeError, _StytchSDKError25);
|
|
571
579
|
function InvalidRedirectSchemeError() {
|
|
572
580
|
_classCallCheck$1(this, InvalidRedirectSchemeError);
|
|
573
581
|
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.']);
|
|
574
582
|
}
|
|
575
583
|
return _createClass$1(InvalidRedirectSchemeError);
|
|
576
584
|
}(StytchSDKError);
|
|
577
|
-
var MissingUrlError = /*#__PURE__*/function (
|
|
578
|
-
_inherits$1(MissingUrlError,
|
|
585
|
+
var MissingUrlError = /*#__PURE__*/function (_StytchSDKError26) {
|
|
586
|
+
_inherits$1(MissingUrlError, _StytchSDKError26);
|
|
579
587
|
function MissingUrlError() {
|
|
580
588
|
_classCallCheck$1(this, MissingUrlError);
|
|
581
589
|
return _callSuper$1(this, MissingUrlError, ['MissingUrlError', 'The underlying web authentication service failed to return a URL.']);
|
|
582
590
|
}
|
|
583
591
|
return _createClass$1(MissingUrlError);
|
|
584
592
|
}(StytchSDKError);
|
|
585
|
-
var InvalidCredentialTypeError = /*#__PURE__*/function (
|
|
586
|
-
_inherits$1(InvalidCredentialTypeError,
|
|
593
|
+
var InvalidCredentialTypeError = /*#__PURE__*/function (_StytchSDKError27) {
|
|
594
|
+
_inherits$1(InvalidCredentialTypeError, _StytchSDKError27);
|
|
587
595
|
function InvalidCredentialTypeError() {
|
|
588
596
|
_classCallCheck$1(this, InvalidCredentialTypeError);
|
|
589
597
|
return _callSuper$1(this, InvalidCredentialTypeError, ['InvalidCredentialTypeError', 'The public key credential type was not of the expected type.']);
|
|
590
598
|
}
|
|
591
599
|
return _createClass$1(InvalidCredentialTypeError);
|
|
592
600
|
}(StytchSDKError);
|
|
593
|
-
var MissingAttestationObjectError = /*#__PURE__*/function (
|
|
594
|
-
_inherits$1(MissingAttestationObjectError,
|
|
601
|
+
var MissingAttestationObjectError = /*#__PURE__*/function (_StytchSDKError28) {
|
|
602
|
+
_inherits$1(MissingAttestationObjectError, _StytchSDKError28);
|
|
595
603
|
function MissingAttestationObjectError() {
|
|
596
604
|
_classCallCheck$1(this, MissingAttestationObjectError);
|
|
597
605
|
return _callSuper$1(this, MissingAttestationObjectError, ['MissingAttestationObjectError', 'The public key credential is missing the attestation object.']);
|
|
598
606
|
}
|
|
599
607
|
return _createClass$1(MissingAttestationObjectError);
|
|
600
608
|
}(StytchSDKError);
|
|
601
|
-
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (
|
|
602
|
-
_inherits$1(JSONDataNotConvertibleToStringError,
|
|
609
|
+
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (_StytchSDKError29) {
|
|
610
|
+
_inherits$1(JSONDataNotConvertibleToStringError, _StytchSDKError29);
|
|
603
611
|
function JSONDataNotConvertibleToStringError() {
|
|
604
612
|
_classCallCheck$1(this, JSONDataNotConvertibleToStringError);
|
|
605
613
|
return _callSuper$1(this, JSONDataNotConvertibleToStringError, ['JSONDataNotConvertibleToStringError', 'JSON data unable to be converted to String type.']);
|
|
606
614
|
}
|
|
607
615
|
return _createClass$1(JSONDataNotConvertibleToStringError);
|
|
608
616
|
}(StytchSDKError);
|
|
609
|
-
var RandomNumberGenerationFailed = /*#__PURE__*/function (
|
|
610
|
-
_inherits$1(RandomNumberGenerationFailed,
|
|
617
|
+
var RandomNumberGenerationFailed = /*#__PURE__*/function (_StytchSDKError30) {
|
|
618
|
+
_inherits$1(RandomNumberGenerationFailed, _StytchSDKError30);
|
|
611
619
|
function RandomNumberGenerationFailed() {
|
|
612
620
|
_classCallCheck$1(this, RandomNumberGenerationFailed);
|
|
613
621
|
return _callSuper$1(this, RandomNumberGenerationFailed, ['RandomNumberGenerationFailed', 'Random number generation failed']);
|
|
614
622
|
}
|
|
615
623
|
return _createClass$1(RandomNumberGenerationFailed);
|
|
616
624
|
}(StytchSDKError);
|
|
617
|
-
var PasskeysInvalidEncoding = /*#__PURE__*/function (
|
|
618
|
-
_inherits$1(PasskeysInvalidEncoding,
|
|
625
|
+
var PasskeysInvalidEncoding = /*#__PURE__*/function (_StytchSDKError31) {
|
|
626
|
+
_inherits$1(PasskeysInvalidEncoding, _StytchSDKError31);
|
|
619
627
|
function PasskeysInvalidEncoding() {
|
|
620
628
|
_classCallCheck$1(this, PasskeysInvalidEncoding);
|
|
621
629
|
return _callSuper$1(this, PasskeysInvalidEncoding, ['PasskeysInvalidEncoding', 'Invalid passkey encoding']);
|
|
622
630
|
}
|
|
623
631
|
return _createClass$1(PasskeysInvalidEncoding);
|
|
624
632
|
}(StytchSDKError);
|
|
625
|
-
var PasskeysMisconfigured = /*#__PURE__*/function (
|
|
626
|
-
_inherits$1(PasskeysMisconfigured,
|
|
633
|
+
var PasskeysMisconfigured = /*#__PURE__*/function (_StytchSDKError32) {
|
|
634
|
+
_inherits$1(PasskeysMisconfigured, _StytchSDKError32);
|
|
627
635
|
function PasskeysMisconfigured() {
|
|
628
636
|
_classCallCheck$1(this, PasskeysMisconfigured);
|
|
629
637
|
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.']);
|
|
630
638
|
}
|
|
631
639
|
return _createClass$1(PasskeysMisconfigured);
|
|
632
640
|
}(StytchSDKError);
|
|
633
|
-
var SignInWithAppleMisconfigured = /*#__PURE__*/function (
|
|
634
|
-
_inherits$1(SignInWithAppleMisconfigured,
|
|
641
|
+
var SignInWithAppleMisconfigured = /*#__PURE__*/function (_StytchSDKError33) {
|
|
642
|
+
_inherits$1(SignInWithAppleMisconfigured, _StytchSDKError33);
|
|
635
643
|
function SignInWithAppleMisconfigured() {
|
|
636
644
|
_classCallCheck$1(this, SignInWithAppleMisconfigured);
|
|
637
645
|
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.']);
|
|
638
646
|
}
|
|
639
647
|
return _createClass$1(SignInWithAppleMisconfigured);
|
|
640
648
|
}(StytchSDKError);
|
|
641
|
-
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (
|
|
642
|
-
_inherits$1(IDPOAuthFlowMissingParamError,
|
|
649
|
+
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (_StytchSDKError34) {
|
|
650
|
+
_inherits$1(IDPOAuthFlowMissingParamError, _StytchSDKError34);
|
|
643
651
|
function IDPOAuthFlowMissingParamError(details) {
|
|
644
652
|
_classCallCheck$1(this, IDPOAuthFlowMissingParamError);
|
|
645
653
|
return _callSuper$1(this, IDPOAuthFlowMissingParamError, ['IDPOAuthFlowMissingParamError', details]);
|
|
@@ -4755,7 +4763,7 @@ var HeadlessOAuthClient = /*#__PURE__*/function (_HeadlessOAuthClient$) {
|
|
|
4755
4763
|
}
|
|
4756
4764
|
return _createClass2(HeadlessOAuthClient);
|
|
4757
4765
|
}(HeadlessOAuthClient$1);
|
|
4758
|
-
var version = "5.18.
|
|
4766
|
+
var version = "5.18.2";
|
|
4759
4767
|
var NetworkClient = /*#__PURE__*/function () {
|
|
4760
4768
|
function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
|
|
4761
4769
|
_classCallCheck2(this, NetworkClient);
|
|
@@ -6059,6 +6067,7 @@ var StytchHeadlessClient = /*#__PURE__*/_createClass2(function StytchHeadlessCli
|
|
|
6059
6067
|
networkClient: this._networkClient
|
|
6060
6068
|
});
|
|
6061
6069
|
});
|
|
6070
|
+
exports.BiometricsAlreadyEnrolledError = BiometricsAlreadyEnrolledError;
|
|
6062
6071
|
exports.BiometricsFailedError = BiometricsFailedError;
|
|
6063
6072
|
exports.BiometricsUnavailableError = BiometricsUnavailableError;
|
|
6064
6073
|
exports.ChallengeSigningFailedError = ChallengeSigningFailedError;
|