@firebase/auth 0.23.2-canary.e12e7f535 → 0.23.2-canary.e522056fc
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 +43 -3
- package/dist/auth.d.ts +43 -3
- package/dist/browser-cjs/{index-6efa45d4.js → index-7aac2604.js} +68 -13
- package/dist/browser-cjs/index-7aac2604.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/index.d.ts +4 -0
- package/dist/browser-cjs/src/mfa/mfa_session.d.ts +3 -3
- package/dist/browser-cjs/src/model/public_types.d.ts +2 -0
- package/dist/browser-cjs/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/browser-cjs/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/browser-cjs/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/browser-cjs/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/browser-cjs/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +38 -10
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-03a0e499.js → popup_redirect-5e62d3e3.js} +35 -8
- package/dist/cordova/{popup_redirect-03a0e499.js.map → popup_redirect-5e62d3e3.js.map} +1 -1
- package/dist/cordova/src/core/index.d.ts +4 -0
- package/dist/cordova/src/mfa/mfa_session.d.ts +3 -3
- package/dist/cordova/src/model/public_types.d.ts +2 -0
- package/dist/cordova/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/cordova/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/cordova/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/cordova/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/cordova/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/cordova/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/esm2017/{index-2969aa9a.js → index-31f2f313.js} +68 -13
- package/dist/esm2017/index-31f2f313.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/index.d.ts +4 -0
- package/dist/esm2017/src/mfa/mfa_session.d.ts +3 -3
- package/dist/esm2017/src/model/public_types.d.ts +2 -0
- package/dist/esm2017/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/esm2017/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/esm2017/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/esm2017/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/esm2017/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/esm2017/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/esm2017/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/esm5/{index-9479a8cd.js → index-cf3bd4cb.js} +71 -16
- package/dist/esm5/index-cf3bd4cb.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/index.d.ts +4 -0
- package/dist/esm5/src/mfa/mfa_session.d.ts +3 -3
- package/dist/esm5/src/model/public_types.d.ts +2 -0
- package/dist/esm5/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/esm5/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/esm5/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/esm5/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/esm5/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/esm5/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/esm5/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/index.webworker.esm5.js +26 -6
- 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/internal.js.map +1 -1
- package/dist/node/src/core/index.d.ts +4 -0
- package/dist/node/src/mfa/mfa_session.d.ts +3 -3
- package/dist/node/src/model/public_types.d.ts +2 -0
- package/dist/node/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/node/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/node/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/node/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/node/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/node/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/node/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/node/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/node/{totp-976deb0d.js → totp-dd7ce942.js} +34 -13
- package/dist/node/{totp-976deb0d.js.map → totp-dd7ce942.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/index.d.ts +4 -0
- package/dist/node-esm/src/mfa/mfa_session.d.ts +3 -3
- package/dist/node-esm/src/model/public_types.d.ts +2 -0
- package/dist/node-esm/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/node-esm/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/node-esm/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/node-esm/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/node-esm/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/node-esm/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/node-esm/{totp-6ab1445c.js → totp-f45afc87.js} +31 -10
- package/dist/node-esm/{totp-6ab1445c.js.map → totp-f45afc87.js.map} +1 -1
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +24 -9
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-dd77fd2b.js → phone-8c99ec29.js} +48 -8
- package/dist/rn/{phone-dd77fd2b.js.map → phone-8c99ec29.js.map} +1 -1
- package/dist/rn/src/core/index.d.ts +4 -0
- package/dist/rn/src/mfa/mfa_session.d.ts +3 -3
- package/dist/rn/src/model/public_types.d.ts +2 -0
- package/dist/rn/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/rn/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/rn/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/rn/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/rn/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/rn/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/rn/test/helpers/integration/helpers.d.ts +1 -0
- package/dist/src/core/index.d.ts +4 -0
- package/dist/src/mfa/mfa_session.d.ts +3 -3
- package/dist/src/model/public_types.d.ts +2 -0
- package/dist/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
- package/dist/src/platform_browser/popup_redirect.d.ts +3 -0
- package/dist/src/platform_browser/providers/phone.d.ts +3 -0
- package/dist/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
- package/dist/src/platform_browser/strategies/phone.d.ts +12 -1
- package/dist/src/platform_browser/strategies/popup.d.ts +5 -1
- package/dist/src/platform_browser/strategies/redirect.d.ts +8 -1
- package/dist/test/helpers/integration/helpers.d.ts +1 -0
- package/package.json +6 -6
- package/dist/browser-cjs/index-6efa45d4.js.map +0 -1
- package/dist/esm2017/index-2969aa9a.js.map +0 -1
- package/dist/esm5/index-9479a8cd.js.map +0 -1
package/dist/auth-public.d.ts
CHANGED
|
@@ -303,6 +303,8 @@ export declare interface Auth {
|
|
|
303
303
|
* remembered or not. It also makes it easier to never persist the Auth state for applications
|
|
304
304
|
* that are shared by other users or have sensitive data.
|
|
305
305
|
*
|
|
306
|
+
* This method does not work in a Node.js environment.
|
|
307
|
+
*
|
|
306
308
|
* @example
|
|
307
309
|
* ```javascript
|
|
308
310
|
* auth.setPersistence(browserSessionPersistence);
|
|
@@ -730,6 +732,9 @@ export declare const browserLocalPersistence: Persistence;
|
|
|
730
732
|
* An implementation of {@link PopupRedirectResolver} suitable for browser
|
|
731
733
|
* based applications.
|
|
732
734
|
*
|
|
735
|
+
* @remarks
|
|
736
|
+
* This method does not work in a Node.js environment.
|
|
737
|
+
*
|
|
733
738
|
* @public
|
|
734
739
|
*/
|
|
735
740
|
export declare const browserPopupRedirectResolver: PopupRedirectResolver;
|
|
@@ -1299,6 +1304,8 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1299
1304
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
1300
1305
|
* error. If no redirect operation was called, returns `null`.
|
|
1301
1306
|
*
|
|
1307
|
+
* This method does not work in a Node.js environment.
|
|
1308
|
+
*
|
|
1302
1309
|
* @example
|
|
1303
1310
|
* ```javascript
|
|
1304
1311
|
* // Sign in using a redirect.
|
|
@@ -1588,6 +1595,8 @@ export declare function initializeAuth(app: FirebaseApp, deps?: Dependencies): A
|
|
|
1588
1595
|
* Thus, by calling this optional method, you will reduce the latency of future auth flows.
|
|
1589
1596
|
* Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.
|
|
1590
1597
|
*
|
|
1598
|
+
* This method does not work in a Node.js environment.
|
|
1599
|
+
*
|
|
1591
1600
|
* @example
|
|
1592
1601
|
* ```javascript
|
|
1593
1602
|
* initializeRecaptchaConfig(auth);
|
|
@@ -1632,6 +1641,9 @@ export declare function linkWithCredential(user: User, credential: AuthCredentia
|
|
|
1632
1641
|
/**
|
|
1633
1642
|
* Links the user account with the given phone number.
|
|
1634
1643
|
*
|
|
1644
|
+
* @remarks
|
|
1645
|
+
* This method does not work in a Node.js environment.
|
|
1646
|
+
*
|
|
1635
1647
|
* @param user - The user.
|
|
1636
1648
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
1637
1649
|
* @param appVerifier - The {@link ApplicationVerifier}.
|
|
@@ -1646,6 +1658,7 @@ export declare function linkWithPhoneNumber(user: User, phoneNumber: string, app
|
|
|
1646
1658
|
* @remarks
|
|
1647
1659
|
* If the linking is successful, the returned result will contain the user and the provider's credential.
|
|
1648
1660
|
*
|
|
1661
|
+
* This method does not work in a Node.js environment.
|
|
1649
1662
|
*
|
|
1650
1663
|
* @example
|
|
1651
1664
|
* ```javascript
|
|
@@ -1673,6 +1686,8 @@ export declare function linkWithPopup(user: User, provider: AuthProvider, resolv
|
|
|
1673
1686
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
1674
1687
|
* | best practices} when using {@link linkWithRedirect}.
|
|
1675
1688
|
*
|
|
1689
|
+
* This method does not work in a Node.js environment.
|
|
1690
|
+
*
|
|
1676
1691
|
* @example
|
|
1677
1692
|
* ```javascript
|
|
1678
1693
|
* // Sign in using some other provider.
|
|
@@ -1692,7 +1707,6 @@ export declare function linkWithPopup(user: User, provider: AuthProvider, resolv
|
|
|
1692
1707
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
1693
1708
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
1694
1709
|
*
|
|
1695
|
-
*
|
|
1696
1710
|
* @public
|
|
1697
1711
|
*/
|
|
1698
1712
|
export declare function linkWithRedirect(user: User, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<never>;
|
|
@@ -2274,6 +2288,9 @@ export declare class PhoneAuthCredential extends AuthCredential {
|
|
|
2274
2288
|
/**
|
|
2275
2289
|
* Provider for generating an {@link PhoneAuthCredential}.
|
|
2276
2290
|
*
|
|
2291
|
+
* @remarks
|
|
2292
|
+
* `PhoneAuthProvider` does not work in a Node.js environment.
|
|
2293
|
+
*
|
|
2277
2294
|
* @example
|
|
2278
2295
|
* ```javascript
|
|
2279
2296
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -2450,6 +2467,9 @@ export declare class PhoneMultiFactorGenerator {
|
|
|
2450
2467
|
/**
|
|
2451
2468
|
* Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.
|
|
2452
2469
|
*
|
|
2470
|
+
* @remarks
|
|
2471
|
+
* This method does not work in a Node.js environment.
|
|
2472
|
+
*
|
|
2453
2473
|
* @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
|
|
2454
2474
|
* @returns A {@link PhoneMultiFactorAssertion} which can be used with
|
|
2455
2475
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
@@ -2601,7 +2621,10 @@ export declare function reauthenticateWithCredential(user: User, credential: Aut
|
|
|
2601
2621
|
/**
|
|
2602
2622
|
* Re-authenticates a user using a fresh phone credential.
|
|
2603
2623
|
*
|
|
2604
|
-
* @remarks
|
|
2624
|
+
* @remarks
|
|
2625
|
+
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
2626
|
+
*
|
|
2627
|
+
* This method does not work in a Node.js environment.
|
|
2605
2628
|
*
|
|
2606
2629
|
* @param user - The user.
|
|
2607
2630
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -2619,6 +2642,8 @@ export declare function reauthenticateWithPhoneNumber(user: User, phoneNumber: s
|
|
|
2619
2642
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
2620
2643
|
* provider's credential.
|
|
2621
2644
|
*
|
|
2645
|
+
* This method does not work in a Node.js environment.
|
|
2646
|
+
*
|
|
2622
2647
|
* @example
|
|
2623
2648
|
* ```javascript
|
|
2624
2649
|
* // Sign in using a popup.
|
|
@@ -2645,6 +2670,8 @@ export declare function reauthenticateWithPopup(user: User, provider: AuthProvid
|
|
|
2645
2670
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
2646
2671
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
2647
2672
|
*
|
|
2673
|
+
* This method does not work in a Node.js environment.
|
|
2674
|
+
*
|
|
2648
2675
|
* @example
|
|
2649
2676
|
* ```javascript
|
|
2650
2677
|
* // Sign in using a redirect.
|
|
@@ -2716,6 +2743,9 @@ export declare interface RecaptchaParameters {
|
|
|
2716
2743
|
/**
|
|
2717
2744
|
* An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.
|
|
2718
2745
|
*
|
|
2746
|
+
* @remarks
|
|
2747
|
+
* `RecaptchaVerifier` does not work in a Node.js environment.
|
|
2748
|
+
*
|
|
2719
2749
|
* @public
|
|
2720
2750
|
*/
|
|
2721
2751
|
export declare class RecaptchaVerifier implements ApplicationVerifierInternal {
|
|
@@ -2950,6 +2980,8 @@ export declare function sendSignInLinkToEmail(auth: Auth, email: string, actionC
|
|
|
2950
2980
|
* remembered or not. It also makes it easier to never persist the `Auth` state for applications
|
|
2951
2981
|
* that are shared by other users or have sensitive data.
|
|
2952
2982
|
*
|
|
2983
|
+
* This method does not work in a Node.js environment.
|
|
2984
|
+
*
|
|
2953
2985
|
* @example
|
|
2954
2986
|
* ```javascript
|
|
2955
2987
|
* setPersistence(auth, browserSessionPersistence);
|
|
@@ -3103,6 +3135,8 @@ export declare function signInWithEmailLink(auth: Auth, email: string, emailLink
|
|
|
3103
3135
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
3104
3136
|
* third-party {@link ApplicationVerifier} implementation.
|
|
3105
3137
|
*
|
|
3138
|
+
* This method does not work in a Node.js environment.
|
|
3139
|
+
*
|
|
3106
3140
|
* @example
|
|
3107
3141
|
* ```javascript
|
|
3108
3142
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -3131,6 +3165,8 @@ export declare function signInWithPhoneNumber(auth: Auth, phoneNumber: string, a
|
|
|
3131
3165
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
3132
3166
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
3133
3167
|
*
|
|
3168
|
+
* This method does not work in a Node.js environment.
|
|
3169
|
+
*
|
|
3134
3170
|
* @example
|
|
3135
3171
|
* ```javascript
|
|
3136
3172
|
* // Sign in using a popup.
|
|
@@ -3150,7 +3186,6 @@ export declare function signInWithPhoneNumber(auth: Auth, phoneNumber: string, a
|
|
|
3150
3186
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
3151
3187
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
3152
3188
|
*
|
|
3153
|
-
*
|
|
3154
3189
|
* @public
|
|
3155
3190
|
*/
|
|
3156
3191
|
export declare function signInWithPopup(auth: Auth, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
@@ -3163,6 +3198,8 @@ export declare function signInWithPopup(auth: Auth, provider: AuthProvider, reso
|
|
|
3163
3198
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
3164
3199
|
* | best practices} when using {@link signInWithRedirect}.
|
|
3165
3200
|
*
|
|
3201
|
+
* This method does not work in a Node.js environment.
|
|
3202
|
+
*
|
|
3166
3203
|
* @example
|
|
3167
3204
|
* ```javascript
|
|
3168
3205
|
* // Sign in using a redirect.
|
|
@@ -3475,6 +3512,9 @@ export declare function updatePassword(user: User, newPassword: string): Promise
|
|
|
3475
3512
|
/**
|
|
3476
3513
|
* Updates the user's phone number.
|
|
3477
3514
|
*
|
|
3515
|
+
* @remarks
|
|
3516
|
+
* This method does not work in a Node.js environment.
|
|
3517
|
+
*
|
|
3478
3518
|
* @example
|
|
3479
3519
|
* ```
|
|
3480
3520
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
package/dist/auth.d.ts
CHANGED
|
@@ -312,6 +312,8 @@ export declare interface Auth {
|
|
|
312
312
|
* remembered or not. It also makes it easier to never persist the Auth state for applications
|
|
313
313
|
* that are shared by other users or have sensitive data.
|
|
314
314
|
*
|
|
315
|
+
* This method does not work in a Node.js environment.
|
|
316
|
+
*
|
|
315
317
|
* @example
|
|
316
318
|
* ```javascript
|
|
317
319
|
* auth.setPersistence(browserSessionPersistence);
|
|
@@ -972,6 +974,9 @@ export declare const browserLocalPersistence: Persistence;
|
|
|
972
974
|
* An implementation of {@link PopupRedirectResolver} suitable for browser
|
|
973
975
|
* based applications.
|
|
974
976
|
*
|
|
977
|
+
* @remarks
|
|
978
|
+
* This method does not work in a Node.js environment.
|
|
979
|
+
*
|
|
975
980
|
* @public
|
|
976
981
|
*/
|
|
977
982
|
export declare const browserPopupRedirectResolver: PopupRedirectResolver;
|
|
@@ -1591,6 +1596,8 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1591
1596
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
1592
1597
|
* error. If no redirect operation was called, returns `null`.
|
|
1593
1598
|
*
|
|
1599
|
+
* This method does not work in a Node.js environment.
|
|
1600
|
+
*
|
|
1594
1601
|
* @example
|
|
1595
1602
|
* ```javascript
|
|
1596
1603
|
* // Sign in using a redirect.
|
|
@@ -1923,6 +1930,8 @@ export declare function initializeAuth(app: FirebaseApp, deps?: Dependencies): A
|
|
|
1923
1930
|
* Thus, by calling this optional method, you will reduce the latency of future auth flows.
|
|
1924
1931
|
* Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.
|
|
1925
1932
|
*
|
|
1933
|
+
* This method does not work in a Node.js environment.
|
|
1934
|
+
*
|
|
1926
1935
|
* @example
|
|
1927
1936
|
* ```javascript
|
|
1928
1937
|
* initializeRecaptchaConfig(auth);
|
|
@@ -1967,6 +1976,9 @@ export declare function linkWithCredential(user: User, credential: AuthCredentia
|
|
|
1967
1976
|
/**
|
|
1968
1977
|
* Links the user account with the given phone number.
|
|
1969
1978
|
*
|
|
1979
|
+
* @remarks
|
|
1980
|
+
* This method does not work in a Node.js environment.
|
|
1981
|
+
*
|
|
1970
1982
|
* @param user - The user.
|
|
1971
1983
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
1972
1984
|
* @param appVerifier - The {@link ApplicationVerifier}.
|
|
@@ -1981,6 +1993,7 @@ export declare function linkWithPhoneNumber(user: User, phoneNumber: string, app
|
|
|
1981
1993
|
* @remarks
|
|
1982
1994
|
* If the linking is successful, the returned result will contain the user and the provider's credential.
|
|
1983
1995
|
*
|
|
1996
|
+
* This method does not work in a Node.js environment.
|
|
1984
1997
|
*
|
|
1985
1998
|
* @example
|
|
1986
1999
|
* ```javascript
|
|
@@ -2008,6 +2021,8 @@ export declare function linkWithPopup(user: User, provider: AuthProvider, resolv
|
|
|
2008
2021
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
2009
2022
|
* | best practices} when using {@link linkWithRedirect}.
|
|
2010
2023
|
*
|
|
2024
|
+
* This method does not work in a Node.js environment.
|
|
2025
|
+
*
|
|
2011
2026
|
* @example
|
|
2012
2027
|
* ```javascript
|
|
2013
2028
|
* // Sign in using some other provider.
|
|
@@ -2027,7 +2042,6 @@ export declare function linkWithPopup(user: User, provider: AuthProvider, resolv
|
|
|
2027
2042
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
2028
2043
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
2029
2044
|
*
|
|
2030
|
-
*
|
|
2031
2045
|
* @public
|
|
2032
2046
|
*/
|
|
2033
2047
|
export declare function linkWithRedirect(user: User, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<never>;
|
|
@@ -2619,6 +2633,9 @@ export declare class PhoneAuthCredential extends AuthCredential {
|
|
|
2619
2633
|
/**
|
|
2620
2634
|
* Provider for generating an {@link PhoneAuthCredential}.
|
|
2621
2635
|
*
|
|
2636
|
+
* @remarks
|
|
2637
|
+
* `PhoneAuthProvider` does not work in a Node.js environment.
|
|
2638
|
+
*
|
|
2622
2639
|
* @example
|
|
2623
2640
|
* ```javascript
|
|
2624
2641
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -2795,6 +2812,9 @@ export declare class PhoneMultiFactorGenerator {
|
|
|
2795
2812
|
/**
|
|
2796
2813
|
* Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.
|
|
2797
2814
|
*
|
|
2815
|
+
* @remarks
|
|
2816
|
+
* This method does not work in a Node.js environment.
|
|
2817
|
+
*
|
|
2798
2818
|
* @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
|
|
2799
2819
|
* @returns A {@link PhoneMultiFactorAssertion} which can be used with
|
|
2800
2820
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
@@ -3004,7 +3024,10 @@ export declare function reauthenticateWithCredential(user: User, credential: Aut
|
|
|
3004
3024
|
/**
|
|
3005
3025
|
* Re-authenticates a user using a fresh phone credential.
|
|
3006
3026
|
*
|
|
3007
|
-
* @remarks
|
|
3027
|
+
* @remarks
|
|
3028
|
+
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
3029
|
+
*
|
|
3030
|
+
* This method does not work in a Node.js environment.
|
|
3008
3031
|
*
|
|
3009
3032
|
* @param user - The user.
|
|
3010
3033
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -3022,6 +3045,8 @@ export declare function reauthenticateWithPhoneNumber(user: User, phoneNumber: s
|
|
|
3022
3045
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
3023
3046
|
* provider's credential.
|
|
3024
3047
|
*
|
|
3048
|
+
* This method does not work in a Node.js environment.
|
|
3049
|
+
*
|
|
3025
3050
|
* @example
|
|
3026
3051
|
* ```javascript
|
|
3027
3052
|
* // Sign in using a popup.
|
|
@@ -3048,6 +3073,8 @@ export declare function reauthenticateWithPopup(user: User, provider: AuthProvid
|
|
|
3048
3073
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
3049
3074
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
3050
3075
|
*
|
|
3076
|
+
* This method does not work in a Node.js environment.
|
|
3077
|
+
*
|
|
3051
3078
|
* @example
|
|
3052
3079
|
* ```javascript
|
|
3053
3080
|
* // Sign in using a redirect.
|
|
@@ -3128,6 +3155,9 @@ export declare interface RecaptchaParameters {
|
|
|
3128
3155
|
/**
|
|
3129
3156
|
* An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.
|
|
3130
3157
|
*
|
|
3158
|
+
* @remarks
|
|
3159
|
+
* `RecaptchaVerifier` does not work in a Node.js environment.
|
|
3160
|
+
*
|
|
3131
3161
|
* @public
|
|
3132
3162
|
*/
|
|
3133
3163
|
export declare class RecaptchaVerifier implements ApplicationVerifierInternal {
|
|
@@ -3364,6 +3394,8 @@ export declare function sendSignInLinkToEmail(auth: Auth, email: string, actionC
|
|
|
3364
3394
|
* remembered or not. It also makes it easier to never persist the `Auth` state for applications
|
|
3365
3395
|
* that are shared by other users or have sensitive data.
|
|
3366
3396
|
*
|
|
3397
|
+
* This method does not work in a Node.js environment.
|
|
3398
|
+
*
|
|
3367
3399
|
* @example
|
|
3368
3400
|
* ```javascript
|
|
3369
3401
|
* setPersistence(auth, browserSessionPersistence);
|
|
@@ -3526,6 +3558,8 @@ declare interface SignInWithIdpResponse extends IdTokenResponse {
|
|
|
3526
3558
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
3527
3559
|
* third-party {@link ApplicationVerifier} implementation.
|
|
3528
3560
|
*
|
|
3561
|
+
* This method does not work in a Node.js environment.
|
|
3562
|
+
*
|
|
3529
3563
|
* @example
|
|
3530
3564
|
* ```javascript
|
|
3531
3565
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -3569,6 +3603,8 @@ declare interface SignInWithPhoneNumberResponse extends IdTokenResponse {
|
|
|
3569
3603
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
3570
3604
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
3571
3605
|
*
|
|
3606
|
+
* This method does not work in a Node.js environment.
|
|
3607
|
+
*
|
|
3572
3608
|
* @example
|
|
3573
3609
|
* ```javascript
|
|
3574
3610
|
* // Sign in using a popup.
|
|
@@ -3588,7 +3624,6 @@ declare interface SignInWithPhoneNumberResponse extends IdTokenResponse {
|
|
|
3588
3624
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
3589
3625
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
3590
3626
|
*
|
|
3591
|
-
*
|
|
3592
3627
|
* @public
|
|
3593
3628
|
*/
|
|
3594
3629
|
export declare function signInWithPopup(auth: Auth, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
@@ -3601,6 +3636,8 @@ export declare function signInWithPopup(auth: Auth, provider: AuthProvider, reso
|
|
|
3601
3636
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
3602
3637
|
* | best practices} when using {@link signInWithRedirect}.
|
|
3603
3638
|
*
|
|
3639
|
+
* This method does not work in a Node.js environment.
|
|
3640
|
+
*
|
|
3604
3641
|
* @example
|
|
3605
3642
|
* ```javascript
|
|
3606
3643
|
* // Sign in using a redirect.
|
|
@@ -3941,6 +3978,9 @@ export declare function updatePassword(user: User, newPassword: string): Promise
|
|
|
3941
3978
|
/**
|
|
3942
3979
|
* Updates the user's phone number.
|
|
3943
3980
|
*
|
|
3981
|
+
* @remarks
|
|
3982
|
+
* This method does not work in a Node.js environment.
|
|
3983
|
+
*
|
|
3944
3984
|
* @example
|
|
3945
3985
|
* ```
|
|
3946
3986
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -6067,6 +6067,8 @@ function getAdditionalUserInfo(userCredential) {
|
|
|
6067
6067
|
* remembered or not. It also makes it easier to never persist the `Auth` state for applications
|
|
6068
6068
|
* that are shared by other users or have sensitive data.
|
|
6069
6069
|
*
|
|
6070
|
+
* This method does not work in a Node.js environment.
|
|
6071
|
+
*
|
|
6070
6072
|
* @example
|
|
6071
6073
|
* ```javascript
|
|
6072
6074
|
* setPersistence(auth, browserSessionPersistence);
|
|
@@ -6097,6 +6099,8 @@ function setPersistence(auth, persistence) {
|
|
|
6097
6099
|
* Thus, by calling this optional method, you will reduce the latency of future auth flows.
|
|
6098
6100
|
* Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.
|
|
6099
6101
|
*
|
|
6102
|
+
* This method does not work in a Node.js environment.
|
|
6103
|
+
*
|
|
6100
6104
|
* @example
|
|
6101
6105
|
* ```javascript
|
|
6102
6106
|
* initializeRecaptchaConfig(auth);
|
|
@@ -6217,14 +6221,30 @@ async function deleteUser(user) {
|
|
|
6217
6221
|
return util.getModularInstance(user).delete();
|
|
6218
6222
|
}
|
|
6219
6223
|
|
|
6224
|
+
/**
|
|
6225
|
+
* @license
|
|
6226
|
+
* Copyright 2020 Google LLC
|
|
6227
|
+
*
|
|
6228
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6229
|
+
* you may not use this file except in compliance with the License.
|
|
6230
|
+
* You may obtain a copy of the License at
|
|
6231
|
+
*
|
|
6232
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6233
|
+
*
|
|
6234
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6235
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6236
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6237
|
+
* See the License for the specific language governing permissions and
|
|
6238
|
+
* limitations under the License.
|
|
6239
|
+
*/
|
|
6220
6240
|
class MultiFactorSessionImpl {
|
|
6221
|
-
constructor(type, credential,
|
|
6241
|
+
constructor(type, credential, user) {
|
|
6222
6242
|
this.type = type;
|
|
6223
6243
|
this.credential = credential;
|
|
6224
|
-
this.
|
|
6244
|
+
this.user = user;
|
|
6225
6245
|
}
|
|
6226
|
-
static _fromIdtoken(idToken,
|
|
6227
|
-
return new MultiFactorSessionImpl("enroll" /* MultiFactorSessionType.ENROLL */, idToken,
|
|
6246
|
+
static _fromIdtoken(idToken, user) {
|
|
6247
|
+
return new MultiFactorSessionImpl("enroll" /* MultiFactorSessionType.ENROLL */, idToken, user);
|
|
6228
6248
|
}
|
|
6229
6249
|
static _fromMfaPendingCredential(mfaPendingCredential) {
|
|
6230
6250
|
return new MultiFactorSessionImpl("signin" /* MultiFactorSessionType.SIGN_IN */, mfaPendingCredential);
|
|
@@ -6373,7 +6393,7 @@ class MultiFactorUserImpl {
|
|
|
6373
6393
|
return new MultiFactorUserImpl(user);
|
|
6374
6394
|
}
|
|
6375
6395
|
async getSession() {
|
|
6376
|
-
return MultiFactorSessionImpl._fromIdtoken(await this.user.getIdToken(), this.user
|
|
6396
|
+
return MultiFactorSessionImpl._fromIdtoken(await this.user.getIdToken(), this.user);
|
|
6377
6397
|
}
|
|
6378
6398
|
async enroll(assertionExtern, displayName) {
|
|
6379
6399
|
const assertion = assertionExtern;
|
|
@@ -7710,6 +7730,9 @@ const DEFAULT_PARAMS = {
|
|
|
7710
7730
|
/**
|
|
7711
7731
|
* An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.
|
|
7712
7732
|
*
|
|
7733
|
+
* @remarks
|
|
7734
|
+
* `RecaptchaVerifier` does not work in a Node.js environment.
|
|
7735
|
+
*
|
|
7713
7736
|
* @public
|
|
7714
7737
|
*/
|
|
7715
7738
|
class RecaptchaVerifier {
|
|
@@ -7942,6 +7965,8 @@ class ConfirmationResultImpl {
|
|
|
7942
7965
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
7943
7966
|
* third-party {@link ApplicationVerifier} implementation.
|
|
7944
7967
|
*
|
|
7968
|
+
* This method does not work in a Node.js environment.
|
|
7969
|
+
*
|
|
7945
7970
|
* @example
|
|
7946
7971
|
* ```javascript
|
|
7947
7972
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -7965,6 +7990,9 @@ async function signInWithPhoneNumber(auth, phoneNumber, appVerifier) {
|
|
|
7965
7990
|
/**
|
|
7966
7991
|
* Links the user account with the given phone number.
|
|
7967
7992
|
*
|
|
7993
|
+
* @remarks
|
|
7994
|
+
* This method does not work in a Node.js environment.
|
|
7995
|
+
*
|
|
7968
7996
|
* @param user - The user.
|
|
7969
7997
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
7970
7998
|
* @param appVerifier - The {@link ApplicationVerifier}.
|
|
@@ -7980,7 +8008,10 @@ async function linkWithPhoneNumber(user, phoneNumber, appVerifier) {
|
|
|
7980
8008
|
/**
|
|
7981
8009
|
* Re-authenticates a user using a fresh phone credential.
|
|
7982
8010
|
*
|
|
7983
|
-
* @remarks
|
|
8011
|
+
* @remarks
|
|
8012
|
+
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
8013
|
+
*
|
|
8014
|
+
* This method does not work in a Node.js environment.
|
|
7984
8015
|
*
|
|
7985
8016
|
* @param user - The user.
|
|
7986
8017
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -8055,6 +8086,9 @@ async function _verifyPhoneNumber(auth, options, verifier) {
|
|
|
8055
8086
|
/**
|
|
8056
8087
|
* Updates the user's phone number.
|
|
8057
8088
|
*
|
|
8089
|
+
* @remarks
|
|
8090
|
+
* This method does not work in a Node.js environment.
|
|
8091
|
+
*
|
|
8058
8092
|
* @example
|
|
8059
8093
|
* ```
|
|
8060
8094
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -8094,6 +8128,9 @@ async function updatePhoneNumber(user, credential) {
|
|
|
8094
8128
|
/**
|
|
8095
8129
|
* Provider for generating an {@link PhoneAuthCredential}.
|
|
8096
8130
|
*
|
|
8131
|
+
* @remarks
|
|
8132
|
+
* `PhoneAuthProvider` does not work in a Node.js environment.
|
|
8133
|
+
*
|
|
8097
8134
|
* @example
|
|
8098
8135
|
* ```javascript
|
|
8099
8136
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -8455,6 +8492,8 @@ const _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
|
|
|
8455
8492
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
8456
8493
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
8457
8494
|
*
|
|
8495
|
+
* This method does not work in a Node.js environment.
|
|
8496
|
+
*
|
|
8458
8497
|
* @example
|
|
8459
8498
|
* ```javascript
|
|
8460
8499
|
* // Sign in using a popup.
|
|
@@ -8474,7 +8513,6 @@ const _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
|
|
|
8474
8513
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
8475
8514
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
8476
8515
|
*
|
|
8477
|
-
*
|
|
8478
8516
|
* @public
|
|
8479
8517
|
*/
|
|
8480
8518
|
async function signInWithPopup(auth, provider, resolver) {
|
|
@@ -8492,6 +8530,8 @@ async function signInWithPopup(auth, provider, resolver) {
|
|
|
8492
8530
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
8493
8531
|
* provider's credential.
|
|
8494
8532
|
*
|
|
8533
|
+
* This method does not work in a Node.js environment.
|
|
8534
|
+
*
|
|
8495
8535
|
* @example
|
|
8496
8536
|
* ```javascript
|
|
8497
8537
|
* // Sign in using a popup.
|
|
@@ -8522,6 +8562,7 @@ async function reauthenticateWithPopup(user, provider, resolver) {
|
|
|
8522
8562
|
* @remarks
|
|
8523
8563
|
* If the linking is successful, the returned result will contain the user and the provider's credential.
|
|
8524
8564
|
*
|
|
8565
|
+
* This method does not work in a Node.js environment.
|
|
8525
8566
|
*
|
|
8526
8567
|
* @example
|
|
8527
8568
|
* ```javascript
|
|
@@ -8761,6 +8802,8 @@ function pendingRedirectKey(auth) {
|
|
|
8761
8802
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
8762
8803
|
* | best practices} when using {@link signInWithRedirect}.
|
|
8763
8804
|
*
|
|
8805
|
+
* This method does not work in a Node.js environment.
|
|
8806
|
+
*
|
|
8764
8807
|
* @example
|
|
8765
8808
|
* ```javascript
|
|
8766
8809
|
* // Sign in using a redirect.
|
|
@@ -8815,6 +8858,8 @@ async function _signInWithRedirect(auth, provider, resolver) {
|
|
|
8815
8858
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
8816
8859
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
8817
8860
|
*
|
|
8861
|
+
* This method does not work in a Node.js environment.
|
|
8862
|
+
*
|
|
8818
8863
|
* @example
|
|
8819
8864
|
* ```javascript
|
|
8820
8865
|
* // Sign in using a redirect.
|
|
@@ -8863,6 +8908,8 @@ async function _reauthenticateWithRedirect(user, provider, resolver) {
|
|
|
8863
8908
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
8864
8909
|
* | best practices} when using {@link linkWithRedirect}.
|
|
8865
8910
|
*
|
|
8911
|
+
* This method does not work in a Node.js environment.
|
|
8912
|
+
*
|
|
8866
8913
|
* @example
|
|
8867
8914
|
* ```javascript
|
|
8868
8915
|
* // Sign in using some other provider.
|
|
@@ -8882,7 +8929,6 @@ async function _reauthenticateWithRedirect(user, provider, resolver) {
|
|
|
8882
8929
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
8883
8930
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
8884
8931
|
*
|
|
8885
|
-
*
|
|
8886
8932
|
* @public
|
|
8887
8933
|
*/
|
|
8888
8934
|
function linkWithRedirect(user, provider, resolver) {
|
|
@@ -8909,6 +8955,8 @@ async function _linkWithRedirect(user, provider, resolver) {
|
|
|
8909
8955
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
8910
8956
|
* error. If no redirect operation was called, returns `null`.
|
|
8911
8957
|
*
|
|
8958
|
+
* This method does not work in a Node.js environment.
|
|
8959
|
+
*
|
|
8912
8960
|
* @example
|
|
8913
8961
|
* ```javascript
|
|
8914
8962
|
* // Sign in using a redirect.
|
|
@@ -9645,6 +9693,9 @@ class BrowserPopupRedirectResolver {
|
|
|
9645
9693
|
* An implementation of {@link PopupRedirectResolver} suitable for browser
|
|
9646
9694
|
* based applications.
|
|
9647
9695
|
*
|
|
9696
|
+
* @remarks
|
|
9697
|
+
* This method does not work in a Node.js environment.
|
|
9698
|
+
*
|
|
9648
9699
|
* @public
|
|
9649
9700
|
*/
|
|
9650
9701
|
const browserPopupRedirectResolver = BrowserPopupRedirectResolver;
|
|
@@ -9705,6 +9756,9 @@ class PhoneMultiFactorGenerator {
|
|
|
9705
9756
|
/**
|
|
9706
9757
|
* Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.
|
|
9707
9758
|
*
|
|
9759
|
+
* @remarks
|
|
9760
|
+
* This method does not work in a Node.js environment.
|
|
9761
|
+
*
|
|
9708
9762
|
* @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
|
|
9709
9763
|
* @returns A {@link PhoneMultiFactorAssertion} which can be used with
|
|
9710
9764
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
@@ -9759,13 +9813,14 @@ class TotpMultiFactorGenerator {
|
|
|
9759
9813
|
* @returns A promise to {@link TotpSecret}.
|
|
9760
9814
|
*/
|
|
9761
9815
|
static async generateSecret(session) {
|
|
9816
|
+
var _a;
|
|
9762
9817
|
const mfaSession = session;
|
|
9763
|
-
_assert(typeof mfaSession.auth !== 'undefined', "internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
9764
|
-
const response = await startEnrollTotpMfa(mfaSession.auth, {
|
|
9818
|
+
_assert(typeof ((_a = mfaSession.user) === null || _a === void 0 ? void 0 : _a.auth) !== 'undefined', "internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
9819
|
+
const response = await startEnrollTotpMfa(mfaSession.user.auth, {
|
|
9765
9820
|
idToken: mfaSession.credential,
|
|
9766
9821
|
totpEnrollmentInfo: {}
|
|
9767
9822
|
});
|
|
9768
|
-
return TotpSecret._fromStartTotpMfaEnrollmentResponse(response, mfaSession.auth);
|
|
9823
|
+
return TotpSecret._fromStartTotpMfaEnrollmentResponse(response, mfaSession.user.auth);
|
|
9769
9824
|
}
|
|
9770
9825
|
}
|
|
9771
9826
|
/**
|
|
@@ -9866,7 +9921,7 @@ function _isEmptyString(input) {
|
|
|
9866
9921
|
}
|
|
9867
9922
|
|
|
9868
9923
|
var name = "@firebase/auth";
|
|
9869
|
-
var version = "0.23.2-canary.
|
|
9924
|
+
var version = "0.23.2-canary.e522056fc";
|
|
9870
9925
|
|
|
9871
9926
|
/**
|
|
9872
9927
|
* @license
|
|
@@ -10191,4 +10246,4 @@ exports.updateProfile = updateProfile;
|
|
|
10191
10246
|
exports.useDeviceLanguage = useDeviceLanguage;
|
|
10192
10247
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
10193
10248
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
10194
|
-
//# sourceMappingURL=index-
|
|
10249
|
+
//# sourceMappingURL=index-7aac2604.js.map
|