@firebase/auth 1.6.2 → 1.7.0-20240326182825
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 +60 -10
- package/dist/auth.d.ts +61 -10
- package/dist/browser-cjs/{index-6a907fc6.js → index-f8d6f5cb.js} +202 -22
- package/dist/browser-cjs/index-f8d6f5cb.js.map +1 -0
- package/dist/browser-cjs/index.js +2 -2
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/browser-cjs/src/core/index.d.ts +9 -1
- package/dist/browser-cjs/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/browser-cjs/src/core/strategies/credential.d.ts +6 -0
- package/dist/browser-cjs/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/browser-cjs/src/core/strategies/email_link.d.ts +4 -0
- package/dist/browser-cjs/src/core/user/account_info.d.ts +3 -0
- package/dist/browser-cjs/src/core/user/reload.d.ts +3 -1
- package/dist/browser-cjs/src/core/user/token_manager.d.ts +1 -0
- package/dist/browser-cjs/src/core/user/user_impl.d.ts +7 -1
- package/dist/browser-cjs/src/core/util/assert.d.ts +1 -0
- package/dist/browser-cjs/src/model/public_types.d.ts +7 -0
- package/dist/browser-cjs/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/browser-cjs/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/browser-cjs/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +45 -17
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-58faecee.js → popup_redirect-ea762e5f.js} +197 -17
- package/dist/cordova/popup_redirect-ea762e5f.js.map +1 -0
- package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/cordova/src/core/index.d.ts +9 -1
- package/dist/cordova/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/cordova/src/core/strategies/credential.d.ts +6 -0
- package/dist/cordova/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/cordova/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/cordova/src/core/strategies/email_link.d.ts +4 -0
- package/dist/cordova/src/core/user/account_info.d.ts +3 -0
- package/dist/cordova/src/core/user/reload.d.ts +3 -1
- package/dist/cordova/src/core/user/token_manager.d.ts +1 -0
- package/dist/cordova/src/core/user/user_impl.d.ts +7 -1
- package/dist/cordova/src/core/util/assert.d.ts +1 -0
- package/dist/cordova/src/model/public_types.d.ts +7 -0
- package/dist/cordova/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/cordova/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/cordova/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/cordova/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/esm2017/{index-e939beb5.js → index-f8109a2d.js} +202 -22
- package/dist/esm2017/index-f8109a2d.js.map +1 -0
- package/dist/esm2017/index.js +2 -2
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/esm2017/src/core/index.d.ts +9 -1
- package/dist/esm2017/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/esm2017/src/core/strategies/credential.d.ts +6 -0
- package/dist/esm2017/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/esm2017/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/esm2017/src/core/strategies/email_link.d.ts +4 -0
- package/dist/esm2017/src/core/user/account_info.d.ts +3 -0
- package/dist/esm2017/src/core/user/reload.d.ts +3 -1
- package/dist/esm2017/src/core/user/token_manager.d.ts +1 -0
- package/dist/esm2017/src/core/user/user_impl.d.ts +7 -1
- package/dist/esm2017/src/core/util/assert.d.ts +1 -0
- package/dist/esm2017/src/model/public_types.d.ts +7 -0
- package/dist/esm2017/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/esm2017/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/esm2017/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/esm2017/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/esm2017/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/esm5/{index-3bd54529.js → index-4c66492d.js} +238 -30
- package/dist/esm5/index-4c66492d.js.map +1 -0
- package/dist/esm5/index.js +2 -2
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/esm5/src/core/index.d.ts +9 -1
- package/dist/esm5/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/esm5/src/core/strategies/credential.d.ts +6 -0
- package/dist/esm5/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/esm5/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/esm5/src/core/strategies/email_link.d.ts +4 -0
- package/dist/esm5/src/core/user/account_info.d.ts +3 -0
- package/dist/esm5/src/core/user/reload.d.ts +3 -1
- package/dist/esm5/src/core/user/token_manager.d.ts +1 -0
- package/dist/esm5/src/core/user/user_impl.d.ts +7 -1
- package/dist/esm5/src/core/util/assert.d.ts +1 -0
- package/dist/esm5/src/model/public_types.d.ts +7 -0
- package/dist/esm5/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/esm5/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/esm5/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/esm5/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/esm5/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/index.webworker.esm5.js +178 -11
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +2 -2
- package/dist/node/internal.js +4 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/node/src/core/index.d.ts +9 -1
- package/dist/node/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/node/src/core/strategies/credential.d.ts +6 -0
- package/dist/node/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/node/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/node/src/core/strategies/email_link.d.ts +4 -0
- package/dist/node/src/core/user/account_info.d.ts +3 -0
- package/dist/node/src/core/user/reload.d.ts +3 -1
- package/dist/node/src/core/user/token_manager.d.ts +1 -0
- package/dist/node/src/core/user/user_impl.d.ts +7 -1
- package/dist/node/src/core/util/assert.d.ts +1 -0
- package/dist/node/src/model/public_types.d.ts +7 -0
- package/dist/node/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/node/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/node/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/node/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/node/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/node/{totp-7d693c11.js → totp-b5b5f052.js} +180 -12
- package/dist/node/totp-b5b5f052.js.map +1 -0
- package/dist/node-esm/index.js +2 -2
- package/dist/node-esm/internal.js +6 -3
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/node-esm/src/core/index.d.ts +9 -1
- package/dist/node-esm/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/node-esm/src/core/strategies/credential.d.ts +6 -0
- package/dist/node-esm/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/node-esm/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/node-esm/src/core/strategies/email_link.d.ts +4 -0
- package/dist/node-esm/src/core/user/account_info.d.ts +3 -0
- package/dist/node-esm/src/core/user/reload.d.ts +3 -1
- package/dist/node-esm/src/core/user/token_manager.d.ts +1 -0
- package/dist/node-esm/src/core/user/user_impl.d.ts +7 -1
- package/dist/node-esm/src/core/util/assert.d.ts +1 -0
- package/dist/node-esm/src/model/public_types.d.ts +7 -0
- package/dist/node-esm/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/node-esm/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/node-esm/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/node-esm/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/node-esm/{totp-56a8eeec.js → totp-0190c6a2.js} +148 -7
- package/dist/node-esm/totp-0190c6a2.js.map +1 -0
- package/dist/rn/{index-8ee80bdc.js → index-7b760812.js} +199 -16
- package/dist/rn/index-7b760812.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +41 -15
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/rn/src/core/index.d.ts +9 -1
- package/dist/rn/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/rn/src/core/strategies/credential.d.ts +6 -0
- package/dist/rn/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/rn/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/rn/src/core/strategies/email_link.d.ts +4 -0
- package/dist/rn/src/core/user/account_info.d.ts +3 -0
- package/dist/rn/src/core/user/reload.d.ts +3 -1
- package/dist/rn/src/core/user/token_manager.d.ts +1 -0
- package/dist/rn/src/core/user/user_impl.d.ts +7 -1
- package/dist/rn/src/core/util/assert.d.ts +1 -0
- package/dist/rn/src/model/public_types.d.ts +7 -0
- package/dist/rn/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/rn/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/rn/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/rn/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/rn/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/src/core/index.d.ts +9 -1
- package/dist/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/src/core/strategies/credential.d.ts +6 -0
- package/dist/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/src/core/strategies/email_link.d.ts +4 -0
- package/dist/src/core/user/account_info.d.ts +3 -0
- package/dist/src/core/user/reload.d.ts +3 -1
- package/dist/src/core/user/token_manager.d.ts +1 -0
- package/dist/src/core/user/user_impl.d.ts +7 -1
- package/dist/src/core/util/assert.d.ts +1 -0
- package/dist/src/model/public_types.d.ts +7 -0
- package/dist/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +57 -18
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-9438f377.js → register-0d1d6c7b.js} +148 -6
- package/dist/web-extension-cjs/register-0d1d6c7b.js.map +1 -0
- package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/web-extension-cjs/src/core/index.d.ts +9 -1
- package/dist/web-extension-cjs/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/web-extension-cjs/src/core/strategies/credential.d.ts +6 -0
- package/dist/web-extension-cjs/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/web-extension-cjs/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/web-extension-cjs/src/core/strategies/email_link.d.ts +4 -0
- package/dist/web-extension-cjs/src/core/user/account_info.d.ts +3 -0
- package/dist/web-extension-cjs/src/core/user/reload.d.ts +3 -1
- package/dist/web-extension-cjs/src/core/user/token_manager.d.ts +1 -0
- package/dist/web-extension-cjs/src/core/user/user_impl.d.ts +7 -1
- package/dist/web-extension-cjs/src/core/util/assert.d.ts +1 -0
- package/dist/web-extension-cjs/src/model/public_types.d.ts +7 -0
- package/dist/web-extension-cjs/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/web-extension-cjs/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/web-extension-cjs/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/web-extension-cjs/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/web-extension-cjs/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +58 -19
- package/dist/web-extension-esm2017/internal.js.map +1 -1
- package/dist/web-extension-esm2017/{register-7b89e556.js → register-1e157a9f.js} +148 -7
- package/dist/web-extension-esm2017/register-1e157a9f.js.map +1 -0
- package/dist/web-extension-esm2017/src/core/auth/auth_impl.d.ts +1 -0
- package/dist/web-extension-esm2017/src/core/index.d.ts +9 -1
- package/dist/web-extension-esm2017/src/core/strategies/anonymous.d.ts +3 -0
- package/dist/web-extension-esm2017/src/core/strategies/credential.d.ts +6 -0
- package/dist/web-extension-esm2017/src/core/strategies/custom_token.d.ts +3 -0
- package/dist/web-extension-esm2017/src/core/strategies/email_and_password.d.ts +7 -0
- package/dist/web-extension-esm2017/src/core/strategies/email_link.d.ts +4 -0
- package/dist/web-extension-esm2017/src/core/user/account_info.d.ts +3 -0
- package/dist/web-extension-esm2017/src/core/user/reload.d.ts +3 -1
- package/dist/web-extension-esm2017/src/core/user/token_manager.d.ts +1 -0
- package/dist/web-extension-esm2017/src/core/user/user_impl.d.ts +7 -1
- package/dist/web-extension-esm2017/src/core/util/assert.d.ts +1 -0
- package/dist/web-extension-esm2017/src/model/public_types.d.ts +7 -0
- package/dist/web-extension-esm2017/src/platform_browser/strategies/phone.d.ts +6 -3
- package/dist/web-extension-esm2017/src/platform_browser/strategies/popup.d.ts +4 -2
- package/dist/web-extension-esm2017/src/platform_browser/strategies/redirect.d.ts +8 -4
- package/dist/web-extension-esm2017/test/helpers/integration/helpers.d.ts +2 -0
- package/dist/web-extension-esm2017/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
- package/package.json +7 -7
- package/dist/browser-cjs/index-6a907fc6.js.map +0 -1
- package/dist/cordova/popup_redirect-58faecee.js.map +0 -1
- package/dist/esm2017/index-e939beb5.js.map +0 -1
- package/dist/esm5/index-3bd54529.js.map +0 -1
- package/dist/node/totp-7d693c11.js.map +0 -1
- package/dist/node-esm/totp-56a8eeec.js.map +0 -1
- package/dist/rn/index-8ee80bdc.js.map +0 -1
- package/dist/web-extension-cjs/register-9438f377.js.map +0 -1
- package/dist/web-extension-esm2017/register-7b89e556.js.map +0 -1
package/dist/auth-public.d.ts
CHANGED
|
@@ -420,6 +420,10 @@ export declare interface Auth {
|
|
|
420
420
|
useDeviceLanguage(): void;
|
|
421
421
|
/**
|
|
422
422
|
* Signs out the current user. This does not automatically revoke the user's ID token.
|
|
423
|
+
*
|
|
424
|
+
* @remarks
|
|
425
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
426
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
423
427
|
*/
|
|
424
428
|
signOut(): Promise<void>;
|
|
425
429
|
}
|
|
@@ -877,6 +881,9 @@ export declare function connectAuthEmulator(auth: Auth, url: string, options?: {
|
|
|
877
881
|
*
|
|
878
882
|
* User account creation can fail if the account already exists or the password is invalid.
|
|
879
883
|
*
|
|
884
|
+
* This method is not supported on {@link Auth} instances created with a
|
|
885
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
886
|
+
*
|
|
880
887
|
* Note: The email address acts as a unique identifier for the user and enables an email-based
|
|
881
888
|
* password reset. This function will create a new user account and set the initial user password.
|
|
882
889
|
*
|
|
@@ -1322,7 +1329,8 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1322
1329
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
1323
1330
|
* error. If no redirect operation was called, returns `null`.
|
|
1324
1331
|
*
|
|
1325
|
-
* This method does not work in a Node.js environment
|
|
1332
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
1333
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
1326
1334
|
*
|
|
1327
1335
|
* @example
|
|
1328
1336
|
* ```javascript
|
|
@@ -1704,7 +1712,8 @@ export declare function linkWithPopup(user: User, provider: AuthProvider, resolv
|
|
|
1704
1712
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
1705
1713
|
* | best practices} when using {@link linkWithRedirect}.
|
|
1706
1714
|
*
|
|
1707
|
-
* This method does not work in a Node.js environment
|
|
1715
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances
|
|
1716
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
1708
1717
|
*
|
|
1709
1718
|
* @example
|
|
1710
1719
|
* ```javascript
|
|
@@ -2723,6 +2732,9 @@ export declare interface ReactNativeAsyncStorage {
|
|
|
2723
2732
|
* attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error
|
|
2724
2733
|
* or a `TOKEN_EXPIRED` error.
|
|
2725
2734
|
*
|
|
2735
|
+
* This method is not supported on any {@link User} signed in by {@link Auth} instances
|
|
2736
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
2737
|
+
*
|
|
2726
2738
|
* @param user - The user.
|
|
2727
2739
|
* @param credential - The auth credential.
|
|
2728
2740
|
*
|
|
@@ -2736,7 +2748,8 @@ export declare function reauthenticateWithCredential(user: User, credential: Aut
|
|
|
2736
2748
|
* @remarks
|
|
2737
2749
|
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
2738
2750
|
*
|
|
2739
|
-
* This method does not work in a Node.js environment
|
|
2751
|
+
* This method does not work in a Node.js environment or on any {@link User} signed in by
|
|
2752
|
+
* {@link Auth} instances created with a {@link @firebase/app#FirebaseServerApp}.
|
|
2740
2753
|
*
|
|
2741
2754
|
* @param user - The user.
|
|
2742
2755
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -2754,7 +2767,8 @@ export declare function reauthenticateWithPhoneNumber(user: User, phoneNumber: s
|
|
|
2754
2767
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
2755
2768
|
* provider's credential.
|
|
2756
2769
|
*
|
|
2757
|
-
* This method does not work in a Node.js environment
|
|
2770
|
+
* This method does not work in a Node.js environment or on any {@link User} signed in by
|
|
2771
|
+
* {@link Auth} instances created with a {@link @firebase/app#FirebaseServerApp}.
|
|
2758
2772
|
*
|
|
2759
2773
|
* @example
|
|
2760
2774
|
* ```javascript
|
|
@@ -2782,7 +2796,8 @@ export declare function reauthenticateWithPopup(user: User, provider: AuthProvid
|
|
|
2782
2796
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
2783
2797
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
2784
2798
|
*
|
|
2785
|
-
* This method does not work in a Node.js environment
|
|
2799
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances
|
|
2800
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
2786
2801
|
*
|
|
2787
2802
|
* @example
|
|
2788
2803
|
* ```javascript
|
|
@@ -3117,7 +3132,8 @@ export declare function sendSignInLinkToEmail(auth: Auth, email: string, actionC
|
|
|
3117
3132
|
* remembered or not. It also makes it easier to never persist the `Auth` state for applications
|
|
3118
3133
|
* that are shared by other users or have sensitive data.
|
|
3119
3134
|
*
|
|
3120
|
-
* This method does not work in a Node.js environment
|
|
3135
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3136
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3121
3137
|
*
|
|
3122
3138
|
* @example
|
|
3123
3139
|
* ```javascript
|
|
@@ -3139,6 +3155,9 @@ export declare function setPersistence(auth: Auth, persistence: Persistence): Pr
|
|
|
3139
3155
|
* If there is already an anonymous user signed in, that user will be returned; otherwise, a
|
|
3140
3156
|
* new anonymous user identity will be created and returned.
|
|
3141
3157
|
*
|
|
3158
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3159
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3160
|
+
*
|
|
3142
3161
|
* @param auth - The {@link Auth} instance.
|
|
3143
3162
|
*
|
|
3144
3163
|
* @public
|
|
@@ -3173,6 +3192,9 @@ export declare const SignInMethod: {
|
|
|
3173
3192
|
* @remarks
|
|
3174
3193
|
* An {@link AuthProvider} can be used to generate the credential.
|
|
3175
3194
|
*
|
|
3195
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3196
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3197
|
+
*
|
|
3176
3198
|
* @param auth - The {@link Auth} instance.
|
|
3177
3199
|
* @param credential - The auth credential.
|
|
3178
3200
|
*
|
|
@@ -3191,6 +3213,9 @@ export declare function signInWithCredential(auth: Auth, credential: AuthCredent
|
|
|
3191
3213
|
*
|
|
3192
3214
|
* Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.
|
|
3193
3215
|
*
|
|
3216
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3217
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3218
|
+
*
|
|
3194
3219
|
* @param auth - The {@link Auth} instance.
|
|
3195
3220
|
* @param customToken - The custom token to sign in with.
|
|
3196
3221
|
*
|
|
@@ -3206,10 +3231,14 @@ export declare function signInWithCustomToken(auth: Auth, customToken: string):
|
|
|
3206
3231
|
* When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
|
|
3207
3232
|
* this method fails with "auth/invalid-credential" in case of an invalid email/password.
|
|
3208
3233
|
*
|
|
3234
|
+
* This method is not supported on {@link Auth} instances created with a
|
|
3235
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3236
|
+
*
|
|
3209
3237
|
* Note: The user's password is NOT the password used to access the user's email account. The
|
|
3210
3238
|
* email address serves as a unique identifier for the user, and the password is used to access
|
|
3211
3239
|
* the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.
|
|
3212
3240
|
*
|
|
3241
|
+
*
|
|
3213
3242
|
* @param auth - The {@link Auth} instance.
|
|
3214
3243
|
* @param email - The users email address.
|
|
3215
3244
|
* @param password - The users password.
|
|
@@ -3226,6 +3255,9 @@ export declare function signInWithEmailAndPassword(auth: Auth, email: string, pa
|
|
|
3226
3255
|
*
|
|
3227
3256
|
* Fails with an error if the email address is invalid or OTP in email link expires.
|
|
3228
3257
|
*
|
|
3258
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3259
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3260
|
+
*
|
|
3229
3261
|
* Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.
|
|
3230
3262
|
*
|
|
3231
3263
|
* @example
|
|
@@ -3249,6 +3281,7 @@ export declare function signInWithEmailAndPassword(auth: Auth, email: string, pa
|
|
|
3249
3281
|
* }
|
|
3250
3282
|
* ```
|
|
3251
3283
|
*
|
|
3284
|
+
*
|
|
3252
3285
|
* @param auth - The {@link Auth} instance.
|
|
3253
3286
|
* @param email - The user's email address.
|
|
3254
3287
|
* @param emailLink - The link sent to the user's email address.
|
|
@@ -3274,7 +3307,8 @@ export declare function signInWithEmailLink(auth: Auth, email: string, emailLink
|
|
|
3274
3307
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
3275
3308
|
* third-party {@link ApplicationVerifier} implementation.
|
|
3276
3309
|
*
|
|
3277
|
-
* This method does not work in a Node.js environment
|
|
3310
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3311
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3278
3312
|
*
|
|
3279
3313
|
* @example
|
|
3280
3314
|
* ```javascript
|
|
@@ -3304,7 +3338,8 @@ export declare function signInWithPhoneNumber(auth: Auth, phoneNumber: string, a
|
|
|
3304
3338
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
3305
3339
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
3306
3340
|
*
|
|
3307
|
-
* This method does not work in a Node.js environment
|
|
3341
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3342
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3308
3343
|
*
|
|
3309
3344
|
* @example
|
|
3310
3345
|
* ```javascript
|
|
@@ -3337,7 +3372,8 @@ export declare function signInWithPopup(auth: Auth, provider: AuthProvider, reso
|
|
|
3337
3372
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
3338
3373
|
* | best practices} when using {@link signInWithRedirect}.
|
|
3339
3374
|
*
|
|
3340
|
-
* This method does not work in a Node.js environment
|
|
3375
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3376
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3341
3377
|
*
|
|
3342
3378
|
* @example
|
|
3343
3379
|
* ```javascript
|
|
@@ -3377,6 +3413,10 @@ export declare function signInWithRedirect(auth: Auth, provider: AuthProvider, r
|
|
|
3377
3413
|
/**
|
|
3378
3414
|
* Signs out the current user.
|
|
3379
3415
|
*
|
|
3416
|
+
* @remarks
|
|
3417
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3418
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3419
|
+
*
|
|
3380
3420
|
* @param auth - The {@link Auth} instance.
|
|
3381
3421
|
*
|
|
3382
3422
|
* @public
|
|
@@ -3608,6 +3648,9 @@ export { Unsubscribe }
|
|
|
3608
3648
|
* The operation fails with an error if the user to be updated belongs to a different Firebase
|
|
3609
3649
|
* project.
|
|
3610
3650
|
*
|
|
3651
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3652
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3653
|
+
*
|
|
3611
3654
|
* @param auth - The {@link Auth} instance.
|
|
3612
3655
|
* @param user - The new {@link User}.
|
|
3613
3656
|
*
|
|
@@ -3622,6 +3665,9 @@ export declare function updateCurrentUser(auth: Auth, user: User | null): Promis
|
|
|
3622
3665
|
* An email will be sent to the original email address (if it was set) that allows to revoke the
|
|
3623
3666
|
* email address change, in order to protect them from account hijacking.
|
|
3624
3667
|
*
|
|
3668
|
+
* This method is not supported on any {@link User} signed in by {@link Auth} instances
|
|
3669
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
3670
|
+
*
|
|
3625
3671
|
* Important: this is a security sensitive operation that requires the user to have recently signed
|
|
3626
3672
|
* in. If this requirement isn't met, ask the user to authenticate again and then call
|
|
3627
3673
|
* {@link reauthenticateWithCredential}.
|
|
@@ -3655,7 +3701,8 @@ export declare function updatePassword(user: User, newPassword: string): Promise
|
|
|
3655
3701
|
* Updates the user's phone number.
|
|
3656
3702
|
*
|
|
3657
3703
|
* @remarks
|
|
3658
|
-
* This method does not work in a Node.js environment
|
|
3704
|
+
* This method does not work in a Node.js environment or on any {@link User} signed in by
|
|
3705
|
+
* {@link Auth} instances created with a {@link @firebase/app#FirebaseServerApp}.
|
|
3659
3706
|
*
|
|
3660
3707
|
* @example
|
|
3661
3708
|
* ```
|
|
@@ -3751,6 +3798,9 @@ export declare interface User extends UserInfo {
|
|
|
3751
3798
|
* Important: this is a security-sensitive operation that requires the user to have recently
|
|
3752
3799
|
* signed in. If this requirement isn't met, ask the user to authenticate again and then call
|
|
3753
3800
|
* one of the reauthentication methods like {@link reauthenticateWithCredential}.
|
|
3801
|
+
*
|
|
3802
|
+
* This method is not supported on any {@link User} signed in by {@link Auth} instances
|
|
3803
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
3754
3804
|
*/
|
|
3755
3805
|
delete(): Promise<void>;
|
|
3756
3806
|
/**
|
package/dist/auth.d.ts
CHANGED
|
@@ -429,6 +429,10 @@ export declare interface Auth {
|
|
|
429
429
|
useDeviceLanguage(): void;
|
|
430
430
|
/**
|
|
431
431
|
* Signs out the current user. This does not automatically revoke the user's ID token.
|
|
432
|
+
*
|
|
433
|
+
* @remarks
|
|
434
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
435
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
432
436
|
*/
|
|
433
437
|
signOut(): Promise<void>;
|
|
434
438
|
}
|
|
@@ -1150,6 +1154,9 @@ export declare function connectAuthEmulator(auth: Auth, url: string, options?: {
|
|
|
1150
1154
|
*
|
|
1151
1155
|
* User account creation can fail if the account already exists or the password is invalid.
|
|
1152
1156
|
*
|
|
1157
|
+
* This method is not supported on {@link Auth} instances created with a
|
|
1158
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
1159
|
+
*
|
|
1153
1160
|
* Note: The email address acts as a unique identifier for the user and enables an email-based
|
|
1154
1161
|
* password reset. This function will create a new user account and set the initial user password.
|
|
1155
1162
|
*
|
|
@@ -1622,7 +1629,8 @@ declare interface GetRecaptchaConfigResponse {
|
|
|
1622
1629
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
1623
1630
|
* error. If no redirect operation was called, returns `null`.
|
|
1624
1631
|
*
|
|
1625
|
-
* This method does not work in a Node.js environment
|
|
1632
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
1633
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
1626
1634
|
*
|
|
1627
1635
|
* @example
|
|
1628
1636
|
* ```javascript
|
|
@@ -2047,7 +2055,8 @@ export declare function linkWithPopup(user: User, provider: AuthProvider, resolv
|
|
|
2047
2055
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
2048
2056
|
* | best practices} when using {@link linkWithRedirect}.
|
|
2049
2057
|
*
|
|
2050
|
-
* This method does not work in a Node.js environment
|
|
2058
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances
|
|
2059
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
2051
2060
|
*
|
|
2052
2061
|
* @example
|
|
2053
2062
|
* ```javascript
|
|
@@ -3186,6 +3195,9 @@ export declare interface ReactNativeAsyncStorage {
|
|
|
3186
3195
|
* attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error
|
|
3187
3196
|
* or a `TOKEN_EXPIRED` error.
|
|
3188
3197
|
*
|
|
3198
|
+
* This method is not supported on any {@link User} signed in by {@link Auth} instances
|
|
3199
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
3200
|
+
*
|
|
3189
3201
|
* @param user - The user.
|
|
3190
3202
|
* @param credential - The auth credential.
|
|
3191
3203
|
*
|
|
@@ -3199,7 +3211,8 @@ export declare function reauthenticateWithCredential(user: User, credential: Aut
|
|
|
3199
3211
|
* @remarks
|
|
3200
3212
|
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
3201
3213
|
*
|
|
3202
|
-
* This method does not work in a Node.js environment
|
|
3214
|
+
* This method does not work in a Node.js environment or on any {@link User} signed in by
|
|
3215
|
+
* {@link Auth} instances created with a {@link @firebase/app#FirebaseServerApp}.
|
|
3203
3216
|
*
|
|
3204
3217
|
* @param user - The user.
|
|
3205
3218
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -3217,7 +3230,8 @@ export declare function reauthenticateWithPhoneNumber(user: User, phoneNumber: s
|
|
|
3217
3230
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
3218
3231
|
* provider's credential.
|
|
3219
3232
|
*
|
|
3220
|
-
* This method does not work in a Node.js environment
|
|
3233
|
+
* This method does not work in a Node.js environment or on any {@link User} signed in by
|
|
3234
|
+
* {@link Auth} instances created with a {@link @firebase/app#FirebaseServerApp}.
|
|
3221
3235
|
*
|
|
3222
3236
|
* @example
|
|
3223
3237
|
* ```javascript
|
|
@@ -3245,7 +3259,8 @@ export declare function reauthenticateWithPopup(user: User, provider: AuthProvid
|
|
|
3245
3259
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
3246
3260
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
3247
3261
|
*
|
|
3248
|
-
* This method does not work in a Node.js environment
|
|
3262
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances
|
|
3263
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
3249
3264
|
*
|
|
3250
3265
|
* @example
|
|
3251
3266
|
* ```javascript
|
|
@@ -3591,7 +3606,8 @@ export declare function sendSignInLinkToEmail(auth: Auth, email: string, actionC
|
|
|
3591
3606
|
* remembered or not. It also makes it easier to never persist the `Auth` state for applications
|
|
3592
3607
|
* that are shared by other users or have sensitive data.
|
|
3593
3608
|
*
|
|
3594
|
-
* This method does not work in a Node.js environment
|
|
3609
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3610
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3595
3611
|
*
|
|
3596
3612
|
* @example
|
|
3597
3613
|
* ```javascript
|
|
@@ -3613,6 +3629,9 @@ export declare function setPersistence(auth: Auth, persistence: Persistence): Pr
|
|
|
3613
3629
|
* If there is already an anonymous user signed in, that user will be returned; otherwise, a
|
|
3614
3630
|
* new anonymous user identity will be created and returned.
|
|
3615
3631
|
*
|
|
3632
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3633
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3634
|
+
*
|
|
3616
3635
|
* @param auth - The {@link Auth} instance.
|
|
3617
3636
|
*
|
|
3618
3637
|
* @public
|
|
@@ -3647,6 +3666,9 @@ export declare const SignInMethod: {
|
|
|
3647
3666
|
* @remarks
|
|
3648
3667
|
* An {@link AuthProvider} can be used to generate the credential.
|
|
3649
3668
|
*
|
|
3669
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3670
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3671
|
+
*
|
|
3650
3672
|
* @param auth - The {@link Auth} instance.
|
|
3651
3673
|
* @param credential - The auth credential.
|
|
3652
3674
|
*
|
|
@@ -3665,6 +3687,9 @@ export declare function signInWithCredential(auth: Auth, credential: AuthCredent
|
|
|
3665
3687
|
*
|
|
3666
3688
|
* Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.
|
|
3667
3689
|
*
|
|
3690
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3691
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3692
|
+
*
|
|
3668
3693
|
* @param auth - The {@link Auth} instance.
|
|
3669
3694
|
* @param customToken - The custom token to sign in with.
|
|
3670
3695
|
*
|
|
@@ -3680,10 +3705,14 @@ export declare function signInWithCustomToken(auth: Auth, customToken: string):
|
|
|
3680
3705
|
* When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
|
|
3681
3706
|
* this method fails with "auth/invalid-credential" in case of an invalid email/password.
|
|
3682
3707
|
*
|
|
3708
|
+
* This method is not supported on {@link Auth} instances created with a
|
|
3709
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3710
|
+
*
|
|
3683
3711
|
* Note: The user's password is NOT the password used to access the user's email account. The
|
|
3684
3712
|
* email address serves as a unique identifier for the user, and the password is used to access
|
|
3685
3713
|
* the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.
|
|
3686
3714
|
*
|
|
3715
|
+
*
|
|
3687
3716
|
* @param auth - The {@link Auth} instance.
|
|
3688
3717
|
* @param email - The users email address.
|
|
3689
3718
|
* @param password - The users password.
|
|
@@ -3700,6 +3729,9 @@ export declare function signInWithEmailAndPassword(auth: Auth, email: string, pa
|
|
|
3700
3729
|
*
|
|
3701
3730
|
* Fails with an error if the email address is invalid or OTP in email link expires.
|
|
3702
3731
|
*
|
|
3732
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3733
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3734
|
+
*
|
|
3703
3735
|
* Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.
|
|
3704
3736
|
*
|
|
3705
3737
|
* @example
|
|
@@ -3723,6 +3755,7 @@ export declare function signInWithEmailAndPassword(auth: Auth, email: string, pa
|
|
|
3723
3755
|
* }
|
|
3724
3756
|
* ```
|
|
3725
3757
|
*
|
|
3758
|
+
*
|
|
3726
3759
|
* @param auth - The {@link Auth} instance.
|
|
3727
3760
|
* @param email - The user's email address.
|
|
3728
3761
|
* @param emailLink - The link sent to the user's email address.
|
|
@@ -3757,7 +3790,8 @@ declare interface SignInWithIdpResponse extends IdTokenResponse {
|
|
|
3757
3790
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
3758
3791
|
* third-party {@link ApplicationVerifier} implementation.
|
|
3759
3792
|
*
|
|
3760
|
-
* This method does not work in a Node.js environment
|
|
3793
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3794
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3761
3795
|
*
|
|
3762
3796
|
* @example
|
|
3763
3797
|
* ```javascript
|
|
@@ -3802,7 +3836,8 @@ declare interface SignInWithPhoneNumberResponse extends IdTokenResponse {
|
|
|
3802
3836
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
3803
3837
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
3804
3838
|
*
|
|
3805
|
-
* This method does not work in a Node.js environment
|
|
3839
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3840
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3806
3841
|
*
|
|
3807
3842
|
* @example
|
|
3808
3843
|
* ```javascript
|
|
@@ -3835,7 +3870,8 @@ export declare function signInWithPopup(auth: Auth, provider: AuthProvider, reso
|
|
|
3835
3870
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
3836
3871
|
* | best practices} when using {@link signInWithRedirect}.
|
|
3837
3872
|
*
|
|
3838
|
-
* This method does not work in a Node.js environment
|
|
3873
|
+
* This method does not work in a Node.js environment or with {@link Auth} instances created with a
|
|
3874
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3839
3875
|
*
|
|
3840
3876
|
* @example
|
|
3841
3877
|
* ```javascript
|
|
@@ -3875,6 +3911,10 @@ export declare function signInWithRedirect(auth: Auth, provider: AuthProvider, r
|
|
|
3875
3911
|
/**
|
|
3876
3912
|
* Signs out the current user.
|
|
3877
3913
|
*
|
|
3914
|
+
* @remarks
|
|
3915
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
3916
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
3917
|
+
*
|
|
3878
3918
|
* @param auth - The {@link Auth} instance.
|
|
3879
3919
|
*
|
|
3880
3920
|
* @public
|
|
@@ -3904,6 +3944,7 @@ declare class StsTokenManager {
|
|
|
3904
3944
|
expirationTime: number | null;
|
|
3905
3945
|
get isExpired(): boolean;
|
|
3906
3946
|
updateFromServerResponse(response: IdTokenResponse | FinalizeMfaResponse): void;
|
|
3947
|
+
updateFromIdToken(idToken: string): void;
|
|
3907
3948
|
getToken(auth: AuthInternal, forceRefresh?: boolean): Promise<string | null>;
|
|
3908
3949
|
clearRefreshToken(): void;
|
|
3909
3950
|
private refresh;
|
|
@@ -4134,6 +4175,9 @@ export { Unsubscribe }
|
|
|
4134
4175
|
* The operation fails with an error if the user to be updated belongs to a different Firebase
|
|
4135
4176
|
* project.
|
|
4136
4177
|
*
|
|
4178
|
+
* This method is not supported by {@link Auth} instances created with a
|
|
4179
|
+
* {@link @firebase/app#FirebaseServerApp}.
|
|
4180
|
+
*
|
|
4137
4181
|
* @param auth - The {@link Auth} instance.
|
|
4138
4182
|
* @param user - The new {@link User}.
|
|
4139
4183
|
*
|
|
@@ -4148,6 +4192,9 @@ export declare function updateCurrentUser(auth: Auth, user: User | null): Promis
|
|
|
4148
4192
|
* An email will be sent to the original email address (if it was set) that allows to revoke the
|
|
4149
4193
|
* email address change, in order to protect them from account hijacking.
|
|
4150
4194
|
*
|
|
4195
|
+
* This method is not supported on any {@link User} signed in by {@link Auth} instances
|
|
4196
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
4197
|
+
*
|
|
4151
4198
|
* Important: this is a security sensitive operation that requires the user to have recently signed
|
|
4152
4199
|
* in. If this requirement isn't met, ask the user to authenticate again and then call
|
|
4153
4200
|
* {@link reauthenticateWithCredential}.
|
|
@@ -4181,7 +4228,8 @@ export declare function updatePassword(user: User, newPassword: string): Promise
|
|
|
4181
4228
|
* Updates the user's phone number.
|
|
4182
4229
|
*
|
|
4183
4230
|
* @remarks
|
|
4184
|
-
* This method does not work in a Node.js environment
|
|
4231
|
+
* This method does not work in a Node.js environment or on any {@link User} signed in by
|
|
4232
|
+
* {@link Auth} instances created with a {@link @firebase/app#FirebaseServerApp}.
|
|
4185
4233
|
*
|
|
4186
4234
|
* @example
|
|
4187
4235
|
* ```
|
|
@@ -4277,6 +4325,9 @@ export declare interface User extends UserInfo {
|
|
|
4277
4325
|
* Important: this is a security-sensitive operation that requires the user to have recently
|
|
4278
4326
|
* signed in. If this requirement isn't met, ask the user to authenticate again and then call
|
|
4279
4327
|
* one of the reauthentication methods like {@link reauthenticateWithCredential}.
|
|
4328
|
+
*
|
|
4329
|
+
* This method is not supported on any {@link User} signed in by {@link Auth} instances
|
|
4330
|
+
* created with a {@link @firebase/app#FirebaseServerApp}.
|
|
4280
4331
|
*/
|
|
4281
4332
|
delete(): Promise<void>;
|
|
4282
4333
|
/**
|