@firebase/auth 1.7.1 → 1.7.2-canary.4b49630c7

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 (87) hide show
  1. package/dist/auth-public.d.ts +15 -9
  2. package/dist/auth.d.ts +15 -9
  3. package/dist/browser-cjs/{index-c3c97b2a.js → index-93e01d60.js} +16 -10
  4. package/dist/browser-cjs/index-93e01d60.js.map +1 -0
  5. package/dist/browser-cjs/index.js +1 -1
  6. package/dist/browser-cjs/internal.js +1 -1
  7. package/dist/browser-cjs/src/core/strategies/email.d.ts +5 -3
  8. package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +6 -4
  9. package/dist/browser-cjs/src/core/user/account_info.d.ts +3 -1
  10. package/dist/browser-cjs/src/model/public_types.d.ts +1 -1
  11. package/dist/cordova/index.js +2 -2
  12. package/dist/cordova/internal.js +2 -2
  13. package/dist/cordova/{popup_redirect-176dbc3d.js → popup_redirect-cfe3c3cc.js} +16 -10
  14. package/dist/cordova/popup_redirect-cfe3c3cc.js.map +1 -0
  15. package/dist/cordova/src/core/strategies/email.d.ts +5 -3
  16. package/dist/cordova/src/core/strategies/email_and_password.d.ts +6 -4
  17. package/dist/cordova/src/core/user/account_info.d.ts +3 -1
  18. package/dist/cordova/src/model/public_types.d.ts +1 -1
  19. package/dist/esm2017/{index-219c3cac.js → index-676e3eeb.js} +16 -10
  20. package/dist/esm2017/index-676e3eeb.js.map +1 -0
  21. package/dist/esm2017/index.js +1 -1
  22. package/dist/esm2017/internal.js +2 -2
  23. package/dist/esm2017/src/core/strategies/email.d.ts +5 -3
  24. package/dist/esm2017/src/core/strategies/email_and_password.d.ts +6 -4
  25. package/dist/esm2017/src/core/user/account_info.d.ts +3 -1
  26. package/dist/esm2017/src/model/public_types.d.ts +1 -1
  27. package/dist/esm5/{index-4db3aed5.js → index-0dc5b0cf.js} +16 -10
  28. package/dist/esm5/index-0dc5b0cf.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/strategies/email.d.ts +5 -3
  32. package/dist/esm5/src/core/strategies/email_and_password.d.ts +6 -4
  33. package/dist/esm5/src/core/user/account_info.d.ts +3 -1
  34. package/dist/esm5/src/model/public_types.d.ts +1 -1
  35. package/dist/index.webworker.esm5.js +15 -9
  36. package/dist/index.webworker.esm5.js.map +1 -1
  37. package/dist/node/index.js +1 -1
  38. package/dist/node/internal.js +1 -1
  39. package/dist/node/src/core/strategies/email.d.ts +5 -3
  40. package/dist/node/src/core/strategies/email_and_password.d.ts +6 -4
  41. package/dist/node/src/core/user/account_info.d.ts +3 -1
  42. package/dist/node/src/model/public_types.d.ts +1 -1
  43. package/dist/node/{totp-82f035ef.js → totp-375da55d.js} +16 -10
  44. package/dist/node/{totp-82f035ef.js.map → totp-375da55d.js.map} +1 -1
  45. package/dist/node-esm/index.js +1 -1
  46. package/dist/node-esm/internal.js +2 -2
  47. package/dist/node-esm/src/core/strategies/email.d.ts +5 -3
  48. package/dist/node-esm/src/core/strategies/email_and_password.d.ts +6 -4
  49. package/dist/node-esm/src/core/user/account_info.d.ts +3 -1
  50. package/dist/node-esm/src/model/public_types.d.ts +1 -1
  51. package/dist/node-esm/{totp-4f5b6c4c.js → totp-db7d1674.js} +16 -10
  52. package/dist/node-esm/{totp-4f5b6c4c.js.map → totp-db7d1674.js.map} +1 -1
  53. package/dist/rn/{index-815db531.js → index-edc4a42e.js} +16 -10
  54. package/dist/rn/index-edc4a42e.js.map +1 -0
  55. package/dist/rn/index.js +1 -1
  56. package/dist/rn/internal.js +1 -1
  57. package/dist/rn/src/core/strategies/email.d.ts +5 -3
  58. package/dist/rn/src/core/strategies/email_and_password.d.ts +6 -4
  59. package/dist/rn/src/core/user/account_info.d.ts +3 -1
  60. package/dist/rn/src/model/public_types.d.ts +1 -1
  61. package/dist/src/core/strategies/email.d.ts +5 -3
  62. package/dist/src/core/strategies/email_and_password.d.ts +6 -4
  63. package/dist/src/core/user/account_info.d.ts +3 -1
  64. package/dist/src/model/public_types.d.ts +1 -1
  65. package/dist/web-extension-cjs/index.js +1 -1
  66. package/dist/web-extension-cjs/internal.js +1 -1
  67. package/dist/web-extension-cjs/{register-0489fcc8.js → register-0166f73a.js} +16 -10
  68. package/dist/{web-extension-esm2017/register-0cfbfa94.js.map → web-extension-cjs/register-0166f73a.js.map} +1 -1
  69. package/dist/web-extension-cjs/src/core/strategies/email.d.ts +5 -3
  70. package/dist/web-extension-cjs/src/core/strategies/email_and_password.d.ts +6 -4
  71. package/dist/web-extension-cjs/src/core/user/account_info.d.ts +3 -1
  72. package/dist/web-extension-cjs/src/model/public_types.d.ts +1 -1
  73. package/dist/web-extension-esm2017/index.js +2 -2
  74. package/dist/web-extension-esm2017/internal.js +2 -2
  75. package/dist/web-extension-esm2017/package.json +1 -0
  76. package/dist/web-extension-esm2017/{register-0cfbfa94.js → register-e4b7d75d.js} +16 -10
  77. package/dist/{web-extension-cjs/register-0489fcc8.js.map → web-extension-esm2017/register-e4b7d75d.js.map} +1 -1
  78. package/dist/web-extension-esm2017/src/core/strategies/email.d.ts +5 -3
  79. package/dist/web-extension-esm2017/src/core/strategies/email_and_password.d.ts +6 -4
  80. package/dist/web-extension-esm2017/src/core/user/account_info.d.ts +3 -1
  81. package/dist/web-extension-esm2017/src/model/public_types.d.ts +1 -1
  82. package/package.json +6 -6
  83. package/dist/browser-cjs/index-c3c97b2a.js.map +0 -1
  84. package/dist/cordova/popup_redirect-176dbc3d.js.map +0 -1
  85. package/dist/esm2017/index-219c3cac.js.map +0 -1
  86. package/dist/esm5/index-4db3aed5.js.map +0 -1
  87. package/dist/rn/index-815db531.js.map +0 -1
@@ -1233,8 +1233,9 @@ declare abstract class FederatedAuthProvider implements AuthProvider {
1233
1233
 
1234
1234
  /**
1235
1235
  * Gets the list of possible sign in methods for the given email address. This method returns an
1236
- * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of
1237
- * authentication methods available for the given email.
1236
+ * empty list when
1237
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
1238
+ * is enabled, irrespective of the number of authentication methods available for the given email.
1238
1239
  *
1239
1240
  * @remarks
1240
1241
  * This is useful to differentiate methods of sign-in for the same provider, eg.
@@ -1246,7 +1247,8 @@ declare abstract class FederatedAuthProvider implements AuthProvider {
1246
1247
  * @param email - The user's email address.
1247
1248
  *
1248
1249
  * Deprecated. Migrating off of this method is recommended as a security best-practice.
1249
- * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).
1250
+ * Learn more in the Identity Platform documentation for
1251
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}.
1250
1252
  * @public
1251
1253
  */
1252
1254
  export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;
@@ -2869,7 +2871,7 @@ declare interface RecaptchaEnforcementProviderState {
2869
2871
  /**
2870
2872
  * Interface representing reCAPTCHA parameters.
2871
2873
  *
2872
- * See the [reCAPTCHA docs](https://developers.google.com/recaptcha/docs/display#render_param)
2874
+ * See the {@link https://developers.google.com/recaptcha/docs/display#render_param | reCAPTCHA docs}
2873
2875
  * for the list of accepted parameters. All parameters are accepted except for `sitekey`: Firebase Auth
2874
2876
  * provisions a reCAPTCHA for each project and will configure the site key upon rendering.
2875
2877
  *
@@ -3049,7 +3051,8 @@ export declare function sendEmailVerification(user: User, actionCodeSettings?: A
3049
3051
  /**
3050
3052
  * Sends a password reset email to the given email address. This method does not throw an error when
3051
3053
  * there's no user account with the given email address and
3052
- * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
3054
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
3055
+ * is enabled.
3053
3056
  *
3054
3057
  * @remarks
3055
3058
  * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
@@ -3227,9 +3230,10 @@ export declare function signInWithCustomToken(auth: Auth, customToken: string):
3227
3230
  * Asynchronously signs in using an email and password.
3228
3231
  *
3229
3232
  * @remarks
3230
- * Fails with an error if the email address and password do not match.
3231
- * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
3232
- * this method fails with "auth/invalid-credential" in case of an invalid email/password.
3233
+ * Fails with an error if the email address and password do not match. When
3234
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
3235
+ * is enabled, this method fails with "auth/invalid-credential" in case of an invalid
3236
+ * email/password.
3233
3237
  *
3234
3238
  * This method is not supported on {@link Auth} instances created with a
3235
3239
  * {@link @firebase/app#FirebaseServerApp}.
@@ -3675,7 +3679,9 @@ export declare function updateCurrentUser(auth: Auth, user: User | null): Promis
3675
3679
  * @param user - The user.
3676
3680
  * @param newEmail - The new email address.
3677
3681
  *
3678
- * Throws "auth/operation-not-allowed" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
3682
+ * Throws "auth/operation-not-allowed" error when
3683
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
3684
+ * is enabled.
3679
3685
  * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
3680
3686
  *
3681
3687
  * @public
package/dist/auth.d.ts CHANGED
@@ -1523,8 +1523,9 @@ declare abstract class FederatedAuthProvider implements AuthProvider {
1523
1523
 
1524
1524
  /**
1525
1525
  * Gets the list of possible sign in methods for the given email address. This method returns an
1526
- * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of
1527
- * authentication methods available for the given email.
1526
+ * empty list when
1527
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
1528
+ * is enabled, irrespective of the number of authentication methods available for the given email.
1528
1529
  *
1529
1530
  * @remarks
1530
1531
  * This is useful to differentiate methods of sign-in for the same provider, eg.
@@ -1536,7 +1537,8 @@ declare abstract class FederatedAuthProvider implements AuthProvider {
1536
1537
  * @param email - The user's email address.
1537
1538
  *
1538
1539
  * Deprecated. Migrating off of this method is recommended as a security best-practice.
1539
- * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).
1540
+ * Learn more in the Identity Platform documentation for
1541
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}.
1540
1542
  * @public
1541
1543
  */
1542
1544
  export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;
@@ -3341,7 +3343,7 @@ declare interface ReCaptchaLoader {
3341
3343
  /**
3342
3344
  * Interface representing reCAPTCHA parameters.
3343
3345
  *
3344
- * See the [reCAPTCHA docs](https://developers.google.com/recaptcha/docs/display#render_param)
3346
+ * See the {@link https://developers.google.com/recaptcha/docs/display#render_param | reCAPTCHA docs}
3345
3347
  * for the list of accepted parameters. All parameters are accepted except for `sitekey`: Firebase Auth
3346
3348
  * provisions a reCAPTCHA for each project and will configure the site key upon rendering.
3347
3349
  *
@@ -3523,7 +3525,8 @@ export declare function sendEmailVerification(user: User, actionCodeSettings?: A
3523
3525
  /**
3524
3526
  * Sends a password reset email to the given email address. This method does not throw an error when
3525
3527
  * there's no user account with the given email address and
3526
- * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
3528
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
3529
+ * is enabled.
3527
3530
  *
3528
3531
  * @remarks
3529
3532
  * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
@@ -3701,9 +3704,10 @@ export declare function signInWithCustomToken(auth: Auth, customToken: string):
3701
3704
  * Asynchronously signs in using an email and password.
3702
3705
  *
3703
3706
  * @remarks
3704
- * Fails with an error if the email address and password do not match.
3705
- * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
3706
- * this method fails with "auth/invalid-credential" in case of an invalid email/password.
3707
+ * Fails with an error if the email address and password do not match. When
3708
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
3709
+ * is enabled, this method fails with "auth/invalid-credential" in case of an invalid
3710
+ * email/password.
3707
3711
  *
3708
3712
  * This method is not supported on {@link Auth} instances created with a
3709
3713
  * {@link @firebase/app#FirebaseServerApp}.
@@ -4202,7 +4206,9 @@ export declare function updateCurrentUser(auth: Auth, user: User | null): Promis
4202
4206
  * @param user - The user.
4203
4207
  * @param newEmail - The new email address.
4204
4208
  *
4205
- * Throws "auth/operation-not-allowed" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
4209
+ * Throws "auth/operation-not-allowed" error when
4210
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
4211
+ * is enabled.
4206
4212
  * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
4207
4213
  *
4208
4214
  * @public
@@ -5741,7 +5741,8 @@ async function recachePasswordPolicy(auth) {
5741
5741
  /**
5742
5742
  * Sends a password reset email to the given email address. This method does not throw an error when
5743
5743
  * there's no user account with the given email address and
5744
- * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
5744
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
5745
+ * is enabled.
5745
5746
  *
5746
5747
  * @remarks
5747
5748
  * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
@@ -5930,9 +5931,10 @@ async function createUserWithEmailAndPassword(auth, email, password) {
5930
5931
  * Asynchronously signs in using an email and password.
5931
5932
  *
5932
5933
  * @remarks
5933
- * Fails with an error if the email address and password do not match.
5934
- * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
5935
- * this method fails with "auth/invalid-credential" in case of an invalid email/password.
5934
+ * Fails with an error if the email address and password do not match. When
5935
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
5936
+ * is enabled, this method fails with "auth/invalid-credential" in case of an invalid
5937
+ * email/password.
5936
5938
  *
5937
5939
  * This method is not supported on {@link Auth} instances created with a
5938
5940
  * {@link @firebase/app#FirebaseServerApp}.
@@ -6133,8 +6135,9 @@ async function createAuthUri(auth, request) {
6133
6135
  */
6134
6136
  /**
6135
6137
  * Gets the list of possible sign in methods for the given email address. This method returns an
6136
- * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of
6137
- * authentication methods available for the given email.
6138
+ * empty list when
6139
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
6140
+ * is enabled, irrespective of the number of authentication methods available for the given email.
6138
6141
  *
6139
6142
  * @remarks
6140
6143
  * This is useful to differentiate methods of sign-in for the same provider, eg.
@@ -6146,7 +6149,8 @@ async function createAuthUri(auth, request) {
6146
6149
  * @param email - The user's email address.
6147
6150
  *
6148
6151
  * Deprecated. Migrating off of this method is recommended as a security best-practice.
6149
- * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).
6152
+ * Learn more in the Identity Platform documentation for
6153
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}.
6150
6154
  * @public
6151
6155
  */
6152
6156
  async function fetchSignInMethodsForEmail(auth, email) {
@@ -6343,7 +6347,9 @@ async function updateProfile(user, { displayName, photoURL: photoUrl }) {
6343
6347
  * @param user - The user.
6344
6348
  * @param newEmail - The new email address.
6345
6349
  *
6346
- * Throws "auth/operation-not-allowed" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
6350
+ * Throws "auth/operation-not-allowed" error when
6351
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
6352
+ * is enabled.
6347
6353
  * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
6348
6354
  *
6349
6355
  * @public
@@ -10464,7 +10470,7 @@ function _isEmptyString(input) {
10464
10470
  }
10465
10471
 
10466
10472
  var name = "@firebase/auth";
10467
- var version = "1.7.1";
10473
+ var version = "1.7.2-canary.4b49630c7";
10468
10474
 
10469
10475
  /**
10470
10476
  * @license
@@ -10825,4 +10831,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
10825
10831
  exports.validatePassword = validatePassword;
10826
10832
  exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
10827
10833
  exports.verifyPasswordResetCode = verifyPasswordResetCode;
10828
- //# sourceMappingURL=index-c3c97b2a.js.map
10834
+ //# sourceMappingURL=index-93e01d60.js.map