@firebase/auth 0.23.2 → 0.23.3-20230531163950
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-5ca0aadd.js → index-44ba6951.js} +43 -5
- package/dist/{esm2017/index-e3d5d3f4.js.map → browser-cjs/index-44ba6951.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-2ba2e3ab.js → popup_redirect-89f9521a.js} +14 -3
- package/dist/cordova/{popup_redirect-2ba2e3ab.js.map → popup_redirect-89f9521a.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-e3d5d3f4.js → index-3f13d86d.js} +43 -5
- package/dist/{browser-cjs/index-5ca0aadd.js.map → esm2017/index-3f13d86d.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-cb0c5deb.js → index-0ae82935.js} +43 -5
- package/dist/esm5/index-0ae82935.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-9fcfcaa9.js → totp-e71d7c2f.js} +6 -2
- package/dist/node/{totp-9fcfcaa9.js.map → totp-e71d7c2f.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-e47c784e.js → totp-abd71a35.js} +6 -2
- package/dist/node-esm/{totp-e47c784e.js.map → totp-abd71a35.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-fdde6958.js → phone-490b59b0.js} +27 -3
- package/dist/rn/{phone-fdde6958.js.map → phone-490b59b0.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 +2 -2
- package/dist/esm5/index-cb0c5deb.js.map +0 -1
package/dist/esm2017/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-3f13d86d.js';
|
|
2
2
|
import '@firebase/util';
|
|
3
3
|
import '@firebase/app';
|
|
4
4
|
import 'tslib';
|
package/dist/esm2017/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { as as debugAssert, at as _isIOS, au as _isAndroid, av as _fail, aw as _getRedirectUrl, ax as _getProjectConfig, ay as _isIOS7Or8, az as _createError, aA as _assert, aB as AuthEventManager, aC as _getInstance, b as browserLocalPersistence, aD as _persistenceKeyName, a as browserSessionPersistence, aE as _getRedirectResult, aF as _overrideRedirectResult, aG as _clearRedirectOutcomes, aH as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, aJ as AuthImpl, aM as AuthPopup, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, aN as FetchProvider, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, aI as UserImpl, aA as _assert, aH as _castAuth, av as _fail, aL as _generateEventId, aK as _getClientVersion, aC as _getInstance, aE as _getRedirectResult, aF as _overrideRedirectResult, aD as _persistenceKeyName, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { as as debugAssert, at as _isIOS, au as _isAndroid, av as _fail, aw as _getRedirectUrl, ax as _getProjectConfig, ay as _isIOS7Or8, az as _createError, aA as _assert, aB as AuthEventManager, aC as _getInstance, b as browserLocalPersistence, aD as _persistenceKeyName, a as browserSessionPersistence, aE as _getRedirectResult, aF as _overrideRedirectResult, aG as _clearRedirectOutcomes, aH as _castAuth } from './index-3f13d86d.js';
|
|
2
|
+
export { A as ActionCodeOperation, ag as ActionCodeURL, J as AuthCredential, G as AuthErrorCodes, aJ as AuthImpl, aM as AuthPopup, K as EmailAuthCredential, Q as EmailAuthProvider, U as FacebookAuthProvider, F as FactorId, aN as FetchProvider, W as GithubAuthProvider, V as GoogleAuthProvider, L as OAuthCredential, X as OAuthProvider, O as OperationType, M as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, Y as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, Z as TwitterAuthProvider, aI as UserImpl, aA as _assert, aH as _castAuth, av as _fail, aL as _generateEventId, aK as _getClientVersion, aC as _getInstance, aE as _getRedirectResult, aF as _overrideRedirectResult, aD as _persistenceKeyName, a5 as applyActionCode, w as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a6 as checkActionCode, a4 as confirmPasswordReset, I as connectAuthEmulator, a8 as createUserWithEmailAndPassword, D as debugErrorMap, C as deleteUser, ad as fetchSignInMethodsForEmail, ao as getAdditionalUserInfo, o as getAuth, al as getIdToken, am as getIdTokenResult, aq as getMultiFactorResolver, j as getRedirectResult, N as inMemoryPersistence, i as indexedDBLocalPersistence, H as initializeAuth, t as initializeRecaptchaConfig, ab as isSignInWithEmailLink, a0 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ar as multiFactor, x as onAuthStateChanged, v as onIdTokenChanged, ah as parseActionCodeURL, E as prodErrorMap, a1 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ap as reload, ae as sendEmailVerification, a3 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, q as setPersistence, _ as signInAnonymously, $ as signInWithCredential, a2 as signInWithCustomToken, a9 as signInWithEmailAndPassword, ac as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, B as signOut, an as unlink, z as updateCurrentUser, aj as updateEmail, ak as updatePassword, u as updatePhoneNumber, ai as updateProfile, y as useDeviceLanguage, af as verifyBeforeUpdateEmail, a7 as verifyPasswordResetCode } from './index-3f13d86d.js';
|
|
3
3
|
import { querystringDecode } from '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
|
5
5
|
import 'tslib';
|
|
@@ -26,6 +26,8 @@ export { debugErrorMap, prodErrorMap, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY
|
|
|
26
26
|
* remembered or not. It also makes it easier to never persist the `Auth` state for applications
|
|
27
27
|
* that are shared by other users or have sensitive data.
|
|
28
28
|
*
|
|
29
|
+
* This method does not work in a Node.js environment.
|
|
30
|
+
*
|
|
29
31
|
* @example
|
|
30
32
|
* ```javascript
|
|
31
33
|
* setPersistence(auth, browserSessionPersistence);
|
|
@@ -54,6 +56,8 @@ export declare function setPersistence(auth: Auth, persistence: Persistence): Pr
|
|
|
54
56
|
* Thus, by calling this optional method, you will reduce the latency of future auth flows.
|
|
55
57
|
* Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.
|
|
56
58
|
*
|
|
59
|
+
* This method does not work in a Node.js environment.
|
|
60
|
+
*
|
|
57
61
|
* @example
|
|
58
62
|
* ```javascript
|
|
59
63
|
* initializeRecaptchaConfig(auth);
|
|
@@ -170,6 +170,8 @@ export interface Auth {
|
|
|
170
170
|
* remembered or not. It also makes it easier to never persist the Auth state for applications
|
|
171
171
|
* that are shared by other users or have sensitive data.
|
|
172
172
|
*
|
|
173
|
+
* This method does not work in a Node.js environment.
|
|
174
|
+
*
|
|
173
175
|
* @example
|
|
174
176
|
* ```javascript
|
|
175
177
|
* auth.setPersistence(browserSessionPersistence);
|
|
@@ -44,6 +44,9 @@ export declare class PhoneMultiFactorGenerator {
|
|
|
44
44
|
/**
|
|
45
45
|
* Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.
|
|
46
46
|
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* This method does not work in a Node.js environment.
|
|
49
|
+
*
|
|
47
50
|
* @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
|
|
48
51
|
* @returns A {@link PhoneMultiFactorAssertion} which can be used with
|
|
49
52
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
@@ -19,6 +19,9 @@ import { PopupRedirectResolver } from '../model/public_types';
|
|
|
19
19
|
* An implementation of {@link PopupRedirectResolver} suitable for browser
|
|
20
20
|
* based applications.
|
|
21
21
|
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* This method does not work in a Node.js environment.
|
|
24
|
+
*
|
|
22
25
|
* @public
|
|
23
26
|
*/
|
|
24
27
|
export declare const browserPopupRedirectResolver: PopupRedirectResolver;
|
|
@@ -21,6 +21,9 @@ import { FirebaseError } from '@firebase/util';
|
|
|
21
21
|
/**
|
|
22
22
|
* Provider for generating an {@link PhoneAuthCredential}.
|
|
23
23
|
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* `PhoneAuthProvider` does not work in a Node.js environment.
|
|
26
|
+
*
|
|
24
27
|
* @example
|
|
25
28
|
* ```javascript
|
|
26
29
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -21,6 +21,9 @@ export declare const RECAPTCHA_VERIFIER_TYPE = "recaptcha";
|
|
|
21
21
|
/**
|
|
22
22
|
* An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.
|
|
23
23
|
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* `RecaptchaVerifier` does not work in a Node.js environment.
|
|
26
|
+
*
|
|
24
27
|
* @public
|
|
25
28
|
*/
|
|
26
29
|
export declare class RecaptchaVerifier implements ApplicationVerifierInternal {
|
|
@@ -33,6 +33,8 @@ import { AuthInternal } from '../../model/auth';
|
|
|
33
33
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
34
34
|
* third-party {@link ApplicationVerifier} implementation.
|
|
35
35
|
*
|
|
36
|
+
* This method does not work in a Node.js environment.
|
|
37
|
+
*
|
|
36
38
|
* @example
|
|
37
39
|
* ```javascript
|
|
38
40
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -52,6 +54,9 @@ export declare function signInWithPhoneNumber(auth: Auth, phoneNumber: string, a
|
|
|
52
54
|
/**
|
|
53
55
|
* Links the user account with the given phone number.
|
|
54
56
|
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* This method does not work in a Node.js environment.
|
|
59
|
+
*
|
|
55
60
|
* @param user - The user.
|
|
56
61
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
57
62
|
* @param appVerifier - The {@link ApplicationVerifier}.
|
|
@@ -62,7 +67,10 @@ export declare function linkWithPhoneNumber(user: User, phoneNumber: string, app
|
|
|
62
67
|
/**
|
|
63
68
|
* Re-authenticates a user using a fresh phone credential.
|
|
64
69
|
*
|
|
65
|
-
* @remarks
|
|
70
|
+
* @remarks
|
|
71
|
+
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
72
|
+
*
|
|
73
|
+
* This method does not work in a Node.js environment.
|
|
66
74
|
*
|
|
67
75
|
* @param user - The user.
|
|
68
76
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -79,6 +87,9 @@ export declare function _verifyPhoneNumber(auth: AuthInternal, options: PhoneInf
|
|
|
79
87
|
/**
|
|
80
88
|
* Updates the user's phone number.
|
|
81
89
|
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* This method does not work in a Node.js environment.
|
|
92
|
+
*
|
|
82
93
|
* @example
|
|
83
94
|
* ```
|
|
84
95
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -27,6 +27,8 @@ export declare const _POLL_WINDOW_CLOSE_TIMEOUT: Delay;
|
|
|
27
27
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
28
28
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
29
29
|
*
|
|
30
|
+
* This method does not work in a Node.js environment.
|
|
31
|
+
*
|
|
30
32
|
* @example
|
|
31
33
|
* ```javascript
|
|
32
34
|
* // Sign in using a popup.
|
|
@@ -46,7 +48,6 @@ export declare const _POLL_WINDOW_CLOSE_TIMEOUT: Delay;
|
|
|
46
48
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
47
49
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
48
50
|
*
|
|
49
|
-
*
|
|
50
51
|
* @public
|
|
51
52
|
*/
|
|
52
53
|
export declare function signInWithPopup(auth: Auth, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<UserCredential>;
|
|
@@ -58,6 +59,8 @@ export declare function signInWithPopup(auth: Auth, provider: AuthProvider, reso
|
|
|
58
59
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
59
60
|
* provider's credential.
|
|
60
61
|
*
|
|
62
|
+
* This method does not work in a Node.js environment.
|
|
63
|
+
*
|
|
61
64
|
* @example
|
|
62
65
|
* ```javascript
|
|
63
66
|
* // Sign in using a popup.
|
|
@@ -82,6 +85,7 @@ export declare function reauthenticateWithPopup(user: User, provider: AuthProvid
|
|
|
82
85
|
* @remarks
|
|
83
86
|
* If the linking is successful, the returned result will contain the user and the provider's credential.
|
|
84
87
|
*
|
|
88
|
+
* This method does not work in a Node.js environment.
|
|
85
89
|
*
|
|
86
90
|
* @example
|
|
87
91
|
* ```javascript
|
|
@@ -23,6 +23,8 @@ import { Auth, AuthProvider, PopupRedirectResolver, User, UserCredential } from
|
|
|
23
23
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
24
24
|
* | best practices} when using {@link signInWithRedirect}.
|
|
25
25
|
*
|
|
26
|
+
* This method does not work in a Node.js environment.
|
|
27
|
+
*
|
|
26
28
|
* @example
|
|
27
29
|
* ```javascript
|
|
28
30
|
* // Sign in using a redirect.
|
|
@@ -65,6 +67,8 @@ export declare function _signInWithRedirect(auth: Auth, provider: AuthProvider,
|
|
|
65
67
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
66
68
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
67
69
|
*
|
|
70
|
+
* This method does not work in a Node.js environment.
|
|
71
|
+
*
|
|
68
72
|
* @example
|
|
69
73
|
* ```javascript
|
|
70
74
|
* // Sign in using a redirect.
|
|
@@ -99,6 +103,8 @@ export declare function _reauthenticateWithRedirect(user: User, provider: AuthPr
|
|
|
99
103
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
100
104
|
* | best practices} when using {@link linkWithRedirect}.
|
|
101
105
|
*
|
|
106
|
+
* This method does not work in a Node.js environment.
|
|
107
|
+
*
|
|
102
108
|
* @example
|
|
103
109
|
* ```javascript
|
|
104
110
|
* // Sign in using some other provider.
|
|
@@ -118,7 +124,6 @@ export declare function _reauthenticateWithRedirect(user: User, provider: AuthPr
|
|
|
118
124
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
119
125
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
120
126
|
*
|
|
121
|
-
*
|
|
122
127
|
* @public
|
|
123
128
|
*/
|
|
124
129
|
export declare function linkWithRedirect(user: User, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<never>;
|
|
@@ -130,6 +135,8 @@ export declare function _linkWithRedirect(user: User, provider: AuthProvider, re
|
|
|
130
135
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
131
136
|
* error. If no redirect operation was called, returns `null`.
|
|
132
137
|
*
|
|
138
|
+
* This method does not work in a Node.js environment.
|
|
139
|
+
*
|
|
133
140
|
* @example
|
|
134
141
|
* ```javascript
|
|
135
142
|
* // Sign in using a redirect.
|
|
@@ -7191,6 +7191,8 @@ function getAdditionalUserInfo(userCredential) {
|
|
|
7191
7191
|
* remembered or not. It also makes it easier to never persist the `Auth` state for applications
|
|
7192
7192
|
* that are shared by other users or have sensitive data.
|
|
7193
7193
|
*
|
|
7194
|
+
* This method does not work in a Node.js environment.
|
|
7195
|
+
*
|
|
7194
7196
|
* @example
|
|
7195
7197
|
* ```javascript
|
|
7196
7198
|
* setPersistence(auth, browserSessionPersistence);
|
|
@@ -7221,6 +7223,8 @@ function setPersistence(auth, persistence) {
|
|
|
7221
7223
|
* Thus, by calling this optional method, you will reduce the latency of future auth flows.
|
|
7222
7224
|
* Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.
|
|
7223
7225
|
*
|
|
7226
|
+
* This method does not work in a Node.js environment.
|
|
7227
|
+
*
|
|
7224
7228
|
* @example
|
|
7225
7229
|
* ```javascript
|
|
7226
7230
|
* initializeRecaptchaConfig(auth);
|
|
@@ -9194,6 +9198,9 @@ var DEFAULT_PARAMS = {
|
|
|
9194
9198
|
/**
|
|
9195
9199
|
* An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.
|
|
9196
9200
|
*
|
|
9201
|
+
* @remarks
|
|
9202
|
+
* `RecaptchaVerifier` does not work in a Node.js environment.
|
|
9203
|
+
*
|
|
9197
9204
|
* @public
|
|
9198
9205
|
*/
|
|
9199
9206
|
var RecaptchaVerifier = /** @class */ (function () {
|
|
@@ -9468,6 +9475,8 @@ var ConfirmationResultImpl = /** @class */ (function () {
|
|
|
9468
9475
|
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
9469
9476
|
* third-party {@link ApplicationVerifier} implementation.
|
|
9470
9477
|
*
|
|
9478
|
+
* This method does not work in a Node.js environment.
|
|
9479
|
+
*
|
|
9471
9480
|
* @example
|
|
9472
9481
|
* ```javascript
|
|
9473
9482
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -9503,6 +9512,9 @@ function signInWithPhoneNumber(auth, phoneNumber, appVerifier) {
|
|
|
9503
9512
|
/**
|
|
9504
9513
|
* Links the user account with the given phone number.
|
|
9505
9514
|
*
|
|
9515
|
+
* @remarks
|
|
9516
|
+
* This method does not work in a Node.js environment.
|
|
9517
|
+
*
|
|
9506
9518
|
* @param user - The user.
|
|
9507
9519
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
9508
9520
|
* @param appVerifier - The {@link ApplicationVerifier}.
|
|
@@ -9532,7 +9544,10 @@ function linkWithPhoneNumber(user, phoneNumber, appVerifier) {
|
|
|
9532
9544
|
/**
|
|
9533
9545
|
* Re-authenticates a user using a fresh phone credential.
|
|
9534
9546
|
*
|
|
9535
|
-
* @remarks
|
|
9547
|
+
* @remarks
|
|
9548
|
+
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
|
|
9549
|
+
*
|
|
9550
|
+
* This method does not work in a Node.js environment.
|
|
9536
9551
|
*
|
|
9537
9552
|
* @param user - The user.
|
|
9538
9553
|
* @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
|
|
@@ -9633,6 +9648,9 @@ function _verifyPhoneNumber(auth, options, verifier) {
|
|
|
9633
9648
|
/**
|
|
9634
9649
|
* Updates the user's phone number.
|
|
9635
9650
|
*
|
|
9651
|
+
* @remarks
|
|
9652
|
+
* This method does not work in a Node.js environment.
|
|
9653
|
+
*
|
|
9636
9654
|
* @example
|
|
9637
9655
|
* ```
|
|
9638
9656
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -9681,6 +9699,9 @@ function updatePhoneNumber(user, credential) {
|
|
|
9681
9699
|
/**
|
|
9682
9700
|
* Provider for generating an {@link PhoneAuthCredential}.
|
|
9683
9701
|
*
|
|
9702
|
+
* @remarks
|
|
9703
|
+
* `PhoneAuthProvider` does not work in a Node.js environment.
|
|
9704
|
+
*
|
|
9684
9705
|
* @example
|
|
9685
9706
|
* ```javascript
|
|
9686
9707
|
* // 'recaptcha-container' is the ID of an element in the DOM.
|
|
@@ -10085,6 +10106,8 @@ var _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
|
|
|
10085
10106
|
* If succeeds, returns the signed in user along with the provider's credential. If sign in was
|
|
10086
10107
|
* unsuccessful, returns an error object containing additional information about the error.
|
|
10087
10108
|
*
|
|
10109
|
+
* This method does not work in a Node.js environment.
|
|
10110
|
+
*
|
|
10088
10111
|
* @example
|
|
10089
10112
|
* ```javascript
|
|
10090
10113
|
* // Sign in using a popup.
|
|
@@ -10104,7 +10127,6 @@ var _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
|
|
|
10104
10127
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
10105
10128
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
10106
10129
|
*
|
|
10107
|
-
*
|
|
10108
10130
|
* @public
|
|
10109
10131
|
*/
|
|
10110
10132
|
function signInWithPopup(auth, provider, resolver) {
|
|
@@ -10127,6 +10149,8 @@ function signInWithPopup(auth, provider, resolver) {
|
|
|
10127
10149
|
* If the reauthentication is successful, the returned result will contain the user and the
|
|
10128
10150
|
* provider's credential.
|
|
10129
10151
|
*
|
|
10152
|
+
* This method does not work in a Node.js environment.
|
|
10153
|
+
*
|
|
10130
10154
|
* @example
|
|
10131
10155
|
* ```javascript
|
|
10132
10156
|
* // Sign in using a popup.
|
|
@@ -10162,6 +10186,7 @@ function reauthenticateWithPopup(user, provider, resolver) {
|
|
|
10162
10186
|
* @remarks
|
|
10163
10187
|
* If the linking is successful, the returned result will contain the user and the provider's credential.
|
|
10164
10188
|
*
|
|
10189
|
+
* This method does not work in a Node.js environment.
|
|
10165
10190
|
*
|
|
10166
10191
|
* @example
|
|
10167
10192
|
* ```javascript
|
|
@@ -10497,6 +10522,8 @@ function pendingRedirectKey(auth) {
|
|
|
10497
10522
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
10498
10523
|
* | best practices} when using {@link signInWithRedirect}.
|
|
10499
10524
|
*
|
|
10525
|
+
* This method does not work in a Node.js environment.
|
|
10526
|
+
*
|
|
10500
10527
|
* @example
|
|
10501
10528
|
* ```javascript
|
|
10502
10529
|
* // Sign in using a redirect.
|
|
@@ -10566,6 +10593,8 @@ function _signInWithRedirect(auth, provider, resolver) {
|
|
|
10566
10593
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
10567
10594
|
* | best practices} when using {@link reauthenticateWithRedirect}.
|
|
10568
10595
|
*
|
|
10596
|
+
* This method does not work in a Node.js environment.
|
|
10597
|
+
*
|
|
10569
10598
|
* @example
|
|
10570
10599
|
* ```javascript
|
|
10571
10600
|
* // Sign in using a redirect.
|
|
@@ -10630,6 +10659,8 @@ function _reauthenticateWithRedirect(user, provider, resolver) {
|
|
|
10630
10659
|
* Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
|
|
10631
10660
|
* | best practices} when using {@link linkWithRedirect}.
|
|
10632
10661
|
*
|
|
10662
|
+
* This method does not work in a Node.js environment.
|
|
10663
|
+
*
|
|
10633
10664
|
* @example
|
|
10634
10665
|
* ```javascript
|
|
10635
10666
|
* // Sign in using some other provider.
|
|
@@ -10649,7 +10680,6 @@ function _reauthenticateWithRedirect(user, provider, resolver) {
|
|
|
10649
10680
|
* @param resolver - An instance of {@link PopupRedirectResolver}, optional
|
|
10650
10681
|
* if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
|
|
10651
10682
|
*
|
|
10652
|
-
*
|
|
10653
10683
|
* @public
|
|
10654
10684
|
*/
|
|
10655
10685
|
function linkWithRedirect(user, provider, resolver) {
|
|
@@ -10694,6 +10724,8 @@ function _linkWithRedirect(user, provider, resolver) {
|
|
|
10694
10724
|
* If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
|
|
10695
10725
|
* error. If no redirect operation was called, returns `null`.
|
|
10696
10726
|
*
|
|
10727
|
+
* This method does not work in a Node.js environment.
|
|
10728
|
+
*
|
|
10697
10729
|
* @example
|
|
10698
10730
|
* ```javascript
|
|
10699
10731
|
* // Sign in using a redirect.
|
|
@@ -11555,6 +11587,9 @@ var BrowserPopupRedirectResolver = /** @class */ (function () {
|
|
|
11555
11587
|
* An implementation of {@link PopupRedirectResolver} suitable for browser
|
|
11556
11588
|
* based applications.
|
|
11557
11589
|
*
|
|
11590
|
+
* @remarks
|
|
11591
|
+
* This method does not work in a Node.js environment.
|
|
11592
|
+
*
|
|
11558
11593
|
* @public
|
|
11559
11594
|
*/
|
|
11560
11595
|
var browserPopupRedirectResolver = BrowserPopupRedirectResolver;
|
|
@@ -11620,6 +11655,9 @@ var PhoneMultiFactorGenerator = /** @class */ (function () {
|
|
|
11620
11655
|
/**
|
|
11621
11656
|
* Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.
|
|
11622
11657
|
*
|
|
11658
|
+
* @remarks
|
|
11659
|
+
* This method does not work in a Node.js environment.
|
|
11660
|
+
*
|
|
11623
11661
|
* @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
|
|
11624
11662
|
* @returns A {@link PhoneMultiFactorAssertion} which can be used with
|
|
11625
11663
|
* {@link MultiFactorResolver.resolveSignIn}
|
|
@@ -11808,7 +11846,7 @@ function _isEmptyString(input) {
|
|
|
11808
11846
|
}
|
|
11809
11847
|
|
|
11810
11848
|
var name = "@firebase/auth";
|
|
11811
|
-
var version = "0.23.
|
|
11849
|
+
var version = "0.23.3-20230531163950";
|
|
11812
11850
|
|
|
11813
11851
|
/**
|
|
11814
11852
|
* @license
|
|
@@ -12061,4 +12099,4 @@ function getAuth(app) {
|
|
|
12061
12099
|
registerAuth("Browser" /* ClientPlatform.BROWSER */);
|
|
12062
12100
|
|
|
12063
12101
|
export { signInWithCredential as $, ActionCodeOperation as A, signOut as B, deleteUser as C, debugErrorMap as D, prodErrorMap as E, FactorId as F, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as G, initializeAuth as H, connectAuthEmulator as I, AuthCredential as J, EmailAuthCredential as K, OAuthCredential as L, PhoneAuthCredential as M, inMemoryPersistence as N, OperationType as O, PhoneAuthProvider as P, EmailAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, FacebookAuthProvider as U, GoogleAuthProvider as V, GithubAuthProvider as W, OAuthProvider as X, SAMLAuthProvider as Y, TwitterAuthProvider as Z, signInAnonymously as _, browserSessionPersistence as a, linkWithCredential as a0, reauthenticateWithCredential as a1, signInWithCustomToken as a2, sendPasswordResetEmail as a3, confirmPasswordReset as a4, applyActionCode as a5, checkActionCode as a6, verifyPasswordResetCode as a7, createUserWithEmailAndPassword as a8, signInWithEmailAndPassword as a9, _createError as aA, AuthEventManager as aB, _getInstance as aC, _persistenceKeyName as aD, _clearRedirectOutcomes as aE, _getRedirectResult as aF, _overrideRedirectResult as aG, _castAuth as aH, UserImpl as aI, AuthImpl as aJ, _getClientVersion as aK, _generateEventId as aL, AuthPopup as aM, FetchProvider as aN, SAMLAuthCredential as aO, sendSignInLinkToEmail as aa, isSignInWithEmailLink as ab, signInWithEmailLink as ac, fetchSignInMethodsForEmail as ad, sendEmailVerification as ae, verifyBeforeUpdateEmail as af, ActionCodeURL as ag, parseActionCodeURL as ah, updateProfile as ai, updateEmail as aj, updatePassword as ak, getIdToken as al, getIdTokenResult as am, unlink as an, getAdditionalUserInfo as ao, reload as ap, getMultiFactorResolver as aq, multiFactor as ar, _isIOS as as, _isAndroid as at, _fail as au, _getRedirectUrl as av, debugAssert as aw, _getProjectConfig as ax, _isIOS7Or8 as ay, _assert as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, onIdTokenChanged as v, beforeAuthStateChanged as w, onAuthStateChanged as x, useDeviceLanguage as y, updateCurrentUser as z };
|
|
12064
|
-
//# sourceMappingURL=index-
|
|
12102
|
+
//# sourceMappingURL=index-0ae82935.js.map
|