@firebase/auth 1.7.1 → 1.7.2-canary.7709f1016

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-c762f4a4.js} +16 -10
  4. package/dist/browser-cjs/index-c762f4a4.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-8d71373a.js} +16 -10
  14. package/dist/cordova/popup_redirect-8d71373a.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-9b3d1705.js} +16 -10
  20. package/dist/esm2017/index-9b3d1705.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-1df8d5d9.js} +16 -10
  28. package/dist/esm5/index-1df8d5d9.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-a52298d8.js} +16 -10
  44. package/dist/node/{totp-82f035ef.js.map → totp-a52298d8.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-65ab3c97.js} +16 -10
  52. package/dist/node-esm/{totp-4f5b6c4c.js.map → totp-65ab3c97.js.map} +1 -1
  53. package/dist/rn/{index-815db531.js → index-68dbe833.js} +16 -10
  54. package/dist/rn/index-68dbe833.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-5c125f50.js} +16 -10
  68. package/dist/{web-extension-esm2017/register-0cfbfa94.js.map → web-extension-cjs/register-5c125f50.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-ce82eaec.js} +16 -10
  77. package/dist/{web-extension-cjs/register-0489fcc8.js.map → web-extension-esm2017/register-ce82eaec.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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var totp = require('./totp-82f035ef.js');
5
+ var totp = require('./totp-a52298d8.js');
6
6
  require('tslib');
7
7
  require('@firebase/app');
8
8
  require('@firebase/util');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var totp = require('./totp-82f035ef.js');
5
+ var totp = require('./totp-a52298d8.js');
6
6
  var tslib = require('tslib');
7
7
  var util = require('@firebase/util');
8
8
  var app = require('@firebase/app');
@@ -17,8 +17,9 @@
17
17
  import { ActionCodeSettings, Auth, User } from '../../model/public_types';
18
18
  /**
19
19
  * Gets the list of possible sign in methods for the given email address. This method returns an
20
- * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of
21
- * authentication methods available for the given email.
20
+ * empty list when
21
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
22
+ * is enabled, irrespective of the number of authentication methods available for the given email.
22
23
  *
23
24
  * @remarks
24
25
  * This is useful to differentiate methods of sign-in for the same provider, eg.
@@ -30,7 +31,8 @@ import { ActionCodeSettings, Auth, User } from '../../model/public_types';
30
31
  * @param email - The user's email address.
31
32
  *
32
33
  * Deprecated. Migrating off of this method is recommended as a security best-practice.
33
- * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).
34
+ * Learn more in the Identity Platform documentation for
35
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}.
34
36
  * @public
35
37
  */
36
38
  export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;
@@ -18,7 +18,8 @@ import { ActionCodeInfo, ActionCodeSettings, Auth, UserCredential } from '../../
18
18
  /**
19
19
  * Sends a password reset email to the given email address. This method does not throw an error when
20
20
  * there's no user account with the given email address and
21
- * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
21
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
22
+ * is enabled.
22
23
  *
23
24
  * @remarks
24
25
  * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
@@ -116,9 +117,10 @@ export declare function createUserWithEmailAndPassword(auth: Auth, email: string
116
117
  * Asynchronously signs in using an email and password.
117
118
  *
118
119
  * @remarks
119
- * Fails with an error if the email address and password do not match.
120
- * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
121
- * this method fails with "auth/invalid-credential" in case of an invalid email/password.
120
+ * Fails with an error if the email address and password do not match. When
121
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
122
+ * is enabled, this method fails with "auth/invalid-credential" in case of an invalid
123
+ * email/password.
122
124
  *
123
125
  * This method is not supported on {@link Auth} instances created with a
124
126
  * {@link @firebase/app#FirebaseServerApp}.
@@ -44,7 +44,9 @@ export declare function updateProfile(user: User, { displayName, photoURL: photo
44
44
  * @param user - The user.
45
45
  * @param newEmail - The new email address.
46
46
  *
47
- * Throws "auth/operation-not-allowed" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
47
+ * Throws "auth/operation-not-allowed" error when
48
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
49
+ * is enabled.
48
50
  * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
49
51
  *
50
52
  * @public
@@ -52,7 +52,7 @@ export interface Config {
52
52
  /**
53
53
  * Interface representing reCAPTCHA parameters.
54
54
  *
55
- * See the [reCAPTCHA docs](https://developers.google.com/recaptcha/docs/display#render_param)
55
+ * See the {@link https://developers.google.com/recaptcha/docs/display#render_param | reCAPTCHA docs}
56
56
  * for the list of accepted parameters. All parameters are accepted except for `sitekey`: Firebase Auth
57
57
  * provisions a reCAPTCHA for each project and will configure the site key upon rendering.
58
58
  *
@@ -6712,7 +6712,8 @@ function recachePasswordPolicy(auth) {
6712
6712
  /**
6713
6713
  * Sends a password reset email to the given email address. This method does not throw an error when
6714
6714
  * there's no user account with the given email address and
6715
- * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
6715
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
6716
+ * is enabled.
6716
6717
  *
6717
6718
  * @remarks
6718
6719
  * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
@@ -6958,9 +6959,10 @@ function createUserWithEmailAndPassword(auth, email, password) {
6958
6959
  * Asynchronously signs in using an email and password.
6959
6960
  *
6960
6961
  * @remarks
6961
- * Fails with an error if the email address and password do not match.
6962
- * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
6963
- * this method fails with "auth/invalid-credential" in case of an invalid email/password.
6962
+ * Fails with an error if the email address and password do not match. When
6963
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
6964
+ * is enabled, this method fails with "auth/invalid-credential" in case of an invalid
6965
+ * email/password.
6964
6966
  *
6965
6967
  * This method is not supported on {@link Auth} instances created with a
6966
6968
  * {@link @firebase/app#FirebaseServerApp}.
@@ -7184,8 +7186,9 @@ function createAuthUri(auth, request) {
7184
7186
  */
7185
7187
  /**
7186
7188
  * Gets the list of possible sign in methods for the given email address. This method returns an
7187
- * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of
7188
- * authentication methods available for the given email.
7189
+ * empty list when
7190
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
7191
+ * is enabled, irrespective of the number of authentication methods available for the given email.
7189
7192
  *
7190
7193
  * @remarks
7191
7194
  * This is useful to differentiate methods of sign-in for the same provider, eg.
@@ -7197,7 +7200,8 @@ function createAuthUri(auth, request) {
7197
7200
  * @param email - The user's email address.
7198
7201
  *
7199
7202
  * Deprecated. Migrating off of this method is recommended as a security best-practice.
7200
- * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).
7203
+ * Learn more in the Identity Platform documentation for
7204
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}.
7201
7205
  * @public
7202
7206
  */
7203
7207
  function fetchSignInMethodsForEmail(auth, email) {
@@ -7455,7 +7459,9 @@ function updateProfile(user, _a) {
7455
7459
  * @param user - The user.
7456
7460
  * @param newEmail - The new email address.
7457
7461
  *
7458
- * Throws "auth/operation-not-allowed" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.
7462
+ * Throws "auth/operation-not-allowed" error when
7463
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
7464
+ * is enabled.
7459
7465
  * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
7460
7466
  *
7461
7467
  * @public
@@ -8182,7 +8188,7 @@ function multiFactor(user) {
8182
8188
  }
8183
8189
 
8184
8190
  var name = "@firebase/auth";
8185
- var version = "1.7.1";
8191
+ var version = "1.7.2-canary.7709f1016";
8186
8192
 
8187
8193
  /**
8188
8194
  * @license
@@ -8757,4 +8763,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
8757
8763
  exports.validatePassword = validatePassword;
8758
8764
  exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
8759
8765
  exports.verifyPasswordResetCode = verifyPasswordResetCode;
8760
- //# sourceMappingURL=totp-82f035ef.js.map
8766
+ //# sourceMappingURL=totp-a52298d8.js.map