@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
|
@@ -421,208 +421,216 @@ var NoBiometricsEnrolledError = /*#__PURE__*/function (_StytchSDKError7) {
|
|
|
421
421
|
}
|
|
422
422
|
return _createClass$1(NoBiometricsEnrolledError);
|
|
423
423
|
}(StytchSDKError);
|
|
424
|
-
var
|
|
425
|
-
_inherits$1(
|
|
424
|
+
var BiometricsAlreadyEnrolledError = /*#__PURE__*/function (_StytchSDKError8) {
|
|
425
|
+
_inherits$1(BiometricsAlreadyEnrolledError, _StytchSDKError8);
|
|
426
|
+
function BiometricsAlreadyEnrolledError() {
|
|
427
|
+
_classCallCheck$1(this, BiometricsAlreadyEnrolledError);
|
|
428
|
+
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.']);
|
|
429
|
+
}
|
|
430
|
+
return _createClass$1(BiometricsAlreadyEnrolledError);
|
|
431
|
+
}(StytchSDKError);
|
|
432
|
+
var UserCancellationError = /*#__PURE__*/function (_StytchSDKError9) {
|
|
433
|
+
_inherits$1(UserCancellationError, _StytchSDKError9);
|
|
426
434
|
function UserCancellationError() {
|
|
427
435
|
_classCallCheck$1(this, UserCancellationError);
|
|
428
436
|
return _callSuper$1(this, UserCancellationError, ['UserCancellationError', 'The user canceled the prompt. Ask the user to try again.']);
|
|
429
437
|
}
|
|
430
438
|
return _createClass$1(UserCancellationError);
|
|
431
439
|
}(StytchSDKError);
|
|
432
|
-
var UserLockedOutError = /*#__PURE__*/function (
|
|
433
|
-
_inherits$1(UserLockedOutError,
|
|
440
|
+
var UserLockedOutError = /*#__PURE__*/function (_StytchSDKError10) {
|
|
441
|
+
_inherits$1(UserLockedOutError, _StytchSDKError10);
|
|
434
442
|
function UserLockedOutError() {
|
|
435
443
|
_classCallCheck$1(this, UserLockedOutError);
|
|
436
444
|
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.']);
|
|
437
445
|
}
|
|
438
446
|
return _createClass$1(UserLockedOutError);
|
|
439
447
|
}(StytchSDKError);
|
|
440
|
-
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (
|
|
441
|
-
_inherits$1(DeviceCredentialsNotAllowedError,
|
|
448
|
+
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (_StytchSDKError11) {
|
|
449
|
+
_inherits$1(DeviceCredentialsNotAllowedError, _StytchSDKError11);
|
|
442
450
|
function DeviceCredentialsNotAllowedError() {
|
|
443
451
|
_classCallCheck$1(this, DeviceCredentialsNotAllowedError);
|
|
444
452
|
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.']);
|
|
445
453
|
}
|
|
446
454
|
return _createClass$1(DeviceCredentialsNotAllowedError);
|
|
447
455
|
}(StytchSDKError);
|
|
448
|
-
var MissingGoogleClientIDError = /*#__PURE__*/function (
|
|
449
|
-
_inherits$1(MissingGoogleClientIDError,
|
|
456
|
+
var MissingGoogleClientIDError = /*#__PURE__*/function (_StytchSDKError12) {
|
|
457
|
+
_inherits$1(MissingGoogleClientIDError, _StytchSDKError12);
|
|
450
458
|
function MissingGoogleClientIDError() {
|
|
451
459
|
_classCallCheck$1(this, MissingGoogleClientIDError);
|
|
452
460
|
return _callSuper$1(this, MissingGoogleClientIDError, ['MissingGoogleClientIDError', 'No Google client ID was found in the project.']);
|
|
453
461
|
}
|
|
454
462
|
return _createClass$1(MissingGoogleClientIDError);
|
|
455
463
|
}(StytchSDKError);
|
|
456
|
-
var MissingPKCEError = /*#__PURE__*/function (
|
|
457
|
-
_inherits$1(MissingPKCEError,
|
|
464
|
+
var MissingPKCEError = /*#__PURE__*/function (_StytchSDKError13) {
|
|
465
|
+
_inherits$1(MissingPKCEError, _StytchSDKError13);
|
|
458
466
|
function MissingPKCEError() {
|
|
459
467
|
_classCallCheck$1(this, MissingPKCEError);
|
|
460
468
|
return _callSuper$1(this, MissingPKCEError, ['MissingPKCEError', 'Make sure this flow is completed on the same device on which it was started.']);
|
|
461
469
|
}
|
|
462
470
|
return _createClass$1(MissingPKCEError);
|
|
463
471
|
}(StytchSDKError);
|
|
464
|
-
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (
|
|
465
|
-
_inherits$1(MissingAuthorizationCredentialIDTokenError,
|
|
472
|
+
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (_StytchSDKError14) {
|
|
473
|
+
_inherits$1(MissingAuthorizationCredentialIDTokenError, _StytchSDKError14);
|
|
466
474
|
function MissingAuthorizationCredentialIDTokenError() {
|
|
467
475
|
_classCallCheck$1(this, MissingAuthorizationCredentialIDTokenError);
|
|
468
476
|
return _callSuper$1(this, MissingAuthorizationCredentialIDTokenError, ['MissingAuthorizationCredentialIDTokenError', 'The authorization credential is missing an ID token.']);
|
|
469
477
|
}
|
|
470
478
|
return _createClass$1(MissingAuthorizationCredentialIDTokenError);
|
|
471
479
|
}(StytchSDKError);
|
|
472
|
-
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (
|
|
473
|
-
_inherits$1(InvalidAuthorizationCredentialError,
|
|
480
|
+
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (_StytchSDKError15) {
|
|
481
|
+
_inherits$1(InvalidAuthorizationCredentialError, _StytchSDKError15);
|
|
474
482
|
function InvalidAuthorizationCredentialError() {
|
|
475
483
|
_classCallCheck$1(this, InvalidAuthorizationCredentialError);
|
|
476
484
|
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.']);
|
|
477
485
|
}
|
|
478
486
|
return _createClass$1(InvalidAuthorizationCredentialError);
|
|
479
487
|
}(StytchSDKError);
|
|
480
|
-
var NoCredentialsPresentError = /*#__PURE__*/function (
|
|
481
|
-
_inherits$1(NoCredentialsPresentError,
|
|
488
|
+
var NoCredentialsPresentError = /*#__PURE__*/function (_StytchSDKError16) {
|
|
489
|
+
_inherits$1(NoCredentialsPresentError, _StytchSDKError16);
|
|
482
490
|
function NoCredentialsPresentError() {
|
|
483
491
|
_classCallCheck$1(this, NoCredentialsPresentError);
|
|
484
492
|
return _callSuper$1(this, NoCredentialsPresentError, ['NoCredentialsPresentError', 'The user did not provide credentials for a Google OneTap attempt']);
|
|
485
493
|
}
|
|
486
494
|
return _createClass$1(NoCredentialsPresentError);
|
|
487
495
|
}(StytchSDKError);
|
|
488
|
-
var MissingPublicKeyError = /*#__PURE__*/function (
|
|
489
|
-
_inherits$1(MissingPublicKeyError,
|
|
496
|
+
var MissingPublicKeyError = /*#__PURE__*/function (_StytchSDKError17) {
|
|
497
|
+
_inherits$1(MissingPublicKeyError, _StytchSDKError17);
|
|
490
498
|
function MissingPublicKeyError() {
|
|
491
499
|
_classCallCheck$1(this, MissingPublicKeyError);
|
|
492
500
|
return _callSuper$1(this, MissingPublicKeyError, ['MissingPublicKeyError', 'Failed to retrieve the public key. Add a new biometric registration.']);
|
|
493
501
|
}
|
|
494
502
|
return _createClass$1(MissingPublicKeyError);
|
|
495
503
|
}(StytchSDKError);
|
|
496
|
-
var ChallengeSigningFailedError = /*#__PURE__*/function (
|
|
497
|
-
_inherits$1(ChallengeSigningFailedError,
|
|
504
|
+
var ChallengeSigningFailedError = /*#__PURE__*/function (_StytchSDKError18) {
|
|
505
|
+
_inherits$1(ChallengeSigningFailedError, _StytchSDKError18);
|
|
498
506
|
function ChallengeSigningFailedError() {
|
|
499
507
|
_classCallCheck$1(this, ChallengeSigningFailedError);
|
|
500
508
|
return _callSuper$1(this, ChallengeSigningFailedError, ['ChallengeSigningFailedError', 'Failed to sign the challenge with the key.']);
|
|
501
509
|
}
|
|
502
510
|
return _createClass$1(ChallengeSigningFailedError);
|
|
503
511
|
}(StytchSDKError);
|
|
504
|
-
var SDKNotConfiguredError = /*#__PURE__*/function (
|
|
505
|
-
_inherits$1(SDKNotConfiguredError,
|
|
512
|
+
var SDKNotConfiguredError = /*#__PURE__*/function (_StytchSDKError19) {
|
|
513
|
+
_inherits$1(SDKNotConfiguredError, _StytchSDKError19);
|
|
506
514
|
function SDKNotConfiguredError() {
|
|
507
515
|
_classCallCheck$1(this, SDKNotConfiguredError);
|
|
508
516
|
return _callSuper$1(this, SDKNotConfiguredError, ['SDKNotConfiguredError', 'Stytch client is not confiured. You must call the configure method before using the SDK']);
|
|
509
517
|
}
|
|
510
518
|
return _createClass$1(SDKNotConfiguredError);
|
|
511
519
|
}(StytchSDKError);
|
|
512
|
-
var FailedCodeChallengeError = /*#__PURE__*/function (
|
|
513
|
-
_inherits$1(FailedCodeChallengeError,
|
|
520
|
+
var FailedCodeChallengeError = /*#__PURE__*/function (_StytchSDKError20) {
|
|
521
|
+
_inherits$1(FailedCodeChallengeError, _StytchSDKError20);
|
|
514
522
|
function FailedCodeChallengeError() {
|
|
515
523
|
_classCallCheck$1(this, FailedCodeChallengeError);
|
|
516
524
|
return _callSuper$1(this, FailedCodeChallengeError, ['FailedCodeChallengeError', 'Failed to create a code challenge']);
|
|
517
525
|
}
|
|
518
526
|
return _createClass$1(FailedCodeChallengeError);
|
|
519
527
|
}(StytchSDKError);
|
|
520
|
-
var PasskeysUnsupportedError = /*#__PURE__*/function (
|
|
521
|
-
_inherits$1(PasskeysUnsupportedError,
|
|
528
|
+
var PasskeysUnsupportedError = /*#__PURE__*/function (_StytchSDKError21) {
|
|
529
|
+
_inherits$1(PasskeysUnsupportedError, _StytchSDKError21);
|
|
522
530
|
function PasskeysUnsupportedError() {
|
|
523
531
|
_classCallCheck$1(this, PasskeysUnsupportedError);
|
|
524
532
|
return _callSuper$1(this, PasskeysUnsupportedError, ['PasskeysUnsupportedError', 'Passkeys are not supported on this device']);
|
|
525
533
|
}
|
|
526
534
|
return _createClass$1(PasskeysUnsupportedError);
|
|
527
535
|
}(StytchSDKError);
|
|
528
|
-
var FailedToDecryptDataError = /*#__PURE__*/function (
|
|
529
|
-
_inherits$1(FailedToDecryptDataError,
|
|
536
|
+
var FailedToDecryptDataError = /*#__PURE__*/function (_StytchSDKError22) {
|
|
537
|
+
_inherits$1(FailedToDecryptDataError, _StytchSDKError22);
|
|
530
538
|
function FailedToDecryptDataError() {
|
|
531
539
|
_classCallCheck$1(this, FailedToDecryptDataError);
|
|
532
540
|
return _callSuper$1(this, FailedToDecryptDataError, ['FailedToDecryptDataError', 'Failed to decrypt user data']);
|
|
533
541
|
}
|
|
534
542
|
return _createClass$1(FailedToDecryptDataError);
|
|
535
543
|
}(StytchSDKError);
|
|
536
|
-
var BiometricsFailedError = /*#__PURE__*/function (
|
|
537
|
-
_inherits$1(BiometricsFailedError,
|
|
544
|
+
var BiometricsFailedError = /*#__PURE__*/function (_StytchSDKError23) {
|
|
545
|
+
_inherits$1(BiometricsFailedError, _StytchSDKError23);
|
|
538
546
|
function BiometricsFailedError() {
|
|
539
547
|
_classCallCheck$1(this, BiometricsFailedError);
|
|
540
548
|
return _callSuper$1(this, BiometricsFailedError, ['BiometricsFailedError', 'Biometric authentication failed']);
|
|
541
549
|
}
|
|
542
550
|
return _createClass$1(BiometricsFailedError);
|
|
543
551
|
}(StytchSDKError);
|
|
544
|
-
var InvalidStartUrlError = /*#__PURE__*/function (
|
|
545
|
-
_inherits$1(InvalidStartUrlError,
|
|
552
|
+
var InvalidStartUrlError = /*#__PURE__*/function (_StytchSDKError24) {
|
|
553
|
+
_inherits$1(InvalidStartUrlError, _StytchSDKError24);
|
|
546
554
|
function InvalidStartUrlError() {
|
|
547
555
|
_classCallCheck$1(this, InvalidStartUrlError);
|
|
548
556
|
return _callSuper$1(this, InvalidStartUrlError, ['InvalidStartUrlError', 'The start URL was invalid or improperly formatted.']);
|
|
549
557
|
}
|
|
550
558
|
return _createClass$1(InvalidStartUrlError);
|
|
551
559
|
}(StytchSDKError);
|
|
552
|
-
var InvalidRedirectSchemeError = /*#__PURE__*/function (
|
|
553
|
-
_inherits$1(InvalidRedirectSchemeError,
|
|
560
|
+
var InvalidRedirectSchemeError = /*#__PURE__*/function (_StytchSDKError25) {
|
|
561
|
+
_inherits$1(InvalidRedirectSchemeError, _StytchSDKError25);
|
|
554
562
|
function InvalidRedirectSchemeError() {
|
|
555
563
|
_classCallCheck$1(this, InvalidRedirectSchemeError);
|
|
556
564
|
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.']);
|
|
557
565
|
}
|
|
558
566
|
return _createClass$1(InvalidRedirectSchemeError);
|
|
559
567
|
}(StytchSDKError);
|
|
560
|
-
var MissingUrlError = /*#__PURE__*/function (
|
|
561
|
-
_inherits$1(MissingUrlError,
|
|
568
|
+
var MissingUrlError = /*#__PURE__*/function (_StytchSDKError26) {
|
|
569
|
+
_inherits$1(MissingUrlError, _StytchSDKError26);
|
|
562
570
|
function MissingUrlError() {
|
|
563
571
|
_classCallCheck$1(this, MissingUrlError);
|
|
564
572
|
return _callSuper$1(this, MissingUrlError, ['MissingUrlError', 'The underlying web authentication service failed to return a URL.']);
|
|
565
573
|
}
|
|
566
574
|
return _createClass$1(MissingUrlError);
|
|
567
575
|
}(StytchSDKError);
|
|
568
|
-
var InvalidCredentialTypeError = /*#__PURE__*/function (
|
|
569
|
-
_inherits$1(InvalidCredentialTypeError,
|
|
576
|
+
var InvalidCredentialTypeError = /*#__PURE__*/function (_StytchSDKError27) {
|
|
577
|
+
_inherits$1(InvalidCredentialTypeError, _StytchSDKError27);
|
|
570
578
|
function InvalidCredentialTypeError() {
|
|
571
579
|
_classCallCheck$1(this, InvalidCredentialTypeError);
|
|
572
580
|
return _callSuper$1(this, InvalidCredentialTypeError, ['InvalidCredentialTypeError', 'The public key credential type was not of the expected type.']);
|
|
573
581
|
}
|
|
574
582
|
return _createClass$1(InvalidCredentialTypeError);
|
|
575
583
|
}(StytchSDKError);
|
|
576
|
-
var MissingAttestationObjectError = /*#__PURE__*/function (
|
|
577
|
-
_inherits$1(MissingAttestationObjectError,
|
|
584
|
+
var MissingAttestationObjectError = /*#__PURE__*/function (_StytchSDKError28) {
|
|
585
|
+
_inherits$1(MissingAttestationObjectError, _StytchSDKError28);
|
|
578
586
|
function MissingAttestationObjectError() {
|
|
579
587
|
_classCallCheck$1(this, MissingAttestationObjectError);
|
|
580
588
|
return _callSuper$1(this, MissingAttestationObjectError, ['MissingAttestationObjectError', 'The public key credential is missing the attestation object.']);
|
|
581
589
|
}
|
|
582
590
|
return _createClass$1(MissingAttestationObjectError);
|
|
583
591
|
}(StytchSDKError);
|
|
584
|
-
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (
|
|
585
|
-
_inherits$1(JSONDataNotConvertibleToStringError,
|
|
592
|
+
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (_StytchSDKError29) {
|
|
593
|
+
_inherits$1(JSONDataNotConvertibleToStringError, _StytchSDKError29);
|
|
586
594
|
function JSONDataNotConvertibleToStringError() {
|
|
587
595
|
_classCallCheck$1(this, JSONDataNotConvertibleToStringError);
|
|
588
596
|
return _callSuper$1(this, JSONDataNotConvertibleToStringError, ['JSONDataNotConvertibleToStringError', 'JSON data unable to be converted to String type.']);
|
|
589
597
|
}
|
|
590
598
|
return _createClass$1(JSONDataNotConvertibleToStringError);
|
|
591
599
|
}(StytchSDKError);
|
|
592
|
-
var RandomNumberGenerationFailed = /*#__PURE__*/function (
|
|
593
|
-
_inherits$1(RandomNumberGenerationFailed,
|
|
600
|
+
var RandomNumberGenerationFailed = /*#__PURE__*/function (_StytchSDKError30) {
|
|
601
|
+
_inherits$1(RandomNumberGenerationFailed, _StytchSDKError30);
|
|
594
602
|
function RandomNumberGenerationFailed() {
|
|
595
603
|
_classCallCheck$1(this, RandomNumberGenerationFailed);
|
|
596
604
|
return _callSuper$1(this, RandomNumberGenerationFailed, ['RandomNumberGenerationFailed', 'Random number generation failed']);
|
|
597
605
|
}
|
|
598
606
|
return _createClass$1(RandomNumberGenerationFailed);
|
|
599
607
|
}(StytchSDKError);
|
|
600
|
-
var PasskeysInvalidEncoding = /*#__PURE__*/function (
|
|
601
|
-
_inherits$1(PasskeysInvalidEncoding,
|
|
608
|
+
var PasskeysInvalidEncoding = /*#__PURE__*/function (_StytchSDKError31) {
|
|
609
|
+
_inherits$1(PasskeysInvalidEncoding, _StytchSDKError31);
|
|
602
610
|
function PasskeysInvalidEncoding() {
|
|
603
611
|
_classCallCheck$1(this, PasskeysInvalidEncoding);
|
|
604
612
|
return _callSuper$1(this, PasskeysInvalidEncoding, ['PasskeysInvalidEncoding', 'Invalid passkey encoding']);
|
|
605
613
|
}
|
|
606
614
|
return _createClass$1(PasskeysInvalidEncoding);
|
|
607
615
|
}(StytchSDKError);
|
|
608
|
-
var PasskeysMisconfigured = /*#__PURE__*/function (
|
|
609
|
-
_inherits$1(PasskeysMisconfigured,
|
|
616
|
+
var PasskeysMisconfigured = /*#__PURE__*/function (_StytchSDKError32) {
|
|
617
|
+
_inherits$1(PasskeysMisconfigured, _StytchSDKError32);
|
|
610
618
|
function PasskeysMisconfigured() {
|
|
611
619
|
_classCallCheck$1(this, PasskeysMisconfigured);
|
|
612
620
|
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.']);
|
|
613
621
|
}
|
|
614
622
|
return _createClass$1(PasskeysMisconfigured);
|
|
615
623
|
}(StytchSDKError);
|
|
616
|
-
var SignInWithAppleMisconfigured = /*#__PURE__*/function (
|
|
617
|
-
_inherits$1(SignInWithAppleMisconfigured,
|
|
624
|
+
var SignInWithAppleMisconfigured = /*#__PURE__*/function (_StytchSDKError33) {
|
|
625
|
+
_inherits$1(SignInWithAppleMisconfigured, _StytchSDKError33);
|
|
618
626
|
function SignInWithAppleMisconfigured() {
|
|
619
627
|
_classCallCheck$1(this, SignInWithAppleMisconfigured);
|
|
620
628
|
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.']);
|
|
621
629
|
}
|
|
622
630
|
return _createClass$1(SignInWithAppleMisconfigured);
|
|
623
631
|
}(StytchSDKError);
|
|
624
|
-
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (
|
|
625
|
-
_inherits$1(IDPOAuthFlowMissingParamError,
|
|
632
|
+
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (_StytchSDKError34) {
|
|
633
|
+
_inherits$1(IDPOAuthFlowMissingParamError, _StytchSDKError34);
|
|
626
634
|
function IDPOAuthFlowMissingParamError(details) {
|
|
627
635
|
_classCallCheck$1(this, IDPOAuthFlowMissingParamError);
|
|
628
636
|
return _callSuper$1(this, IDPOAuthFlowMissingParamError, ['IDPOAuthFlowMissingParamError', details]);
|
|
@@ -5676,4 +5684,4 @@ var readB2BInternals = function readB2BInternals(obj) {
|
|
|
5676
5684
|
}
|
|
5677
5685
|
return casted[internalSymB2B];
|
|
5678
5686
|
};
|
|
5679
|
-
export {
|
|
5687
|
+
export { RandomNumberGenerationFailed as $, AuthFlowType as A, B2BMFAProducts as B, COUNTRIES_LIST as C, DEFAULT_SESSION_DURATION_MINUTES as D, EMAIL_REGEX as E, FailedCodeChallengeError as F, MissingPKCEError as G, MissingPublicKeyError as H, IDPOAuthFlowMissingParamError as I, JSONDataNotConvertibleToStringError as J, KeyInvalidatedError as K, MissingUrlError as L, MissingAttestationObjectError as M, NoCurrentSessionError as N, OAuthProviders as O, Products as P, NoBiometricsEnrolledError as Q, RedirectURLType as R, StytchEventType as S, NoBiometricsRegistrationError as T, NoCredentialsPresentError as U, PasskeysInvalidEncoding as V, Wallets as W, PasskeysMisconfigured as X, PasskeysUnsupportedError as Y, RNUIProducts as Z, __rest as _, B2BProducts as a, SDKAPIUnreachableError as a0, SDKNotConfiguredError as a1, SignInWithAppleMisconfigured as a2, StytchAPISchemaError as a3, StytchAPIUnreachableError as a4, StytchError as a5, StytchSDKAPIError as a6, StytchSDKSchemaError as a7, StytchSDKUsageError as a8, UNRECOVERABLE_ERROR_TYPES as a9, DFPProtectedAuthProvider as aA, HeadlessB2BOrganizationClient as aB, HeadlessB2BSelfClient as aC, HeadlessB2BSessionClient as aD, HeadlessB2BMagicLinksClient as aE, HeadlessB2BSSOClient as aF, HeadlessB2BDiscoveryClient as aG, HeadlessB2BPasswordsClient as aH, HeadlessB2BOTPsClient as aI, HeadlessB2BTOTPsClient as aJ, HeadlessB2BRecoveryCodesClient as aK, HeadlessB2BRBACClient as aL, HeadlessB2BSCIMClient as aM, HeadlessB2BImpersonationClient as aN, SessionManager as aO, SearchDataManager as aP, writeB2BInternals as aQ, UserCancellationError as aa, UserLockedOutError as ab, errorToStytchError as ac, createDeepEqual as ad, getPersistentStorageKey as ae, loadESModule as af, IframeHostClient as ag, EventLogger as ah, DEFAULT_MAX_BATCH_SIZE as ai, DEFAULT_INTERVAL_DURATION_MS as aj, createEventId as ak, createAppSessionId as al, createPersistentId as am, baseFetchSDK as an, baseSubmitFormSDK as ao, retriableFetchSDK as ap, validate as aq, hasMultipleCookies as ar, isLocalhost as as, HeadlessB2BOAuthClient$1 as at, DisabledDFPProtectedAuthProvider as au, GOOGLE_ONE_TAP_HOST as av, GOOGLE_ONE_TAP_SCRIPT_URL as aw, checkPublicToken as ax, buildFinalConfig as ay, StateChangeClient as az, OTPMethods as b, B2BOAuthProviders as c, __awaiter as d, StytchAPIError as e, OneTapPositions as f, debounce as g, StytchSDKError as h, isTestPublicToken as i, checkB2BNotSSR as j, BiometricsAlreadyEnrolledError as k, logger as l, BiometricsFailedError as m, BiometricsUnavailableError as n, ChallengeSigningFailedError as o, DeviceCredentialsNotAllowedError as p, FailedToDecryptDataError as q, readB2BInternals as r, InternalError as s, InvalidAuthorizationCredentialError as t, InvalidCredentialTypeError as u, InvalidRedirectSchemeError as v, InvalidStartUrlError as w, KeystoreUnavailableError as x, MissingAuthorizationCredentialIDTokenError as y, MissingGoogleClientIDError as z };
|
|
@@ -423,208 +423,216 @@ var NoBiometricsEnrolledError = /*#__PURE__*/function (_StytchSDKError7) {
|
|
|
423
423
|
}
|
|
424
424
|
return _createClass$1(NoBiometricsEnrolledError);
|
|
425
425
|
}(StytchSDKError);
|
|
426
|
-
var
|
|
427
|
-
_inherits$1(
|
|
426
|
+
var BiometricsAlreadyEnrolledError = /*#__PURE__*/function (_StytchSDKError8) {
|
|
427
|
+
_inherits$1(BiometricsAlreadyEnrolledError, _StytchSDKError8);
|
|
428
|
+
function BiometricsAlreadyEnrolledError() {
|
|
429
|
+
_classCallCheck$1(this, BiometricsAlreadyEnrolledError);
|
|
430
|
+
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.']);
|
|
431
|
+
}
|
|
432
|
+
return _createClass$1(BiometricsAlreadyEnrolledError);
|
|
433
|
+
}(StytchSDKError);
|
|
434
|
+
var UserCancellationError = /*#__PURE__*/function (_StytchSDKError9) {
|
|
435
|
+
_inherits$1(UserCancellationError, _StytchSDKError9);
|
|
428
436
|
function UserCancellationError() {
|
|
429
437
|
_classCallCheck$1(this, UserCancellationError);
|
|
430
438
|
return _callSuper$1(this, UserCancellationError, ['UserCancellationError', 'The user canceled the prompt. Ask the user to try again.']);
|
|
431
439
|
}
|
|
432
440
|
return _createClass$1(UserCancellationError);
|
|
433
441
|
}(StytchSDKError);
|
|
434
|
-
var UserLockedOutError = /*#__PURE__*/function (
|
|
435
|
-
_inherits$1(UserLockedOutError,
|
|
442
|
+
var UserLockedOutError = /*#__PURE__*/function (_StytchSDKError10) {
|
|
443
|
+
_inherits$1(UserLockedOutError, _StytchSDKError10);
|
|
436
444
|
function UserLockedOutError() {
|
|
437
445
|
_classCallCheck$1(this, UserLockedOutError);
|
|
438
446
|
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.']);
|
|
439
447
|
}
|
|
440
448
|
return _createClass$1(UserLockedOutError);
|
|
441
449
|
}(StytchSDKError);
|
|
442
|
-
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (
|
|
443
|
-
_inherits$1(DeviceCredentialsNotAllowedError,
|
|
450
|
+
var DeviceCredentialsNotAllowedError = /*#__PURE__*/function (_StytchSDKError11) {
|
|
451
|
+
_inherits$1(DeviceCredentialsNotAllowedError, _StytchSDKError11);
|
|
444
452
|
function DeviceCredentialsNotAllowedError() {
|
|
445
453
|
_classCallCheck$1(this, DeviceCredentialsNotAllowedError);
|
|
446
454
|
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.']);
|
|
447
455
|
}
|
|
448
456
|
return _createClass$1(DeviceCredentialsNotAllowedError);
|
|
449
457
|
}(StytchSDKError);
|
|
450
|
-
var MissingGoogleClientIDError = /*#__PURE__*/function (
|
|
451
|
-
_inherits$1(MissingGoogleClientIDError,
|
|
458
|
+
var MissingGoogleClientIDError = /*#__PURE__*/function (_StytchSDKError12) {
|
|
459
|
+
_inherits$1(MissingGoogleClientIDError, _StytchSDKError12);
|
|
452
460
|
function MissingGoogleClientIDError() {
|
|
453
461
|
_classCallCheck$1(this, MissingGoogleClientIDError);
|
|
454
462
|
return _callSuper$1(this, MissingGoogleClientIDError, ['MissingGoogleClientIDError', 'No Google client ID was found in the project.']);
|
|
455
463
|
}
|
|
456
464
|
return _createClass$1(MissingGoogleClientIDError);
|
|
457
465
|
}(StytchSDKError);
|
|
458
|
-
var MissingPKCEError = /*#__PURE__*/function (
|
|
459
|
-
_inherits$1(MissingPKCEError,
|
|
466
|
+
var MissingPKCEError = /*#__PURE__*/function (_StytchSDKError13) {
|
|
467
|
+
_inherits$1(MissingPKCEError, _StytchSDKError13);
|
|
460
468
|
function MissingPKCEError() {
|
|
461
469
|
_classCallCheck$1(this, MissingPKCEError);
|
|
462
470
|
return _callSuper$1(this, MissingPKCEError, ['MissingPKCEError', 'Make sure this flow is completed on the same device on which it was started.']);
|
|
463
471
|
}
|
|
464
472
|
return _createClass$1(MissingPKCEError);
|
|
465
473
|
}(StytchSDKError);
|
|
466
|
-
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (
|
|
467
|
-
_inherits$1(MissingAuthorizationCredentialIDTokenError,
|
|
474
|
+
var MissingAuthorizationCredentialIDTokenError = /*#__PURE__*/function (_StytchSDKError14) {
|
|
475
|
+
_inherits$1(MissingAuthorizationCredentialIDTokenError, _StytchSDKError14);
|
|
468
476
|
function MissingAuthorizationCredentialIDTokenError() {
|
|
469
477
|
_classCallCheck$1(this, MissingAuthorizationCredentialIDTokenError);
|
|
470
478
|
return _callSuper$1(this, MissingAuthorizationCredentialIDTokenError, ['MissingAuthorizationCredentialIDTokenError', 'The authorization credential is missing an ID token.']);
|
|
471
479
|
}
|
|
472
480
|
return _createClass$1(MissingAuthorizationCredentialIDTokenError);
|
|
473
481
|
}(StytchSDKError);
|
|
474
|
-
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (
|
|
475
|
-
_inherits$1(InvalidAuthorizationCredentialError,
|
|
482
|
+
var InvalidAuthorizationCredentialError = /*#__PURE__*/function (_StytchSDKError15) {
|
|
483
|
+
_inherits$1(InvalidAuthorizationCredentialError, _StytchSDKError15);
|
|
476
484
|
function InvalidAuthorizationCredentialError() {
|
|
477
485
|
_classCallCheck$1(this, InvalidAuthorizationCredentialError);
|
|
478
486
|
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.']);
|
|
479
487
|
}
|
|
480
488
|
return _createClass$1(InvalidAuthorizationCredentialError);
|
|
481
489
|
}(StytchSDKError);
|
|
482
|
-
var NoCredentialsPresentError = /*#__PURE__*/function (
|
|
483
|
-
_inherits$1(NoCredentialsPresentError,
|
|
490
|
+
var NoCredentialsPresentError = /*#__PURE__*/function (_StytchSDKError16) {
|
|
491
|
+
_inherits$1(NoCredentialsPresentError, _StytchSDKError16);
|
|
484
492
|
function NoCredentialsPresentError() {
|
|
485
493
|
_classCallCheck$1(this, NoCredentialsPresentError);
|
|
486
494
|
return _callSuper$1(this, NoCredentialsPresentError, ['NoCredentialsPresentError', 'The user did not provide credentials for a Google OneTap attempt']);
|
|
487
495
|
}
|
|
488
496
|
return _createClass$1(NoCredentialsPresentError);
|
|
489
497
|
}(StytchSDKError);
|
|
490
|
-
var MissingPublicKeyError = /*#__PURE__*/function (
|
|
491
|
-
_inherits$1(MissingPublicKeyError,
|
|
498
|
+
var MissingPublicKeyError = /*#__PURE__*/function (_StytchSDKError17) {
|
|
499
|
+
_inherits$1(MissingPublicKeyError, _StytchSDKError17);
|
|
492
500
|
function MissingPublicKeyError() {
|
|
493
501
|
_classCallCheck$1(this, MissingPublicKeyError);
|
|
494
502
|
return _callSuper$1(this, MissingPublicKeyError, ['MissingPublicKeyError', 'Failed to retrieve the public key. Add a new biometric registration.']);
|
|
495
503
|
}
|
|
496
504
|
return _createClass$1(MissingPublicKeyError);
|
|
497
505
|
}(StytchSDKError);
|
|
498
|
-
var ChallengeSigningFailedError = /*#__PURE__*/function (
|
|
499
|
-
_inherits$1(ChallengeSigningFailedError,
|
|
506
|
+
var ChallengeSigningFailedError = /*#__PURE__*/function (_StytchSDKError18) {
|
|
507
|
+
_inherits$1(ChallengeSigningFailedError, _StytchSDKError18);
|
|
500
508
|
function ChallengeSigningFailedError() {
|
|
501
509
|
_classCallCheck$1(this, ChallengeSigningFailedError);
|
|
502
510
|
return _callSuper$1(this, ChallengeSigningFailedError, ['ChallengeSigningFailedError', 'Failed to sign the challenge with the key.']);
|
|
503
511
|
}
|
|
504
512
|
return _createClass$1(ChallengeSigningFailedError);
|
|
505
513
|
}(StytchSDKError);
|
|
506
|
-
var SDKNotConfiguredError = /*#__PURE__*/function (
|
|
507
|
-
_inherits$1(SDKNotConfiguredError,
|
|
514
|
+
var SDKNotConfiguredError = /*#__PURE__*/function (_StytchSDKError19) {
|
|
515
|
+
_inherits$1(SDKNotConfiguredError, _StytchSDKError19);
|
|
508
516
|
function SDKNotConfiguredError() {
|
|
509
517
|
_classCallCheck$1(this, SDKNotConfiguredError);
|
|
510
518
|
return _callSuper$1(this, SDKNotConfiguredError, ['SDKNotConfiguredError', 'Stytch client is not confiured. You must call the configure method before using the SDK']);
|
|
511
519
|
}
|
|
512
520
|
return _createClass$1(SDKNotConfiguredError);
|
|
513
521
|
}(StytchSDKError);
|
|
514
|
-
var FailedCodeChallengeError = /*#__PURE__*/function (
|
|
515
|
-
_inherits$1(FailedCodeChallengeError,
|
|
522
|
+
var FailedCodeChallengeError = /*#__PURE__*/function (_StytchSDKError20) {
|
|
523
|
+
_inherits$1(FailedCodeChallengeError, _StytchSDKError20);
|
|
516
524
|
function FailedCodeChallengeError() {
|
|
517
525
|
_classCallCheck$1(this, FailedCodeChallengeError);
|
|
518
526
|
return _callSuper$1(this, FailedCodeChallengeError, ['FailedCodeChallengeError', 'Failed to create a code challenge']);
|
|
519
527
|
}
|
|
520
528
|
return _createClass$1(FailedCodeChallengeError);
|
|
521
529
|
}(StytchSDKError);
|
|
522
|
-
var PasskeysUnsupportedError = /*#__PURE__*/function (
|
|
523
|
-
_inherits$1(PasskeysUnsupportedError,
|
|
530
|
+
var PasskeysUnsupportedError = /*#__PURE__*/function (_StytchSDKError21) {
|
|
531
|
+
_inherits$1(PasskeysUnsupportedError, _StytchSDKError21);
|
|
524
532
|
function PasskeysUnsupportedError() {
|
|
525
533
|
_classCallCheck$1(this, PasskeysUnsupportedError);
|
|
526
534
|
return _callSuper$1(this, PasskeysUnsupportedError, ['PasskeysUnsupportedError', 'Passkeys are not supported on this device']);
|
|
527
535
|
}
|
|
528
536
|
return _createClass$1(PasskeysUnsupportedError);
|
|
529
537
|
}(StytchSDKError);
|
|
530
|
-
var FailedToDecryptDataError = /*#__PURE__*/function (
|
|
531
|
-
_inherits$1(FailedToDecryptDataError,
|
|
538
|
+
var FailedToDecryptDataError = /*#__PURE__*/function (_StytchSDKError22) {
|
|
539
|
+
_inherits$1(FailedToDecryptDataError, _StytchSDKError22);
|
|
532
540
|
function FailedToDecryptDataError() {
|
|
533
541
|
_classCallCheck$1(this, FailedToDecryptDataError);
|
|
534
542
|
return _callSuper$1(this, FailedToDecryptDataError, ['FailedToDecryptDataError', 'Failed to decrypt user data']);
|
|
535
543
|
}
|
|
536
544
|
return _createClass$1(FailedToDecryptDataError);
|
|
537
545
|
}(StytchSDKError);
|
|
538
|
-
var BiometricsFailedError = /*#__PURE__*/function (
|
|
539
|
-
_inherits$1(BiometricsFailedError,
|
|
546
|
+
var BiometricsFailedError = /*#__PURE__*/function (_StytchSDKError23) {
|
|
547
|
+
_inherits$1(BiometricsFailedError, _StytchSDKError23);
|
|
540
548
|
function BiometricsFailedError() {
|
|
541
549
|
_classCallCheck$1(this, BiometricsFailedError);
|
|
542
550
|
return _callSuper$1(this, BiometricsFailedError, ['BiometricsFailedError', 'Biometric authentication failed']);
|
|
543
551
|
}
|
|
544
552
|
return _createClass$1(BiometricsFailedError);
|
|
545
553
|
}(StytchSDKError);
|
|
546
|
-
var InvalidStartUrlError = /*#__PURE__*/function (
|
|
547
|
-
_inherits$1(InvalidStartUrlError,
|
|
554
|
+
var InvalidStartUrlError = /*#__PURE__*/function (_StytchSDKError24) {
|
|
555
|
+
_inherits$1(InvalidStartUrlError, _StytchSDKError24);
|
|
548
556
|
function InvalidStartUrlError() {
|
|
549
557
|
_classCallCheck$1(this, InvalidStartUrlError);
|
|
550
558
|
return _callSuper$1(this, InvalidStartUrlError, ['InvalidStartUrlError', 'The start URL was invalid or improperly formatted.']);
|
|
551
559
|
}
|
|
552
560
|
return _createClass$1(InvalidStartUrlError);
|
|
553
561
|
}(StytchSDKError);
|
|
554
|
-
var InvalidRedirectSchemeError = /*#__PURE__*/function (
|
|
555
|
-
_inherits$1(InvalidRedirectSchemeError,
|
|
562
|
+
var InvalidRedirectSchemeError = /*#__PURE__*/function (_StytchSDKError25) {
|
|
563
|
+
_inherits$1(InvalidRedirectSchemeError, _StytchSDKError25);
|
|
556
564
|
function InvalidRedirectSchemeError() {
|
|
557
565
|
_classCallCheck$1(this, InvalidRedirectSchemeError);
|
|
558
566
|
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.']);
|
|
559
567
|
}
|
|
560
568
|
return _createClass$1(InvalidRedirectSchemeError);
|
|
561
569
|
}(StytchSDKError);
|
|
562
|
-
var MissingUrlError = /*#__PURE__*/function (
|
|
563
|
-
_inherits$1(MissingUrlError,
|
|
570
|
+
var MissingUrlError = /*#__PURE__*/function (_StytchSDKError26) {
|
|
571
|
+
_inherits$1(MissingUrlError, _StytchSDKError26);
|
|
564
572
|
function MissingUrlError() {
|
|
565
573
|
_classCallCheck$1(this, MissingUrlError);
|
|
566
574
|
return _callSuper$1(this, MissingUrlError, ['MissingUrlError', 'The underlying web authentication service failed to return a URL.']);
|
|
567
575
|
}
|
|
568
576
|
return _createClass$1(MissingUrlError);
|
|
569
577
|
}(StytchSDKError);
|
|
570
|
-
var InvalidCredentialTypeError = /*#__PURE__*/function (
|
|
571
|
-
_inherits$1(InvalidCredentialTypeError,
|
|
578
|
+
var InvalidCredentialTypeError = /*#__PURE__*/function (_StytchSDKError27) {
|
|
579
|
+
_inherits$1(InvalidCredentialTypeError, _StytchSDKError27);
|
|
572
580
|
function InvalidCredentialTypeError() {
|
|
573
581
|
_classCallCheck$1(this, InvalidCredentialTypeError);
|
|
574
582
|
return _callSuper$1(this, InvalidCredentialTypeError, ['InvalidCredentialTypeError', 'The public key credential type was not of the expected type.']);
|
|
575
583
|
}
|
|
576
584
|
return _createClass$1(InvalidCredentialTypeError);
|
|
577
585
|
}(StytchSDKError);
|
|
578
|
-
var MissingAttestationObjectError = /*#__PURE__*/function (
|
|
579
|
-
_inherits$1(MissingAttestationObjectError,
|
|
586
|
+
var MissingAttestationObjectError = /*#__PURE__*/function (_StytchSDKError28) {
|
|
587
|
+
_inherits$1(MissingAttestationObjectError, _StytchSDKError28);
|
|
580
588
|
function MissingAttestationObjectError() {
|
|
581
589
|
_classCallCheck$1(this, MissingAttestationObjectError);
|
|
582
590
|
return _callSuper$1(this, MissingAttestationObjectError, ['MissingAttestationObjectError', 'The public key credential is missing the attestation object.']);
|
|
583
591
|
}
|
|
584
592
|
return _createClass$1(MissingAttestationObjectError);
|
|
585
593
|
}(StytchSDKError);
|
|
586
|
-
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (
|
|
587
|
-
_inherits$1(JSONDataNotConvertibleToStringError,
|
|
594
|
+
var JSONDataNotConvertibleToStringError = /*#__PURE__*/function (_StytchSDKError29) {
|
|
595
|
+
_inherits$1(JSONDataNotConvertibleToStringError, _StytchSDKError29);
|
|
588
596
|
function JSONDataNotConvertibleToStringError() {
|
|
589
597
|
_classCallCheck$1(this, JSONDataNotConvertibleToStringError);
|
|
590
598
|
return _callSuper$1(this, JSONDataNotConvertibleToStringError, ['JSONDataNotConvertibleToStringError', 'JSON data unable to be converted to String type.']);
|
|
591
599
|
}
|
|
592
600
|
return _createClass$1(JSONDataNotConvertibleToStringError);
|
|
593
601
|
}(StytchSDKError);
|
|
594
|
-
var RandomNumberGenerationFailed = /*#__PURE__*/function (
|
|
595
|
-
_inherits$1(RandomNumberGenerationFailed,
|
|
602
|
+
var RandomNumberGenerationFailed = /*#__PURE__*/function (_StytchSDKError30) {
|
|
603
|
+
_inherits$1(RandomNumberGenerationFailed, _StytchSDKError30);
|
|
596
604
|
function RandomNumberGenerationFailed() {
|
|
597
605
|
_classCallCheck$1(this, RandomNumberGenerationFailed);
|
|
598
606
|
return _callSuper$1(this, RandomNumberGenerationFailed, ['RandomNumberGenerationFailed', 'Random number generation failed']);
|
|
599
607
|
}
|
|
600
608
|
return _createClass$1(RandomNumberGenerationFailed);
|
|
601
609
|
}(StytchSDKError);
|
|
602
|
-
var PasskeysInvalidEncoding = /*#__PURE__*/function (
|
|
603
|
-
_inherits$1(PasskeysInvalidEncoding,
|
|
610
|
+
var PasskeysInvalidEncoding = /*#__PURE__*/function (_StytchSDKError31) {
|
|
611
|
+
_inherits$1(PasskeysInvalidEncoding, _StytchSDKError31);
|
|
604
612
|
function PasskeysInvalidEncoding() {
|
|
605
613
|
_classCallCheck$1(this, PasskeysInvalidEncoding);
|
|
606
614
|
return _callSuper$1(this, PasskeysInvalidEncoding, ['PasskeysInvalidEncoding', 'Invalid passkey encoding']);
|
|
607
615
|
}
|
|
608
616
|
return _createClass$1(PasskeysInvalidEncoding);
|
|
609
617
|
}(StytchSDKError);
|
|
610
|
-
var PasskeysMisconfigured = /*#__PURE__*/function (
|
|
611
|
-
_inherits$1(PasskeysMisconfigured,
|
|
618
|
+
var PasskeysMisconfigured = /*#__PURE__*/function (_StytchSDKError32) {
|
|
619
|
+
_inherits$1(PasskeysMisconfigured, _StytchSDKError32);
|
|
612
620
|
function PasskeysMisconfigured() {
|
|
613
621
|
_classCallCheck$1(this, PasskeysMisconfigured);
|
|
614
622
|
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.']);
|
|
615
623
|
}
|
|
616
624
|
return _createClass$1(PasskeysMisconfigured);
|
|
617
625
|
}(StytchSDKError);
|
|
618
|
-
var SignInWithAppleMisconfigured = /*#__PURE__*/function (
|
|
619
|
-
_inherits$1(SignInWithAppleMisconfigured,
|
|
626
|
+
var SignInWithAppleMisconfigured = /*#__PURE__*/function (_StytchSDKError33) {
|
|
627
|
+
_inherits$1(SignInWithAppleMisconfigured, _StytchSDKError33);
|
|
620
628
|
function SignInWithAppleMisconfigured() {
|
|
621
629
|
_classCallCheck$1(this, SignInWithAppleMisconfigured);
|
|
622
630
|
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.']);
|
|
623
631
|
}
|
|
624
632
|
return _createClass$1(SignInWithAppleMisconfigured);
|
|
625
633
|
}(StytchSDKError);
|
|
626
|
-
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (
|
|
627
|
-
_inherits$1(IDPOAuthFlowMissingParamError,
|
|
634
|
+
var IDPOAuthFlowMissingParamError = /*#__PURE__*/function (_StytchSDKError34) {
|
|
635
|
+
_inherits$1(IDPOAuthFlowMissingParamError, _StytchSDKError34);
|
|
628
636
|
function IDPOAuthFlowMissingParamError(details) {
|
|
629
637
|
_classCallCheck$1(this, IDPOAuthFlowMissingParamError);
|
|
630
638
|
return _callSuper$1(this, IDPOAuthFlowMissingParamError, ['IDPOAuthFlowMissingParamError', details]);
|
|
@@ -5678,6 +5686,7 @@ var readB2BInternals = function readB2BInternals(obj) {
|
|
|
5678
5686
|
}
|
|
5679
5687
|
return casted[internalSymB2B];
|
|
5680
5688
|
};
|
|
5689
|
+
exports.BiometricsAlreadyEnrolledError = BiometricsAlreadyEnrolledError;
|
|
5681
5690
|
exports.BiometricsFailedError = BiometricsFailedError;
|
|
5682
5691
|
exports.BiometricsUnavailableError = BiometricsUnavailableError;
|
|
5683
5692
|
exports.COUNTRIES_LIST = COUNTRIES_LIST;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stytch/vanilla-js",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.2",
|
|
4
4
|
"description": "Stytch's official Javascript Client Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"hoistingLimits": "workspaces"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@stytch/core": "2.
|
|
42
|
+
"@stytch/core": "2.43.0",
|
|
43
43
|
"@types/google-one-tap": "^1.2.0",
|
|
44
44
|
"type-fest": "4.15.0"
|
|
45
45
|
},
|
|
@@ -71,11 +71,12 @@
|
|
|
71
71
|
"@storybook/preact-vite": "8.5.8",
|
|
72
72
|
"@storybook/test": "8.5.8",
|
|
73
73
|
"@storybook/test-runner": "0.21.2",
|
|
74
|
+
"@stytch/internal-tsconfigs": "0.0.0",
|
|
74
75
|
"@stytch/js-utils": "0.0.0",
|
|
75
76
|
"@testing-library/preact": "3.2.4",
|
|
76
77
|
"@testing-library/user-event": "14.2.1",
|
|
77
78
|
"@types/grecaptcha": "3.0.4",
|
|
78
|
-
"@types/jest": "
|
|
79
|
+
"@types/jest": "29.5.14",
|
|
79
80
|
"@types/js-cookie": "3.0.2",
|
|
80
81
|
"@types/jsdom": "16.2.14",
|
|
81
82
|
"@types/lodash.merge": "4.6.7",
|
|
@@ -88,9 +89,9 @@
|
|
|
88
89
|
"eslint-config-custom": "0.0.1",
|
|
89
90
|
"http-server": "14.1.1",
|
|
90
91
|
"immer": "10.1.1",
|
|
91
|
-
"jest": "
|
|
92
|
-
"jest-environment-jsdom": "
|
|
93
|
-
"jest-environment-jsdom-global": "
|
|
92
|
+
"jest": "29.7.0",
|
|
93
|
+
"jest-environment-jsdom": "29.7.0",
|
|
94
|
+
"jest-environment-jsdom-global": "4.0.0",
|
|
94
95
|
"js-cookie": "3.0.1",
|
|
95
96
|
"lodash.merge": "4.6.2",
|
|
96
97
|
"preact": "10.19.2",
|