@firebase/auth 0.21.6-20230329040242 → 0.21.6-canary.a8d6499b1

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 (58) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +5 -0
  3. package/dist/auth-public.d.ts +1 -0
  4. package/dist/auth.d.ts +2 -0
  5. package/dist/browser-cjs/{index-f0c95b47.js → index-a031a7c0.js} +5 -3
  6. package/dist/browser-cjs/index-a031a7c0.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/cordova/index.js +2 -2
  12. package/dist/cordova/internal.js +2 -2
  13. package/dist/cordova/{popup_redirect-ea399a63.js → popup_redirect-69cff576.js} +5 -3
  14. package/dist/cordova/popup_redirect-69cff576.js.map +1 -0
  15. package/dist/cordova/src/core/errors.d.ts +1 -0
  16. package/dist/cordova/src/core/index.d.ts +1 -0
  17. package/dist/esm2017/{index-998a92c6.js → index-33f309f3.js} +5 -3
  18. package/dist/esm2017/index-33f309f3.js.map +1 -0
  19. package/dist/esm2017/index.js +1 -1
  20. package/dist/esm2017/internal.js +2 -2
  21. package/dist/esm2017/src/core/errors.d.ts +1 -0
  22. package/dist/esm2017/src/core/index.d.ts +1 -0
  23. package/dist/esm5/{index-14d0c8cb.js → index-588c4d42.js} +5 -3
  24. package/dist/esm5/index-588c4d42.js.map +1 -0
  25. package/dist/esm5/index.js +1 -1
  26. package/dist/esm5/internal.js +2 -2
  27. package/dist/esm5/src/core/errors.d.ts +1 -0
  28. package/dist/esm5/src/core/index.d.ts +1 -0
  29. package/dist/index.webworker.esm5.js +4 -2
  30. package/dist/index.webworker.esm5.js.map +1 -1
  31. package/dist/node/index.js +1 -1
  32. package/dist/node/internal.js +1 -1
  33. package/dist/node/src/core/errors.d.ts +1 -0
  34. package/dist/node/src/core/index.d.ts +1 -0
  35. package/dist/node/{totp-06ccbed7.js → totp-4f539e73.js} +5 -3
  36. package/dist/node/totp-4f539e73.js.map +1 -0
  37. package/dist/node-esm/index.js +1 -1
  38. package/dist/node-esm/internal.js +2 -2
  39. package/dist/node-esm/src/core/errors.d.ts +1 -0
  40. package/dist/node-esm/src/core/index.d.ts +1 -0
  41. package/dist/node-esm/{totp-412ade8c.js → totp-aec70fa2.js} +5 -3
  42. package/dist/node-esm/totp-aec70fa2.js.map +1 -0
  43. package/dist/rn/index.js +1 -1
  44. package/dist/rn/internal.js +1 -1
  45. package/dist/rn/{phone-e85f18b7.js → phone-a38a417c.js} +5 -3
  46. package/dist/rn/phone-a38a417c.js.map +1 -0
  47. package/dist/rn/src/core/errors.d.ts +1 -0
  48. package/dist/rn/src/core/index.d.ts +1 -0
  49. package/dist/src/core/errors.d.ts +1 -0
  50. package/dist/src/core/index.d.ts +1 -0
  51. package/package.json +6 -6
  52. package/dist/browser-cjs/index-f0c95b47.js.map +0 -1
  53. package/dist/cordova/popup_redirect-ea399a63.js.map +0 -1
  54. package/dist/esm2017/index-998a92c6.js.map +0 -1
  55. package/dist/esm5/index-14d0c8cb.js.map +0 -1
  56. package/dist/node/totp-06ccbed7.js.map +0 -1
  57. package/dist/node-esm/totp-412ade8c.js.map +0 -1
  58. package/dist/rn/phone-e85f18b7.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @firebase/auth
2
2
 
3
- ## 0.21.6-20230329040242
3
+ ## 0.21.6
4
4
 
5
5
  ### Patch Changes
6
6
 
package/README.md CHANGED
@@ -40,6 +40,11 @@ commands also run various tests:
40
40
  * `yarn test:webdriver` — Executes only the Selenium WebDriver
41
41
  integration tests
42
42
 
43
+ Note - The webdriver tests require the Chrome webdriver to match the version of Chrome running locally.
44
+ In the CI environment, this is ensured using the environment variable [here.](https://github.com/firebase/firebase-js-sdk/blob/6e80a678fe0c31046860554cec0459a2be34d22b/.github/workflows/test-changed-auth.yml#L7)
45
+ When running locally, change the chromedriver version in [package.json](https://github.com/firebase/firebase-js-sdk/blob/6e80a678fe0c31046860554cec0459a2be34d22b/packages/auth/package.json#L124) to match your local Chrome version and run `yarn install`.
46
+
47
+
43
48
  For example, to run all integration and WebDriver tests against the emulator,
44
49
  you would simply execute the following command:
45
50
 
@@ -2135,6 +2135,7 @@ export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObs
2135
2135
  *
2136
2136
  * @remarks
2137
2137
  * This includes sign-in, sign-out, and token refresh events.
2138
+ * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
2138
2139
  *
2139
2140
  * @param auth - The {@link Auth} instance.
2140
2141
  * @param nextOrObserver - callback triggered on change.
package/dist/auth.d.ts CHANGED
@@ -575,6 +575,7 @@ declare const enum AuthErrorCode {
575
575
  MISSING_MFA_INFO = "missing-multi-factor-info",
576
576
  MISSING_MFA_SESSION = "missing-multi-factor-session",
577
577
  MISSING_PHONE_NUMBER = "missing-phone-number",
578
+ MISSING_PASSWORD = "missing-password",
578
579
  MISSING_SESSION_INFO = "missing-verification-id",
579
580
  MODULE_DESTROYED = "app-deleted",
580
581
  NEED_CONFIRMATION = "account-exists-with-different-credential",
@@ -2469,6 +2470,7 @@ export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObs
2469
2470
  *
2470
2471
  * @remarks
2471
2472
  * This includes sign-in, sign-out, and token refresh events.
2473
+ * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
2472
2474
  *
2473
2475
  * @param auth - The {@link Auth} instance.
2474
2476
  * @param nextOrObserver - callback triggered on change.
@@ -214,6 +214,7 @@ function _debugErrorMap() {
214
214
  ["missing-or-invalid-nonce" /* AuthErrorCode.MISSING_OR_INVALID_NONCE */]: 'The request does not contain a valid nonce. This can occur if the ' +
215
215
  'SHA-256 hash of the provided raw nonce does not match the hashed nonce ' +
216
216
  'in the ID token payload.',
217
+ ["missing-password" /* AuthErrorCode.MISSING_PASSWORD */]: 'A non-empty password must be provided',
217
218
  ["missing-multi-factor-info" /* AuthErrorCode.MISSING_MFA_INFO */]: 'No second factor identifier is provided.',
218
219
  ["missing-multi-factor-session" /* AuthErrorCode.MISSING_MFA_SESSION */]: 'The request is missing proof of first factor successful sign-in.',
219
220
  ["missing-phone-number" /* AuthErrorCode.MISSING_PHONE_NUMBER */]: 'To send verification codes, provide a phone number for the recipient.',
@@ -840,7 +841,7 @@ const SERVER_ERROR_MAP = {
840
841
  // Sign in with email and password errors (some apply to sign up too).
841
842
  ["INVALID_PASSWORD" /* ServerError.INVALID_PASSWORD */]: "wrong-password" /* AuthErrorCode.INVALID_PASSWORD */,
842
843
  // This can only happen if the SDK sends a bad request.
843
- ["MISSING_PASSWORD" /* ServerError.MISSING_PASSWORD */]: "internal-error" /* AuthErrorCode.INTERNAL_ERROR */,
844
+ ["MISSING_PASSWORD" /* ServerError.MISSING_PASSWORD */]: "missing-password" /* AuthErrorCode.MISSING_PASSWORD */,
844
845
  // Sign up with email and password errors.
845
846
  ["EMAIL_EXISTS" /* ServerError.EMAIL_EXISTS */]: "email-already-in-use" /* AuthErrorCode.EMAIL_EXISTS */,
846
847
  ["PASSWORD_LOGIN_DISABLED" /* ServerError.PASSWORD_LOGIN_DISABLED */]: "operation-not-allowed" /* AuthErrorCode.OPERATION_NOT_ALLOWED */,
@@ -5690,6 +5691,7 @@ function setPersistence(auth, persistence) {
5690
5691
  *
5691
5692
  * @remarks
5692
5693
  * This includes sign-in, sign-out, and token refresh events.
5694
+ * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
5693
5695
  *
5694
5696
  * @param auth - The {@link Auth} instance.
5695
5697
  * @param nextOrObserver - callback triggered on change.
@@ -9485,7 +9487,7 @@ function _isEmptyString(input) {
9485
9487
  }
9486
9488
 
9487
9489
  var name = "@firebase/auth";
9488
- var version = "0.21.6-20230329040242";
9490
+ var version = "0.21.6-canary.a8d6499b1";
9489
9491
 
9490
9492
  /**
9491
9493
  * @license
@@ -9814,4 +9816,4 @@ exports.updateProfile = updateProfile;
9814
9816
  exports.useDeviceLanguage = useDeviceLanguage;
9815
9817
  exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
9816
9818
  exports.verifyPasswordResetCode = verifyPasswordResetCode;
9817
- //# sourceMappingURL=index-f0c95b47.js.map
9819
+ //# sourceMappingURL=index-a031a7c0.js.map