@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.
- package/dist/auth-public.d.ts +15 -9
- package/dist/auth.d.ts +15 -9
- package/dist/browser-cjs/{index-c3c97b2a.js → index-c762f4a4.js} +16 -10
- package/dist/browser-cjs/index-c762f4a4.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-8d71373a.js} +16 -10
- package/dist/cordova/popup_redirect-8d71373a.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-9b3d1705.js} +16 -10
- package/dist/esm2017/index-9b3d1705.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-1df8d5d9.js} +16 -10
- package/dist/esm5/index-1df8d5d9.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-a52298d8.js} +16 -10
- package/dist/node/{totp-82f035ef.js.map → totp-a52298d8.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-65ab3c97.js} +16 -10
- package/dist/node-esm/{totp-4f5b6c4c.js.map → totp-65ab3c97.js.map} +1 -1
- package/dist/rn/{index-815db531.js → index-68dbe833.js} +16 -10
- package/dist/rn/index-68dbe833.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-5c125f50.js} +16 -10
- package/dist/{web-extension-esm2017/register-0cfbfa94.js.map → web-extension-cjs/register-5c125f50.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-ce82eaec.js} +16 -10
- package/dist/{web-extension-cjs/register-0489fcc8.js.map → web-extension-esm2017/register-ce82eaec.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/auth-public.d.ts
CHANGED
|
@@ -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
|
|
1237
|
-
*
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
3232
|
-
* this method fails with "auth/invalid-credential" in case of an invalid
|
|
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
|
|
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
|
|
1527
|
-
*
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
3706
|
-
* this method fails with "auth/invalid-credential" in case of an invalid
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5935
|
-
* this method fails with "auth/invalid-credential" in case of an invalid
|
|
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
|
|
6137
|
-
*
|
|
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
|
|
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
|
|
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.
|
|
10473
|
+
var version = "1.7.2-canary.7709f1016";
|
|
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-
|
|
10834
|
+
//# sourceMappingURL=index-c762f4a4.js.map
|