@firebase/auth 0.23.2-canary.a9da1b7fe → 0.23.2-canary.ce6189631

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.
Files changed (110) hide show
  1. package/dist/auth-public.d.ts +43 -3
  2. package/dist/auth.d.ts +43 -3
  3. package/dist/browser-cjs/{index-5803ad11.js → index-68a7ec4c.js} +43 -5
  4. package/dist/{esm2017/index-926203b9.js.map → browser-cjs/index-68a7ec4c.js.map} +1 -1
  5. package/dist/browser-cjs/index.js +1 -1
  6. package/dist/browser-cjs/internal.js +1 -1
  7. package/dist/browser-cjs/src/core/index.d.ts +4 -0
  8. package/dist/browser-cjs/src/model/public_types.d.ts +2 -0
  9. package/dist/browser-cjs/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  10. package/dist/browser-cjs/src/platform_browser/popup_redirect.d.ts +3 -0
  11. package/dist/browser-cjs/src/platform_browser/providers/phone.d.ts +3 -0
  12. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  13. package/dist/browser-cjs/src/platform_browser/strategies/phone.d.ts +12 -1
  14. package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +5 -1
  15. package/dist/browser-cjs/src/platform_browser/strategies/redirect.d.ts +8 -1
  16. package/dist/cordova/index.js +2 -2
  17. package/dist/cordova/internal.js +31 -4
  18. package/dist/cordova/internal.js.map +1 -1
  19. package/dist/cordova/{popup_redirect-3d52f0db.js → popup_redirect-2dcc9534.js} +14 -3
  20. package/dist/cordova/{popup_redirect-3d52f0db.js.map → popup_redirect-2dcc9534.js.map} +1 -1
  21. package/dist/cordova/src/core/index.d.ts +4 -0
  22. package/dist/cordova/src/model/public_types.d.ts +2 -0
  23. package/dist/cordova/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  24. package/dist/cordova/src/platform_browser/popup_redirect.d.ts +3 -0
  25. package/dist/cordova/src/platform_browser/providers/phone.d.ts +3 -0
  26. package/dist/cordova/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  27. package/dist/cordova/src/platform_browser/strategies/phone.d.ts +12 -1
  28. package/dist/cordova/src/platform_browser/strategies/popup.d.ts +5 -1
  29. package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +8 -1
  30. package/dist/esm2017/{index-926203b9.js → index-5924628c.js} +43 -5
  31. package/dist/{browser-cjs/index-5803ad11.js.map → esm2017/index-5924628c.js.map} +1 -1
  32. package/dist/esm2017/index.js +1 -1
  33. package/dist/esm2017/internal.js +2 -2
  34. package/dist/esm2017/src/core/index.d.ts +4 -0
  35. package/dist/esm2017/src/model/public_types.d.ts +2 -0
  36. package/dist/esm2017/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  37. package/dist/esm2017/src/platform_browser/popup_redirect.d.ts +3 -0
  38. package/dist/esm2017/src/platform_browser/providers/phone.d.ts +3 -0
  39. package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  40. package/dist/esm2017/src/platform_browser/strategies/phone.d.ts +12 -1
  41. package/dist/esm2017/src/platform_browser/strategies/popup.d.ts +5 -1
  42. package/dist/esm2017/src/platform_browser/strategies/redirect.d.ts +8 -1
  43. package/dist/esm5/{index-3f6d263f.js → index-aca388da.js} +43 -5
  44. package/dist/esm5/index-aca388da.js.map +1 -0
  45. package/dist/esm5/index.js +1 -1
  46. package/dist/esm5/internal.js +2 -2
  47. package/dist/esm5/src/core/index.d.ts +4 -0
  48. package/dist/esm5/src/model/public_types.d.ts +2 -0
  49. package/dist/esm5/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  50. package/dist/esm5/src/platform_browser/popup_redirect.d.ts +3 -0
  51. package/dist/esm5/src/platform_browser/providers/phone.d.ts +3 -0
  52. package/dist/esm5/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  53. package/dist/esm5/src/platform_browser/strategies/phone.d.ts +12 -1
  54. package/dist/esm5/src/platform_browser/strategies/popup.d.ts +5 -1
  55. package/dist/esm5/src/platform_browser/strategies/redirect.d.ts +8 -1
  56. package/dist/index.webworker.esm5.js +5 -1
  57. package/dist/index.webworker.esm5.js.map +1 -1
  58. package/dist/node/index.js +1 -1
  59. package/dist/node/internal.js +1 -1
  60. package/dist/node/internal.js.map +1 -1
  61. package/dist/node/src/core/index.d.ts +4 -0
  62. package/dist/node/src/model/public_types.d.ts +2 -0
  63. package/dist/node/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  64. package/dist/node/src/platform_browser/popup_redirect.d.ts +3 -0
  65. package/dist/node/src/platform_browser/providers/phone.d.ts +3 -0
  66. package/dist/node/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  67. package/dist/node/src/platform_browser/strategies/phone.d.ts +12 -1
  68. package/dist/node/src/platform_browser/strategies/popup.d.ts +5 -1
  69. package/dist/node/src/platform_browser/strategies/redirect.d.ts +8 -1
  70. package/dist/node/{totp-e30ad0cb.js → totp-5a831fa0.js} +6 -2
  71. package/dist/node/{totp-e30ad0cb.js.map → totp-5a831fa0.js.map} +1 -1
  72. package/dist/node-esm/index.js +1 -1
  73. package/dist/node-esm/internal.js +2 -2
  74. package/dist/node-esm/internal.js.map +1 -1
  75. package/dist/node-esm/src/core/index.d.ts +4 -0
  76. package/dist/node-esm/src/model/public_types.d.ts +2 -0
  77. package/dist/node-esm/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  78. package/dist/node-esm/src/platform_browser/popup_redirect.d.ts +3 -0
  79. package/dist/node-esm/src/platform_browser/providers/phone.d.ts +3 -0
  80. package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  81. package/dist/node-esm/src/platform_browser/strategies/phone.d.ts +12 -1
  82. package/dist/node-esm/src/platform_browser/strategies/popup.d.ts +5 -1
  83. package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +8 -1
  84. package/dist/node-esm/{totp-d59752f4.js → totp-20565c98.js} +6 -2
  85. package/dist/node-esm/{totp-d59752f4.js.map → totp-20565c98.js.map} +1 -1
  86. package/dist/rn/index.js +1 -1
  87. package/dist/rn/internal.js +17 -3
  88. package/dist/rn/internal.js.map +1 -1
  89. package/dist/rn/{phone-bed858e3.js → phone-def44917.js} +27 -3
  90. package/dist/rn/{phone-bed858e3.js.map → phone-def44917.js.map} +1 -1
  91. package/dist/rn/src/core/index.d.ts +4 -0
  92. package/dist/rn/src/model/public_types.d.ts +2 -0
  93. package/dist/rn/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  94. package/dist/rn/src/platform_browser/popup_redirect.d.ts +3 -0
  95. package/dist/rn/src/platform_browser/providers/phone.d.ts +3 -0
  96. package/dist/rn/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  97. package/dist/rn/src/platform_browser/strategies/phone.d.ts +12 -1
  98. package/dist/rn/src/platform_browser/strategies/popup.d.ts +5 -1
  99. package/dist/rn/src/platform_browser/strategies/redirect.d.ts +8 -1
  100. package/dist/src/core/index.d.ts +4 -0
  101. package/dist/src/model/public_types.d.ts +2 -0
  102. package/dist/src/platform_browser/mfa/assertions/phone.d.ts +3 -0
  103. package/dist/src/platform_browser/popup_redirect.d.ts +3 -0
  104. package/dist/src/platform_browser/providers/phone.d.ts +3 -0
  105. package/dist/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +3 -0
  106. package/dist/src/platform_browser/strategies/phone.d.ts +12 -1
  107. package/dist/src/platform_browser/strategies/popup.d.ts +5 -1
  108. package/dist/src/platform_browser/strategies/redirect.d.ts +8 -1
  109. package/package.json +6 -6
  110. package/dist/esm5/index-3f6d263f.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-5803ad11.js');
5
+ var index = require('./index-68a7ec4c.js');
6
6
  require('@firebase/util');
7
7
  require('@firebase/app');
8
8
  require('tslib');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-5803ad11.js');
5
+ var index = require('./index-68a7ec4c.js');
6
6
  var util = require('@firebase/util');
7
7
  require('@firebase/app');
8
8
  require('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 Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
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.
@@ -1,6 +1,6 @@
1
1
  import { getApp, _getProvider } from '@firebase/app';
2
- import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-3d52f0db.js';
3
- export { A as ActionCodeOperation, a4 as ActionCodeURL, w as AuthCredential, t as AuthErrorCodes, E as EmailAuthCredential, B as EmailAuthProvider, C as FacebookAuthProvider, F as FactorId, D as GithubAuthProvider, G as GoogleAuthProvider, x as OAuthCredential, H as OAuthProvider, O as OperationType, y as PhoneAuthCredential, P as ProviderId, I as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, U as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, V as checkActionCode, R as confirmPasswordReset, v as connectAuthEmulator, d as cordovaPopupRedirectResolver, X as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a1 as fetchSignInMethodsForEmail, ac as getAdditionalUserInfo, a9 as getIdToken, aa as getIdTokenResult, ae as getMultiFactorResolver, g as getRedirectResult, z as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, $ as isSignInWithEmailLink, L as linkWithCredential, af as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a5 as parseActionCodeURL, q as prodErrorMap, M as reauthenticateWithCredential, ad as reload, a2 as sendEmailVerification, Q as sendPasswordResetEmail, Z as sendSignInLinkToEmail, s as setPersistence, J as signInAnonymously, K as signInWithCredential, N as signInWithCustomToken, Y as signInWithEmailAndPassword, a0 as signInWithEmailLink, m as signOut, ab as unlink, l as updateCurrentUser, a7 as updateEmail, a8 as updatePassword, a6 as updateProfile, u as useDeviceLanguage, a3 as verifyBeforeUpdateEmail, W as verifyPasswordResetCode } from './popup_redirect-3d52f0db.js';
2
+ import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-2dcc9534.js';
3
+ export { A as ActionCodeOperation, a4 as ActionCodeURL, w as AuthCredential, t as AuthErrorCodes, E as EmailAuthCredential, B as EmailAuthProvider, C as FacebookAuthProvider, F as FactorId, D as GithubAuthProvider, G as GoogleAuthProvider, x as OAuthCredential, H as OAuthProvider, O as OperationType, y as PhoneAuthCredential, P as ProviderId, I as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, U as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, V as checkActionCode, R as confirmPasswordReset, v as connectAuthEmulator, d as cordovaPopupRedirectResolver, X as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a1 as fetchSignInMethodsForEmail, ac as getAdditionalUserInfo, a9 as getIdToken, aa as getIdTokenResult, ae as getMultiFactorResolver, g as getRedirectResult, z as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, $ as isSignInWithEmailLink, L as linkWithCredential, af as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a5 as parseActionCodeURL, q as prodErrorMap, M as reauthenticateWithCredential, ad as reload, a2 as sendEmailVerification, Q as sendPasswordResetEmail, Z as sendSignInLinkToEmail, s as setPersistence, J as signInAnonymously, K as signInWithCredential, N as signInWithCustomToken, Y as signInWithEmailAndPassword, a0 as signInWithEmailLink, m as signOut, ab as unlink, l as updateCurrentUser, a7 as updateEmail, a8 as updatePassword, a6 as updateProfile, u as useDeviceLanguage, a3 as verifyBeforeUpdateEmail, W as verifyPasswordResetCode } from './popup_redirect-2dcc9534.js';
4
4
  import 'tslib';
5
5
  import '@firebase/util';
6
6
  import '@firebase/component';
@@ -1,5 +1,5 @@
1
- import { ag as _performApiRequest, ah as _addTidIfNecessary, ai as _assert, aj as Delay, ak as _window, al as isV2, am as _createError, an as _loadJS, ao as _generateCallbackName, ap as getRecaptchaParams, aq as _isHttpOrHttps, ar as _isWorker, as as _castAuth, K as signInWithCredential, L as linkWithCredential, at as _assertLinkedStatus, M as reauthenticateWithCredential, au as sendPhoneVerificationCode, av as startEnrollPhoneMfa, aw as _link, y as PhoneAuthCredential, ax as debugAssert, ay as _generateEventId, az as AbstractPopupRedirectOperation, aA as _assertInstanceOf, aB as _withDefaultResolver, aC as FederatedAuthProvider, aD as _fail, aE as _getProjectConfig, aF as _getCurrentUrl, aG as _emulatorUrl, aH as _isChromeIOS, aI as _isFirefox, aJ as _isIOSStandalone, aK as _getRedirectUrl, aL as _setWindowLocation, aM as _isMobileBrowser, aN as _isSafari, aO as _isIOS, f as browserSessionPersistence, aP as _getRedirectResult, aQ as _overrideRedirectResult, aR as AuthEventManager, aS as debugFail, aT as finalizeEnrollPhoneMfa, aU as finalizeEnrollTotpMfa, aV as startEnrollTotpMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence, j as beforeAuthStateChanged, o as onIdTokenChanged, v as connectAuthEmulator } from './popup_redirect-3d52f0db.js';
2
- export { A as ActionCodeOperation, a4 as ActionCodeURL, w as AuthCredential, t as AuthErrorCodes, aZ as AuthImpl, E as EmailAuthCredential, B as EmailAuthProvider, C as FacebookAuthProvider, F as FactorId, a$ as FetchProvider, D as GithubAuthProvider, G as GoogleAuthProvider, x as OAuthCredential, H as OAuthProvider, O as OperationType, y as PhoneAuthCredential, P as ProviderId, b0 as SAMLAuthCredential, I as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aX as UserImpl, ai as _assert, as as _castAuth, aD as _fail, ay as _generateEventId, a_ as _getClientVersion, aY as _getInstance, aP as _getRedirectResult, aQ as _overrideRedirectResult, aW as _persistenceKeyName, U as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, V as checkActionCode, R as confirmPasswordReset, v as connectAuthEmulator, d as cordovaPopupRedirectResolver, X as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a1 as fetchSignInMethodsForEmail, ac as getAdditionalUserInfo, a9 as getIdToken, aa as getIdTokenResult, ae as getMultiFactorResolver, g as getRedirectResult, z as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, $ as isSignInWithEmailLink, L as linkWithCredential, b2 as linkWithRedirect, af as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a5 as parseActionCodeURL, q as prodErrorMap, M as reauthenticateWithCredential, b3 as reauthenticateWithRedirect, ad as reload, a2 as sendEmailVerification, Q as sendPasswordResetEmail, Z as sendSignInLinkToEmail, s as setPersistence, J as signInAnonymously, K as signInWithCredential, N as signInWithCustomToken, Y as signInWithEmailAndPassword, a0 as signInWithEmailLink, b1 as signInWithRedirect, m as signOut, ab as unlink, l as updateCurrentUser, a7 as updateEmail, a8 as updatePassword, a6 as updateProfile, u as useDeviceLanguage, a3 as verifyBeforeUpdateEmail, W as verifyPasswordResetCode } from './popup_redirect-3d52f0db.js';
1
+ import { ag as _performApiRequest, ah as _addTidIfNecessary, ai as _assert, aj as Delay, ak as _window, al as isV2, am as _createError, an as _loadJS, ao as _generateCallbackName, ap as getRecaptchaParams, aq as _isHttpOrHttps, ar as _isWorker, as as _castAuth, K as signInWithCredential, L as linkWithCredential, at as _assertLinkedStatus, M as reauthenticateWithCredential, au as sendPhoneVerificationCode, av as startEnrollPhoneMfa, aw as _link, y as PhoneAuthCredential, ax as debugAssert, ay as _generateEventId, az as AbstractPopupRedirectOperation, aA as _assertInstanceOf, aB as _withDefaultResolver, aC as FederatedAuthProvider, aD as _fail, aE as _getProjectConfig, aF as _getCurrentUrl, aG as _emulatorUrl, aH as _isChromeIOS, aI as _isFirefox, aJ as _isIOSStandalone, aK as _getRedirectUrl, aL as _setWindowLocation, aM as _isMobileBrowser, aN as _isSafari, aO as _isIOS, f as browserSessionPersistence, aP as _getRedirectResult, aQ as _overrideRedirectResult, aR as AuthEventManager, aS as debugFail, aT as finalizeEnrollPhoneMfa, aU as finalizeEnrollTotpMfa, aV as startEnrollTotpMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence, j as beforeAuthStateChanged, o as onIdTokenChanged, v as connectAuthEmulator } from './popup_redirect-2dcc9534.js';
2
+ export { A as ActionCodeOperation, a4 as ActionCodeURL, w as AuthCredential, t as AuthErrorCodes, aZ as AuthImpl, E as EmailAuthCredential, B as EmailAuthProvider, C as FacebookAuthProvider, F as FactorId, a$ as FetchProvider, D as GithubAuthProvider, G as GoogleAuthProvider, x as OAuthCredential, H as OAuthProvider, O as OperationType, y as PhoneAuthCredential, P as ProviderId, b0 as SAMLAuthCredential, I as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aX as UserImpl, ai as _assert, as as _castAuth, aD as _fail, ay as _generateEventId, a_ as _getClientVersion, aY as _getInstance, aP as _getRedirectResult, aQ as _overrideRedirectResult, aW as _persistenceKeyName, U as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, V as checkActionCode, R as confirmPasswordReset, v as connectAuthEmulator, d as cordovaPopupRedirectResolver, X as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a1 as fetchSignInMethodsForEmail, ac as getAdditionalUserInfo, a9 as getIdToken, aa as getIdTokenResult, ae as getMultiFactorResolver, g as getRedirectResult, z as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, $ as isSignInWithEmailLink, L as linkWithCredential, b2 as linkWithRedirect, af as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a5 as parseActionCodeURL, q as prodErrorMap, M as reauthenticateWithCredential, b3 as reauthenticateWithRedirect, ad as reload, a2 as sendEmailVerification, Q as sendPasswordResetEmail, Z as sendSignInLinkToEmail, s as setPersistence, J as signInAnonymously, K as signInWithCredential, N as signInWithCustomToken, Y as signInWithEmailAndPassword, a0 as signInWithEmailLink, b1 as signInWithRedirect, m as signOut, ab as unlink, l as updateCurrentUser, a7 as updateEmail, a8 as updatePassword, a6 as updateProfile, u as useDeviceLanguage, a3 as verifyBeforeUpdateEmail, W as verifyPasswordResetCode } from './popup_redirect-2dcc9534.js';
3
3
  import { __awaiter, __generator, __assign, __extends, __spreadArray } from 'tslib';
4
4
  import { querystring, getModularInstance, getUA, getExperimentalSetting, getDefaultEmulatorHost } from '@firebase/util';
5
5
  import { SDK_VERSION, getApp, _getProvider } from '@firebase/app';
@@ -306,6 +306,9 @@ var DEFAULT_PARAMS = {
306
306
  /**
307
307
  * An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.
308
308
  *
309
+ * @remarks
310
+ * `RecaptchaVerifier` does not work in a Node.js environment.
311
+ *
309
312
  * @public
310
313
  */
311
314
  var RecaptchaVerifier = /** @class */ (function () {
@@ -580,6 +583,8 @@ var ConfirmationResultImpl = /** @class */ (function () {
580
583
  * {@link RecaptchaVerifier} (like React Native), but you need to use a
581
584
  * third-party {@link ApplicationVerifier} implementation.
582
585
  *
586
+ * This method does not work in a Node.js environment.
587
+ *
583
588
  * @example
584
589
  * ```javascript
585
590
  * // 'recaptcha-container' is the ID of an element in the DOM.
@@ -615,6 +620,9 @@ function signInWithPhoneNumber(auth, phoneNumber, appVerifier) {
615
620
  /**
616
621
  * Links the user account with the given phone number.
617
622
  *
623
+ * @remarks
624
+ * This method does not work in a Node.js environment.
625
+ *
618
626
  * @param user - The user.
619
627
  * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
620
628
  * @param appVerifier - The {@link ApplicationVerifier}.
@@ -644,7 +652,10 @@ function linkWithPhoneNumber(user, phoneNumber, appVerifier) {
644
652
  /**
645
653
  * Re-authenticates a user using a fresh phone credential.
646
654
  *
647
- * @remarks Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
655
+ * @remarks
656
+ * Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.
657
+ *
658
+ * This method does not work in a Node.js environment.
648
659
  *
649
660
  * @param user - The user.
650
661
  * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).
@@ -745,6 +756,9 @@ function _verifyPhoneNumber(auth, options, verifier) {
745
756
  /**
746
757
  * Updates the user's phone number.
747
758
  *
759
+ * @remarks
760
+ * This method does not work in a Node.js environment.
761
+ *
748
762
  * @example
749
763
  * ```
750
764
  * // 'recaptcha-container' is the ID of an element in the DOM.
@@ -793,6 +807,9 @@ function updatePhoneNumber(user, credential) {
793
807
  /**
794
808
  * Provider for generating an {@link PhoneAuthCredential}.
795
809
  *
810
+ * @remarks
811
+ * `PhoneAuthProvider` does not work in a Node.js environment.
812
+ *
796
813
  * @example
797
814
  * ```javascript
798
815
  * // 'recaptcha-container' is the ID of an element in the DOM.
@@ -965,6 +982,8 @@ var _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
965
982
  * If succeeds, returns the signed in user along with the provider's credential. If sign in was
966
983
  * unsuccessful, returns an error object containing additional information about the error.
967
984
  *
985
+ * This method does not work in a Node.js environment.
986
+ *
968
987
  * @example
969
988
  * ```javascript
970
989
  * // Sign in using a popup.
@@ -984,7 +1003,6 @@ var _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);
984
1003
  * @param resolver - An instance of {@link PopupRedirectResolver}, optional
985
1004
  * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
986
1005
  *
987
- *
988
1006
  * @public
989
1007
  */
990
1008
  function signInWithPopup(auth, provider, resolver) {
@@ -1007,6 +1025,8 @@ function signInWithPopup(auth, provider, resolver) {
1007
1025
  * If the reauthentication is successful, the returned result will contain the user and the
1008
1026
  * provider's credential.
1009
1027
  *
1028
+ * This method does not work in a Node.js environment.
1029
+ *
1010
1030
  * @example
1011
1031
  * ```javascript
1012
1032
  * // Sign in using a popup.
@@ -1042,6 +1062,7 @@ function reauthenticateWithPopup(user, provider, resolver) {
1042
1062
  * @remarks
1043
1063
  * If the linking is successful, the returned result will contain the user and the provider's credential.
1044
1064
  *
1065
+ * This method does not work in a Node.js environment.
1045
1066
  *
1046
1067
  * @example
1047
1068
  * ```javascript
@@ -1720,6 +1741,9 @@ var BrowserPopupRedirectResolver = /** @class */ (function () {
1720
1741
  * An implementation of {@link PopupRedirectResolver} suitable for browser
1721
1742
  * based applications.
1722
1743
  *
1744
+ * @remarks
1745
+ * This method does not work in a Node.js environment.
1746
+ *
1723
1747
  * @public
1724
1748
  */
1725
1749
  var browserPopupRedirectResolver = BrowserPopupRedirectResolver;
@@ -1785,6 +1809,9 @@ var PhoneMultiFactorGenerator = /** @class */ (function () {
1785
1809
  /**
1786
1810
  * Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.
1787
1811
  *
1812
+ * @remarks
1813
+ * This method does not work in a Node.js environment.
1814
+ *
1788
1815
  * @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
1789
1816
  * @returns A {@link PhoneMultiFactorAssertion} which can be used with
1790
1817
  * {@link MultiFactorResolver.resolveSignIn}