@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.
- package/dist/auth-public.d.ts +15 -9
- package/dist/auth.d.ts +15 -9
- package/dist/browser-cjs/{index-c3c97b2a.js → index-93e01d60.js} +16 -10
- package/dist/browser-cjs/index-93e01d60.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/core/strategies/email.d.ts +5 -3
- package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/browser-cjs/src/core/user/account_info.d.ts +3 -1
- package/dist/browser-cjs/src/model/public_types.d.ts +1 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-176dbc3d.js → popup_redirect-cfe3c3cc.js} +16 -10
- package/dist/cordova/popup_redirect-cfe3c3cc.js.map +1 -0
- package/dist/cordova/src/core/strategies/email.d.ts +5 -3
- package/dist/cordova/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/cordova/src/core/user/account_info.d.ts +3 -1
- package/dist/cordova/src/model/public_types.d.ts +1 -1
- package/dist/esm2017/{index-219c3cac.js → index-676e3eeb.js} +16 -10
- package/dist/esm2017/index-676e3eeb.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/strategies/email.d.ts +5 -3
- package/dist/esm2017/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/esm2017/src/core/user/account_info.d.ts +3 -1
- package/dist/esm2017/src/model/public_types.d.ts +1 -1
- package/dist/esm5/{index-4db3aed5.js → index-0dc5b0cf.js} +16 -10
- package/dist/esm5/index-0dc5b0cf.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/strategies/email.d.ts +5 -3
- package/dist/esm5/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/esm5/src/core/user/account_info.d.ts +3 -1
- package/dist/esm5/src/model/public_types.d.ts +1 -1
- package/dist/index.webworker.esm5.js +15 -9
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/core/strategies/email.d.ts +5 -3
- package/dist/node/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/node/src/core/user/account_info.d.ts +3 -1
- package/dist/node/src/model/public_types.d.ts +1 -1
- package/dist/node/{totp-82f035ef.js → totp-375da55d.js} +16 -10
- package/dist/node/{totp-82f035ef.js.map → totp-375da55d.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/core/strategies/email.d.ts +5 -3
- package/dist/node-esm/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/node-esm/src/core/user/account_info.d.ts +3 -1
- package/dist/node-esm/src/model/public_types.d.ts +1 -1
- package/dist/node-esm/{totp-4f5b6c4c.js → totp-db7d1674.js} +16 -10
- package/dist/node-esm/{totp-4f5b6c4c.js.map → totp-db7d1674.js.map} +1 -1
- package/dist/rn/{index-815db531.js → index-edc4a42e.js} +16 -10
- package/dist/rn/index-edc4a42e.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/src/core/strategies/email.d.ts +5 -3
- package/dist/rn/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/rn/src/core/user/account_info.d.ts +3 -1
- package/dist/rn/src/model/public_types.d.ts +1 -1
- package/dist/src/core/strategies/email.d.ts +5 -3
- package/dist/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/src/core/user/account_info.d.ts +3 -1
- package/dist/src/model/public_types.d.ts +1 -1
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +1 -1
- package/dist/web-extension-cjs/{register-0489fcc8.js → register-0166f73a.js} +16 -10
- package/dist/{web-extension-esm2017/register-0cfbfa94.js.map → web-extension-cjs/register-0166f73a.js.map} +1 -1
- package/dist/web-extension-cjs/src/core/strategies/email.d.ts +5 -3
- package/dist/web-extension-cjs/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/web-extension-cjs/src/core/user/account_info.d.ts +3 -1
- package/dist/web-extension-cjs/src/model/public_types.d.ts +1 -1
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +2 -2
- package/dist/web-extension-esm2017/package.json +1 -0
- package/dist/web-extension-esm2017/{register-0cfbfa94.js → register-e4b7d75d.js} +16 -10
- package/dist/{web-extension-cjs/register-0489fcc8.js.map → web-extension-esm2017/register-e4b7d75d.js.map} +1 -1
- package/dist/web-extension-esm2017/src/core/strategies/email.d.ts +5 -3
- package/dist/web-extension-esm2017/src/core/strategies/email_and_password.d.ts +6 -4
- package/dist/web-extension-esm2017/src/core/user/account_info.d.ts +3 -1
- package/dist/web-extension-esm2017/src/model/public_types.d.ts +1 -1
- package/package.json +6 -6
- package/dist/browser-cjs/index-c3c97b2a.js.map +0 -1
- package/dist/cordova/popup_redirect-176dbc3d.js.map +0 -1
- package/dist/esm2017/index-219c3cac.js.map +0 -1
- package/dist/esm5/index-4db3aed5.js.map +0 -1
- package/dist/rn/index-815db531.js.map +0 -1
package/dist/rn/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var app = require('@firebase/app');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-edc4a42e.js');
|
|
7
7
|
var tslib = require('tslib');
|
|
8
8
|
require('@firebase/util');
|
|
9
9
|
require('@firebase/component');
|
package/dist/rn/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-edc4a42e.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
|
|
21
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
121
|
-
* this method fails with "auth/invalid-credential" in case of an invalid
|
|
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
|
|
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
|
|
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
|
*
|
|
@@ -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
|
|
21
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
121
|
-
* this method fails with "auth/invalid-credential" in case of an invalid
|
|
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
|
|
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
|
|
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
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var register = require('./register-
|
|
5
|
+
var register = require('./register-0166f73a.js');
|
|
6
6
|
var app = require('@firebase/app');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
require('tslib');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var register = require('./register-
|
|
5
|
+
var register = require('./register-0166f73a.js');
|
|
6
6
|
var util = require('@firebase/util');
|
|
7
7
|
var app = require('@firebase/app');
|
|
8
8
|
require('tslib');
|
|
@@ -5642,7 +5642,8 @@ async function recachePasswordPolicy(auth) {
|
|
|
5642
5642
|
/**
|
|
5643
5643
|
* Sends a password reset email to the given email address. This method does not throw an error when
|
|
5644
5644
|
* there's no user account with the given email address and
|
|
5645
|
-
*
|
|
5645
|
+
* {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
|
|
5646
|
+
* is enabled.
|
|
5646
5647
|
*
|
|
5647
5648
|
* @remarks
|
|
5648
5649
|
* To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
|
|
@@ -5831,9 +5832,10 @@ async function createUserWithEmailAndPassword(auth, email, password) {
|
|
|
5831
5832
|
* Asynchronously signs in using an email and password.
|
|
5832
5833
|
*
|
|
5833
5834
|
* @remarks
|
|
5834
|
-
* Fails with an error if the email address and password do not match.
|
|
5835
|
-
*
|
|
5836
|
-
* this method fails with "auth/invalid-credential" in case of an invalid
|
|
5835
|
+
* Fails with an error if the email address and password do not match. When
|
|
5836
|
+
* {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
|
|
5837
|
+
* is enabled, this method fails with "auth/invalid-credential" in case of an invalid
|
|
5838
|
+
* email/password.
|
|
5837
5839
|
*
|
|
5838
5840
|
* This method is not supported on {@link Auth} instances created with a
|
|
5839
5841
|
* {@link @firebase/app#FirebaseServerApp}.
|
|
@@ -6034,8 +6036,9 @@ async function createAuthUri(auth, request) {
|
|
|
6034
6036
|
*/
|
|
6035
6037
|
/**
|
|
6036
6038
|
* Gets the list of possible sign in methods for the given email address. This method returns an
|
|
6037
|
-
* empty list when
|
|
6038
|
-
*
|
|
6039
|
+
* empty list when
|
|
6040
|
+
* {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
|
|
6041
|
+
* is enabled, irrespective of the number of authentication methods available for the given email.
|
|
6039
6042
|
*
|
|
6040
6043
|
* @remarks
|
|
6041
6044
|
* This is useful to differentiate methods of sign-in for the same provider, eg.
|
|
@@ -6047,7 +6050,8 @@ async function createAuthUri(auth, request) {
|
|
|
6047
6050
|
* @param email - The user's email address.
|
|
6048
6051
|
*
|
|
6049
6052
|
* Deprecated. Migrating off of this method is recommended as a security best-practice.
|
|
6050
|
-
* Learn more in the Identity Platform documentation for
|
|
6053
|
+
* Learn more in the Identity Platform documentation for
|
|
6054
|
+
* {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}.
|
|
6051
6055
|
* @public
|
|
6052
6056
|
*/
|
|
6053
6057
|
async function fetchSignInMethodsForEmail(auth, email) {
|
|
@@ -6244,7 +6248,9 @@ async function updateProfile(user, { displayName, photoURL: photoUrl }) {
|
|
|
6244
6248
|
* @param user - The user.
|
|
6245
6249
|
* @param newEmail - The new email address.
|
|
6246
6250
|
*
|
|
6247
|
-
* Throws "auth/operation-not-allowed" error when
|
|
6251
|
+
* Throws "auth/operation-not-allowed" error when
|
|
6252
|
+
* {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
|
|
6253
|
+
* is enabled.
|
|
6248
6254
|
* Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
|
|
6249
6255
|
*
|
|
6250
6256
|
* @public
|
|
@@ -7751,7 +7757,7 @@ function _isEmptyString(input) {
|
|
|
7751
7757
|
}
|
|
7752
7758
|
|
|
7753
7759
|
var name = "@firebase/auth";
|
|
7754
|
-
var version = "1.7.
|
|
7760
|
+
var version = "1.7.2-canary.4b49630c7";
|
|
7755
7761
|
|
|
7756
7762
|
/**
|
|
7757
7763
|
* @license
|
|
@@ -8013,4 +8019,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
|
|
|
8013
8019
|
exports.validatePassword = validatePassword;
|
|
8014
8020
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
8015
8021
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
8016
|
-
//# sourceMappingURL=register-
|
|
8022
|
+
//# sourceMappingURL=register-0166f73a.js.map
|