@firebase/auth 0.23.2-canary.23581c540 → 0.23.2-canary.3133e7619
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-a99ac085.js → index-48389c29.js} +43 -5
- package/dist/{esm2017/index-2456fe12.js.map → browser-cjs/index-48389c29.js.map} +1 -1
- 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/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/cordova/index.js +2 -2
- package/dist/cordova/internal.js +31 -4
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-1c938dff.js → popup_redirect-37109e00.js} +14 -3
- package/dist/cordova/{popup_redirect-1c938dff.js.map → popup_redirect-37109e00.js.map} +1 -1
- package/dist/cordova/src/core/index.d.ts +4 -0
- 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/esm2017/{index-2456fe12.js → index-c27a3be8.js} +43 -5
- package/dist/{browser-cjs/index-a99ac085.js.map → esm2017/index-c27a3be8.js.map} +1 -1
- 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/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/esm5/{index-f79f88fe.js → index-695a365f.js} +43 -5
- package/dist/esm5/index-695a365f.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/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/index.webworker.esm5.js +5 -1
- 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/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/{totp-65a38e6a.js → totp-76f044c9.js} +6 -2
- package/dist/node/{totp-65a38e6a.js.map → totp-76f044c9.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/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/{totp-dbee8877.js → totp-e1e29591.js} +6 -2
- package/dist/node-esm/{totp-dbee8877.js.map → totp-e1e29591.js.map} +1 -1
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +17 -3
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-c296a0ff.js → phone-35f634e0.js} +27 -3
- package/dist/rn/{phone-c296a0ff.js.map → phone-35f634e0.js.map} +1 -1
- package/dist/rn/src/core/index.d.ts +4 -0
- 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/src/core/index.d.ts +4 -0
- 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/package.json +6 -6
- package/dist/esm5/index-f79f88fe.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);
|
|
@@ -7710,6 +7714,9 @@ const DEFAULT_PARAMS = {
|
|
|
7710
7714
|
/**
|
|
7711
7715
|
* An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.
|
|
7712
7716
|
*
|
|
7717
|
+
* @remarks
|
|
7718
|
+
* `RecaptchaVerifier` does not work in a Node.js environment.
|
|
7719
|
+
*
|
|
7713
7720
|
* @public
|
|
7714
7721
|
*/
|
|
7715
7722
|
class RecaptchaVerifier {
|
|
@@ -7942,6 +7949,8 @@ class ConfirmationResultImpl {
|
|
|
7942
7949
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
7943
7950
|
* third-party {@link ApplicationVerifier} implementation.
|
|
7944
7951
|
*
|
|
7952
|
+
* This method does not work in a Node.js environment.
|
|
7953
|
+
*
|
|
7945
7954
|
* @example
|
|
7946
7955
|
* ```javascript
|
|
7947
7956
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -7965,6 +7974,9 @@ async function signInWithPhoneNumber(auth, phoneNumber, appVerifier) {
|
|
|
7965
7974
|
/**
|
|
7966
7975
|
* Links the user account with the given phone number.
|
|
7967
7976
|
*
|
|
7977
|
+
* @remarks
|
|
7978
|
+
* This method does not work in a Node.js environment.
|
|
7979
|
+
*
|
|
7968
7980
|
* @param user - The user.
|
|
7969
7981
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
7970
7982
|
* @param appVerifier - The {@link ApplicationVerifier}.
|
|
@@ -7980,7 +7992,10 @@ async function linkWithPhoneNumber(user, phoneNumber, appVerifier) {
|
|
|
7980
7992
|
/**
|
|
7981
7993
|
* Re-authenticates a user using a fresh phone credential.
|
|
7982
7994
|
*
|
|
7983
|
-
* @remarks
|
|
7995
|
+
* @remarks
|
|
7996
|
+
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
7997
|
+
*
|
|
7998
|
+
* This method does not work in a Node.js environment.
|
|
7984
7999
|
*
|
|
7985
8000
|
* @param user - The user.
|
|
7986
8001
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -8055,6 +8070,9 @@ async function _verifyPhoneNumber(auth, options, verifier) {
|
|
|
8055
8070
|
/**
|
|
8056
8071
|
* Updates the user's phone number.
|
|
8057
8072
|
*
|
|
8073
|
+
* @remarks
|
|
8074
|
+
* This method does not work in a Node.js environment.
|
|
8075
|
+
*
|
|
8058
8076
|
* @example
|
|
8059
8077
|
* ```
|
|
8060
8078
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -8094,6 +8112,9 @@ async function updatePhoneNumber(user, credential) {
|
|
|
8094
8112
|
/**
|
|
8095
8113
|
* Provider for generating an {@link PhoneAuthCredential}.
|
|
8096
8114
|
*
|
|
8115
|
+
* @remarks
|
|
8116
|
+
* `PhoneAuthProvider` does not work in a Node.js environment.
|
|
8117
|
+
*
|
|
8097
8118
|
* @example
|
|
8098
8119
|
* ```javascript
|
|
8099
8120
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -8455,6 +8476,8 @@ const _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
|
|
|
8455
8476
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
8456
8477
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
8457
8478
|
*
|
|
8479
|
+
* This method does not work in a Node.js environment.
|
|
8480
|
+
*
|
|
8458
8481
|
* @example
|
|
8459
8482
|
* ```javascript
|
|
8460
8483
|
* // Sign in using a popup.
|
|
@@ -8474,7 +8497,6 @@ const _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
|
|
|
8474
8497
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
8475
8498
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
8476
8499
|
*
|
|
8477
|
-
*
|
|
8478
8500
|
* @public
|
|
8479
8501
|
*/
|
|
8480
8502
|
async function signInWithPopup(auth, provider, resolver) {
|
|
@@ -8492,6 +8514,8 @@ async function signInWithPopup(auth, provider, resolver) {
|
|
|
8492
8514
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
8493
8515
|
* provider's credential.
|
|
8494
8516
|
*
|
|
8517
|
+
* This method does not work in a Node.js environment.
|
|
8518
|
+
*
|
|
8495
8519
|
* @example
|
|
8496
8520
|
* ```javascript
|
|
8497
8521
|
* // Sign in using a popup.
|
|
@@ -8522,6 +8546,7 @@ async function reauthenticateWithPopup(user, provider, resolver) {
|
|
|
8522
8546
|
* @remarks
|
|
8523
8547
|
* If the linking is successful, the returned result will contain the user and the provider's credential.
|
|
8524
8548
|
*
|
|
8549
|
+
* This method does not work in a Node.js environment.
|
|
8525
8550
|
*
|
|
8526
8551
|
* @example
|
|
8527
8552
|
* ```javascript
|
|
@@ -8761,6 +8786,8 @@ function pendingRedirectKey(auth) {
|
|
|
8761
8786
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
8762
8787
|
* | best practices} when using {@link signInWithRedirect}.
|
|
8763
8788
|
*
|
|
8789
|
+
* This method does not work in a Node.js environment.
|
|
8790
|
+
*
|
|
8764
8791
|
* @example
|
|
8765
8792
|
* ```javascript
|
|
8766
8793
|
* // Sign in using a redirect.
|
|
@@ -8815,6 +8842,8 @@ async function _signInWithRedirect(auth, provider, resolver) {
|
|
|
8815
8842
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
8816
8843
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
8817
8844
|
*
|
|
8845
|
+
* This method does not work in a Node.js environment.
|
|
8846
|
+
*
|
|
8818
8847
|
* @example
|
|
8819
8848
|
* ```javascript
|
|
8820
8849
|
* // Sign in using a redirect.
|
|
@@ -8863,6 +8892,8 @@ async function _reauthenticateWithRedirect(user, provider, resolver) {
|
|
|
8863
8892
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
8864
8893
|
* | best practices} when using {@link linkWithRedirect}.
|
|
8865
8894
|
*
|
|
8895
|
+
* This method does not work in a Node.js environment.
|
|
8896
|
+
*
|
|
8866
8897
|
* @example
|
|
8867
8898
|
* ```javascript
|
|
8868
8899
|
* // Sign in using some other provider.
|
|
@@ -8882,7 +8913,6 @@ async function _reauthenticateWithRedirect(user, provider, resolver) {
|
|
|
8882
8913
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
8883
8914
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
8884
8915
|
*
|
|
8885
|
-
*
|
|
8886
8916
|
* @public
|
|
8887
8917
|
*/
|
|
8888
8918
|
function linkWithRedirect(user, provider, resolver) {
|
|
@@ -8909,6 +8939,8 @@ async function _linkWithRedirect(user, provider, resolver) {
|
|
|
8909
8939
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
8910
8940
|
* error. If no redirect operation was called, returns `null`.
|
|
8911
8941
|
*
|
|
8942
|
+
* This method does not work in a Node.js environment.
|
|
8943
|
+
*
|
|
8912
8944
|
* @example
|
|
8913
8945
|
* ```javascript
|
|
8914
8946
|
* // Sign in using a redirect.
|
|
@@ -9645,6 +9677,9 @@ class BrowserPopupRedirectResolver {
|
|
|
9645
9677
|
* An implementation of {@link PopupRedirectResolver} suitable for browser
|
|
9646
9678
|
* based applications.
|
|
9647
9679
|
*
|
|
9680
|
+
* @remarks
|
|
9681
|
+
* This method does not work in a Node.js environment.
|
|
9682
|
+
*
|
|
9648
9683
|
* @public
|
|
9649
9684
|
*/
|
|
9650
9685
|
const browserPopupRedirectResolver = BrowserPopupRedirectResolver;
|
|
@@ -9705,6 +9740,9 @@ class PhoneMultiFactorGenerator {
|
|
|
9705
9740
|
/**
|
|
9706
9741
|
* Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.
|
|
9707
9742
|
*
|
|
9743
|
+
* @remarks
|
|
9744
|
+
* This method does not work in a Node.js environment.
|
|
9745
|
+
*
|
|
9708
9746
|
* @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
|
|
9709
9747
|
* @returns A {@link PhoneMultiFactorAssertion} which can be used with
|
|
9710
9748
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
@@ -9866,7 +9904,7 @@ function _isEmptyString(input) {
|
|
|
9866
9904
|
}
|
|
9867
9905
|
|
|
9868
9906
|
var name = "@firebase/auth";
|
|
9869
|
-
var version = "0.23.2-canary.
|
|
9907
|
+
var version = "0.23.2-canary.3133e7619";
|
|
9870
9908
|
|
|
9871
9909
|
/**
|
|
9872
9910
|
* @license
|
|
@@ -10191,4 +10229,4 @@ exports.updateProfile = updateProfile;
|
|
|
10191
10229
|
exports.useDeviceLanguage = useDeviceLanguage;
|
|
10192
10230
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
10193
10231
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
10194
|
-
//# sourceMappingURL=index-
|
|
10232
|
+
//# sourceMappingURL=index-48389c29.js.map
|