@firebase/auth 0.21.6 → 0.22.0-20230331192943

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +5 -0
  3. package/dist/auth-public.d.ts +2 -3
  4. package/dist/auth.d.ts +3 -12
  5. package/dist/browser-cjs/{index-39443020.js → index-ee64a34b.js} +5 -3
  6. package/dist/browser-cjs/index-ee64a34b.js.map +1 -0
  7. package/dist/browser-cjs/index.js +1 -1
  8. package/dist/browser-cjs/internal.js +1 -1
  9. package/dist/browser-cjs/src/core/errors.d.ts +1 -0
  10. package/dist/browser-cjs/src/core/index.d.ts +1 -0
  11. package/dist/browser-cjs/src/mfa/assertions/totp.d.ts +2 -2
  12. package/dist/cordova/index.js +2 -2
  13. package/dist/cordova/internal.js +2 -2
  14. package/dist/cordova/internal.js.map +1 -1
  15. package/dist/cordova/{popup_redirect-8b388294.js → popup_redirect-da0044cc.js} +5 -3
  16. package/dist/cordova/popup_redirect-da0044cc.js.map +1 -0
  17. package/dist/cordova/src/core/errors.d.ts +1 -0
  18. package/dist/cordova/src/core/index.d.ts +1 -0
  19. package/dist/cordova/src/mfa/assertions/totp.d.ts +2 -2
  20. package/dist/esm2017/{index-2d01563f.js → index-7d50fc6f.js} +5 -3
  21. package/dist/esm2017/index-7d50fc6f.js.map +1 -0
  22. package/dist/esm2017/index.js +1 -1
  23. package/dist/esm2017/internal.js +2 -2
  24. package/dist/esm2017/src/core/errors.d.ts +1 -0
  25. package/dist/esm2017/src/core/index.d.ts +1 -0
  26. package/dist/esm2017/src/mfa/assertions/totp.d.ts +2 -2
  27. package/dist/esm5/{index-44fc929c.js → index-586a29d5.js} +5 -3
  28. package/dist/esm5/index-586a29d5.js.map +1 -0
  29. package/dist/esm5/index.js +1 -1
  30. package/dist/esm5/internal.js +2 -2
  31. package/dist/esm5/src/core/errors.d.ts +1 -0
  32. package/dist/esm5/src/core/index.d.ts +1 -0
  33. package/dist/esm5/src/mfa/assertions/totp.d.ts +2 -2
  34. package/dist/index.webworker.esm5.js +4 -2
  35. package/dist/index.webworker.esm5.js.map +1 -1
  36. package/dist/node/index.js +1 -1
  37. package/dist/node/internal.js +1 -1
  38. package/dist/node/src/core/errors.d.ts +1 -0
  39. package/dist/node/src/core/index.d.ts +1 -0
  40. package/dist/node/src/mfa/assertions/totp.d.ts +2 -2
  41. package/dist/node/{totp-5e73d8e7.js → totp-65063346.js} +5 -3
  42. package/dist/node/totp-65063346.js.map +1 -0
  43. package/dist/node-esm/index.js +1 -1
  44. package/dist/node-esm/internal.js +2 -2
  45. package/dist/node-esm/src/core/errors.d.ts +1 -0
  46. package/dist/node-esm/src/core/index.d.ts +1 -0
  47. package/dist/node-esm/src/mfa/assertions/totp.d.ts +2 -2
  48. package/dist/node-esm/{totp-7b645f19.js → totp-b266f224.js} +5 -3
  49. package/dist/node-esm/totp-b266f224.js.map +1 -0
  50. package/dist/rn/index.js +1 -1
  51. package/dist/rn/internal.js +1 -1
  52. package/dist/rn/internal.js.map +1 -1
  53. package/dist/rn/{phone-ec210006.js → phone-6a31e5ad.js} +5 -3
  54. package/dist/rn/phone-6a31e5ad.js.map +1 -0
  55. package/dist/rn/src/core/errors.d.ts +1 -0
  56. package/dist/rn/src/core/index.d.ts +1 -0
  57. package/dist/rn/src/mfa/assertions/totp.d.ts +2 -2
  58. package/dist/src/core/errors.d.ts +1 -0
  59. package/dist/src/core/index.d.ts +1 -0
  60. package/dist/src/mfa/assertions/totp.d.ts +2 -2
  61. package/package.json +1 -1
  62. package/dist/browser-cjs/index-39443020.js.map +0 -1
  63. package/dist/cordova/popup_redirect-8b388294.js.map +0 -1
  64. package/dist/esm2017/index-2d01563f.js.map +0 -1
  65. package/dist/esm5/index-44fc929c.js.map +0 -1
  66. package/dist/node/totp-5e73d8e7.js.map +0 -1
  67. package/dist/node-esm/totp-7b645f19.js.map +0 -1
  68. package/dist/rn/phone-ec210006.js.map +0 -1
@@ -116,6 +116,7 @@ function _debugErrorMap() {
116
116
  _a["missing-or-invalid-nonce" /* AuthErrorCode.MISSING_OR_INVALID_NONCE */] = 'The request does not contain a valid nonce. This can occur if the ' +
117
117
  'SHA-256 hash of the provided raw nonce does not match the hashed nonce ' +
118
118
  'in the ID token payload.',
119
+ _a["missing-password" /* AuthErrorCode.MISSING_PASSWORD */] = 'A non-empty password must be provided',
119
120
  _a["missing-multi-factor-info" /* AuthErrorCode.MISSING_MFA_INFO */] = 'No second factor identifier is provided.',
120
121
  _a["missing-multi-factor-session" /* AuthErrorCode.MISSING_MFA_SESSION */] = 'The request is missing proof of first factor successful sign-in.',
121
122
  _a["missing-phone-number" /* AuthErrorCode.MISSING_PHONE_NUMBER */] = 'To send verification codes, provide a phone number for the recipient.',
@@ -770,7 +771,7 @@ var SERVER_ERROR_MAP = (_a$1 = {},
770
771
  // Sign in with email and password errors (some apply to sign up too).
771
772
  _a$1["INVALID_PASSWORD" /* ServerError.INVALID_PASSWORD */] = "wrong-password" /* AuthErrorCode.INVALID_PASSWORD */,
772
773
  // This can only happen if the SDK sends a bad request.
773
- _a$1["MISSING_PASSWORD" /* ServerError.MISSING_PASSWORD */] = "internal-error" /* AuthErrorCode.INTERNAL_ERROR */,
774
+ _a$1["MISSING_PASSWORD" /* ServerError.MISSING_PASSWORD */] = "missing-password" /* AuthErrorCode.MISSING_PASSWORD */,
774
775
  // Sign up with email and password errors.
775
776
  _a$1["EMAIL_EXISTS" /* ServerError.EMAIL_EXISTS */] = "email-already-in-use" /* AuthErrorCode.EMAIL_EXISTS */,
776
777
  _a$1["PASSWORD_LOGIN_DISABLED" /* ServerError.PASSWORD_LOGIN_DISABLED */] = "operation-not-allowed" /* AuthErrorCode.OPERATION_NOT_ALLOWED */,
@@ -6599,6 +6600,7 @@ function setPersistence(auth, persistence) {
6599
6600
  *
6600
6601
  * @remarks
6601
6602
  * This includes sign-in, sign-out, and token refresh events.
6603
+ * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
6602
6604
  *
6603
6605
  * @param auth - The {@link Auth} instance.
6604
6606
  * @param nextOrObserver - callback triggered on change.
@@ -6997,7 +6999,7 @@ function multiFactor(user) {
6997
6999
  }
6998
7000
 
6999
7001
  var name = "@firebase/auth";
7000
- var version = "0.21.6";
7002
+ var version = "0.22.0-20230331192943";
7001
7003
 
7002
7004
  /**
7003
7005
  * @license
@@ -8532,4 +8534,4 @@ exports.updateProfile = updateProfile;
8532
8534
  exports.useDeviceLanguage = useDeviceLanguage;
8533
8535
  exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
8534
8536
  exports.verifyPasswordResetCode = verifyPasswordResetCode;
8535
- //# sourceMappingURL=phone-ec210006.js.map
8537
+ //# sourceMappingURL=phone-6a31e5ad.js.map