@firebase/auth 1.7.5 → 1.7.6-canary.08bb87b9f

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 (125) hide show
  1. package/README.md +1 -1
  2. package/dist/auth-public.d.ts +4 -4
  3. package/dist/auth.d.ts +4 -4
  4. package/dist/browser-cjs/{index-22b094f0.js → index-f068d89b.js} +12 -49
  5. package/dist/browser-cjs/index-f068d89b.js.map +1 -0
  6. package/dist/browser-cjs/index.js +1 -1
  7. package/dist/browser-cjs/internal.js +5 -5
  8. package/dist/browser-cjs/internal.js.map +1 -1
  9. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +1 -1
  10. package/dist/browser-cjs/src/core/providers/github.d.ts +4 -4
  11. package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  12. package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  13. package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  14. package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
  15. package/dist/cordova/auth-cordova-public.d.ts +4 -4
  16. package/dist/cordova/auth-cordova.d.ts +4 -4
  17. package/dist/cordova/index.js +2 -2
  18. package/dist/cordova/internal.js +4 -4
  19. package/dist/cordova/internal.js.map +1 -1
  20. package/dist/cordova/{popup_redirect-31aa6bae.js → popup_redirect-c40b6c29.js} +13 -50
  21. package/dist/cordova/popup_redirect-c40b6c29.js.map +1 -0
  22. package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -1
  23. package/dist/cordova/src/core/providers/github.d.ts +4 -4
  24. package/dist/cordova/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  25. package/dist/cordova/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  26. package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  27. package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +1 -1
  28. package/dist/esm2017/{index-54738136.js → index-4398bf28.js} +12 -49
  29. package/dist/esm2017/index-4398bf28.js.map +1 -0
  30. package/dist/esm2017/index.js +1 -1
  31. package/dist/esm2017/internal.js +6 -6
  32. package/dist/esm2017/internal.js.map +1 -1
  33. package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -1
  34. package/dist/esm2017/src/core/providers/github.d.ts +4 -4
  35. package/dist/esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  36. package/dist/esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  37. package/dist/esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  38. package/dist/esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
  39. package/dist/esm5/{index-5a49f2c0.js → index-9c402d1b.js} +11 -48
  40. package/dist/esm5/index-9c402d1b.js.map +1 -0
  41. package/dist/esm5/index.js +1 -1
  42. package/dist/esm5/internal.js +6 -6
  43. package/dist/esm5/internal.js.map +1 -1
  44. package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -1
  45. package/dist/esm5/src/core/providers/github.d.ts +4 -4
  46. package/dist/esm5/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  47. package/dist/esm5/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  48. package/dist/esm5/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  49. package/dist/esm5/test/integration/webdriver/util/idp_page.d.ts +1 -1
  50. package/dist/index.webworker.esm5.js +8 -8
  51. package/dist/index.webworker.esm5.js.map +1 -1
  52. package/dist/node/index.js +1 -1
  53. package/dist/node/internal.js +5 -32
  54. package/dist/node/internal.js.map +1 -1
  55. package/dist/node/src/core/auth/auth_impl.d.ts +1 -1
  56. package/dist/node/src/core/providers/github.d.ts +4 -4
  57. package/dist/node/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  58. package/dist/node/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  59. package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  60. package/dist/node/test/integration/webdriver/util/idp_page.d.ts +1 -1
  61. package/dist/node/{totp-721eac4b.js → totp-c913d6a8.js} +8 -20
  62. package/dist/node/totp-c913d6a8.js.map +1 -0
  63. package/dist/node-esm/index.js +1 -1
  64. package/dist/node-esm/internal.js +8 -35
  65. package/dist/node-esm/internal.js.map +1 -1
  66. package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -1
  67. package/dist/node-esm/src/core/providers/github.d.ts +4 -4
  68. package/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  69. package/dist/node-esm/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  70. package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  71. package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +1 -1
  72. package/dist/node-esm/{totp-3675c216.js → totp-82daeec5.js} +9 -19
  73. package/dist/node-esm/totp-82daeec5.js.map +1 -0
  74. package/dist/rn/{index-d345c8d7.js → index-499673c8.js} +9 -20
  75. package/dist/rn/index-499673c8.js.map +1 -0
  76. package/dist/rn/index.js +2 -2
  77. package/dist/rn/index.js.map +1 -1
  78. package/dist/rn/internal.js +7 -34
  79. package/dist/rn/internal.js.map +1 -1
  80. package/dist/rn/src/core/auth/auth_impl.d.ts +1 -1
  81. package/dist/rn/src/core/providers/github.d.ts +4 -4
  82. package/dist/rn/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  83. package/dist/rn/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  84. package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  85. package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +1 -1
  86. package/dist/src/core/auth/auth_impl.d.ts +1 -1
  87. package/dist/src/core/providers/github.d.ts +4 -4
  88. package/dist/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  89. package/dist/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  90. package/dist/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  91. package/dist/test/integration/webdriver/util/idp_page.d.ts +1 -1
  92. package/dist/web-extension-cjs/index.js +1 -1
  93. package/dist/web-extension-cjs/internal.js +8 -35
  94. package/dist/web-extension-cjs/internal.js.map +1 -1
  95. package/dist/web-extension-cjs/{register-6b27d5d8.js → register-7f3bef7e.js} +9 -20
  96. package/dist/web-extension-cjs/register-7f3bef7e.js.map +1 -0
  97. package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +1 -1
  98. package/dist/web-extension-cjs/src/core/providers/github.d.ts +4 -4
  99. package/dist/web-extension-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  100. package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  101. package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  102. package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
  103. package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +4 -4
  104. package/dist/web-extension-esm2017/auth-web-extension.d.ts +4 -4
  105. package/dist/web-extension-esm2017/index.js +2 -2
  106. package/dist/web-extension-esm2017/internal.js +10 -37
  107. package/dist/web-extension-esm2017/internal.js.map +1 -1
  108. package/dist/web-extension-esm2017/{register-83348242.js → register-e842a4a6.js} +10 -20
  109. package/dist/web-extension-esm2017/register-e842a4a6.js.map +1 -0
  110. package/dist/web-extension-esm2017/src/core/auth/auth_impl.d.ts +1 -1
  111. package/dist/web-extension-esm2017/src/core/providers/github.d.ts +4 -4
  112. package/dist/web-extension-esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  113. package/dist/web-extension-esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  114. package/dist/web-extension-esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  115. package/dist/web-extension-esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
  116. package/package.json +6 -6
  117. package/dist/browser-cjs/index-22b094f0.js.map +0 -1
  118. package/dist/cordova/popup_redirect-31aa6bae.js.map +0 -1
  119. package/dist/esm2017/index-54738136.js.map +0 -1
  120. package/dist/esm5/index-5a49f2c0.js.map +0 -1
  121. package/dist/node/totp-721eac4b.js.map +0 -1
  122. package/dist/node-esm/totp-3675c216.js.map +0 -1
  123. package/dist/rn/index-d345c8d7.js.map +0 -1
  124. package/dist/web-extension-cjs/register-6b27d5d8.js.map +0 -1
  125. package/dist/web-extension-esm2017/register-83348242.js.map +0 -1
@@ -122,7 +122,7 @@ export declare class AuthImpl implements AuthInternal, _FirebaseService {
122
122
  _getAppCheckToken(): Promise<string | undefined>;
123
123
  }
124
124
  /**
125
- * Method to be used to cast down to our private implmentation of Auth.
125
+ * Method to be used to cast down to our private implementation of Auth.
126
126
  * It will also handle unwrapping from the compat type if necessary
127
127
  *
128
128
  * @param auth Auth object passed in from developer
@@ -39,7 +39,7 @@ import { BaseOAuthProvider } from './oauth';
39
39
  * if (result) {
40
40
  * // This is the signed-in user
41
41
  * const user = result.user;
42
- * // This gives you a Github Access Token.
42
+ * // This gives you a GitHub Access Token.
43
43
  * const credential = GithubAuthProvider.credentialFromResult(result);
44
44
  * const token = credential.accessToken;
45
45
  * }
@@ -54,7 +54,7 @@ import { BaseOAuthProvider } from './oauth';
54
54
  *
55
55
  * // The signed-in user info.
56
56
  * const user = result.user;
57
- * // This gives you a Github Access Token.
57
+ * // This gives you a GitHub Access Token.
58
58
  * const credential = GithubAuthProvider.credentialFromResult(result);
59
59
  * const token = credential.accessToken;
60
60
  * ```
@@ -67,9 +67,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
67
67
  static readonly PROVIDER_ID: 'github.com';
68
68
  constructor();
69
69
  /**
70
- * Creates a credential for Github.
70
+ * Creates a credential for GitHub.
71
71
  *
72
- * @param accessToken - Github access token.
72
+ * @param accessToken - GitHub access token.
73
73
  */
74
74
  static credential(accessToken: string): OAuthCredential;
75
75
  /**
@@ -56,7 +56,7 @@ export declare class Receiver {
56
56
  * Unsubscribe an event handler from a particular event.
57
57
  *
58
58
  * @param eventType - Event name to unsubscribe from.
59
- * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.
59
+ * @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event.
60
60
  *
61
61
  */
62
62
  _unsubscribe<T extends _ReceiverResponse, S extends _SenderRequest>(eventType: _EventType, eventHandler?: ReceiverHandler<T, S>): void;
@@ -20,7 +20,7 @@ import { AuthEvent, AuthEventType } from '../../model/popup_redirect';
20
20
  /** Custom AuthEventManager that adds passive listeners to events */
21
21
  export declare class CordovaAuthEventManager extends AuthEventManager {
22
22
  private readonly passiveListeners;
23
- private resolveInialized;
23
+ private resolveInitialized;
24
24
  private initPromise;
25
25
  addPassiveListener(cb: (e: AuthEvent) => void): void;
26
26
  removePassiveListener(cb: (e: AuthEvent) => void): void;
@@ -17,7 +17,7 @@
17
17
  import { Auth, User, Persistence } from '@firebase/auth';
18
18
  import { WebDriver } from 'selenium-webdriver';
19
19
  export declare const START_FUNCTION = "startAuth";
20
- /** Helper wraper around the WebDriver object */
20
+ /** Helper wrapper around the WebDriver object */
21
21
  export declare class AuthDriver {
22
22
  webDriver: WebDriver;
23
23
  start(browser: string): Promise<void>;
@@ -26,6 +26,6 @@ export declare class IdPPage {
26
26
  fillEmail(email: string): Promise<void>;
27
27
  fillDisplayName(displayName: string): Promise<void>;
28
28
  fillScreenName(screenName: string): Promise<void>;
29
- fillProfilePhoto(prophilePhoto: string): Promise<void>;
29
+ fillProfilePhoto(profilePhoto: string): Promise<void>;
30
30
  private fillInput;
31
31
  }
@@ -1256,7 +1256,7 @@ declare interface GetRecaptchaConfigResponse {
1256
1256
  * if (result) {
1257
1257
  * // This is the signed-in user
1258
1258
  * const user = result.user;
1259
- * // This gives you a Github Access Token.
1259
+ * // This gives you a GitHub Access Token.
1260
1260
  * const credential = GithubAuthProvider.credentialFromResult(result);
1261
1261
  * const token = credential.accessToken;
1262
1262
  * }
@@ -1271,7 +1271,7 @@ declare interface GetRecaptchaConfigResponse {
1271
1271
  *
1272
1272
  * // The signed-in user info.
1273
1273
  * const user = result.user;
1274
- * // This gives you a Github Access Token.
1274
+ * // This gives you a GitHub Access Token.
1275
1275
  * const credential = GithubAuthProvider.credentialFromResult(result);
1276
1276
  * const token = credential.accessToken;
1277
1277
  * ```
@@ -1284,9 +1284,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
1284
1284
  static readonly PROVIDER_ID: 'github.com';
1285
1285
  constructor();
1286
1286
  /**
1287
- * Creates a credential for Github.
1287
+ * Creates a credential for GitHub.
1288
1288
  *
1289
- * @param accessToken - Github access token.
1289
+ * @param accessToken - GitHub access token.
1290
1290
  */
1291
1291
  static credential(accessToken: string): OAuthCredential;
1292
1292
  /**
@@ -1553,7 +1553,7 @@ declare interface GetRecaptchaConfigResponse {
1553
1553
  * if (result) {
1554
1554
  * // This is the signed-in user
1555
1555
  * const user = result.user;
1556
- * // This gives you a Github Access Token.
1556
+ * // This gives you a GitHub Access Token.
1557
1557
  * const credential = GithubAuthProvider.credentialFromResult(result);
1558
1558
  * const token = credential.accessToken;
1559
1559
  * }
@@ -1568,7 +1568,7 @@ declare interface GetRecaptchaConfigResponse {
1568
1568
  *
1569
1569
  * // The signed-in user info.
1570
1570
  * const user = result.user;
1571
- * // This gives you a Github Access Token.
1571
+ * // This gives you a GitHub Access Token.
1572
1572
  * const credential = GithubAuthProvider.credentialFromResult(result);
1573
1573
  * const token = credential.accessToken;
1574
1574
  * ```
@@ -1581,9 +1581,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
1581
1581
  static readonly PROVIDER_ID: 'github.com';
1582
1582
  constructor();
1583
1583
  /**
1584
- * Creates a credential for Github.
1584
+ * Creates a credential for GitHub.
1585
1585
  *
1586
- * @param accessToken - Github access token.
1586
+ * @param accessToken - GitHub access token.
1587
1587
  */
1588
1588
  static credential(accessToken: string): OAuthCredential;
1589
1589
  /**
@@ -1,5 +1,5 @@
1
- import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-83348242.js';
2
- export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-83348242.js';
1
+ import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-e842a4a6.js';
2
+ export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-e842a4a6.js';
3
3
  import { _getProvider, getApp } from '@firebase/app';
4
4
  import { getDefaultEmulatorHost } from '@firebase/util';
5
5
  import 'tslib';
@@ -1,6 +1,6 @@
1
- import { a8 as STORAGE_AVAILABLE_KEY, a9 as _isIframe, aa as _isMobileBrowser, ab as _isIE10, ac as _isSafari, ad as _isIOS, ae as _assert, af as Delay, ag as _window, ah as isV2, ai as _createError, aj as _recaptchaV2ScriptUrl, ak as _loadJS, al as _generateCallbackName, am as _castAuth, an as _isHttpOrHttps, ao as _isWorker, ap as getRecaptchaParams, aq as _serverAppCurrentUserOperationNotSupportedError, z as signInWithCredential, ar as _assertLinkedStatus, B as linkWithCredential, C as reauthenticateWithCredential, as as startEnrollPhoneMfa, at as startSignInPhoneMfa, au as sendPhoneVerificationCode, av as _link$1, P as PhoneAuthCredential, aw as _getInstance, ax as _signInWithCredential, ay as _reauthenticate, m as AuthCredential, az as signInWithIdp, aA as _fail, aB as debugAssert, aC as _assertInstanceOf, aD as _generateEventId, aE as FederatedAuthProvider, aF as _persistenceKeyName, aG as _performApiRequest, aH as _getCurrentUrl, aI as _gapiScriptUrl, aJ as _emulatorUrl, aK as _isChromeIOS, aL as _isFirefox, aM as _isIOSStandalone, aN as BaseOAuthProvider, aO as _setWindowLocation, aP as MultiFactorAssertionImpl, aQ as finalizeEnrollPhoneMfa, aR as finalizeSignInPhoneMfa, r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, e as beforeAuthStateChanged, o as onIdTokenChanged, c as connectAuthEmulator, aS as _setExternalJSProvider, aT as _isAndroid, aU as _isIOS7Or8 } from './register-83348242.js';
2
- export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, aW as AuthImpl, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, aY as FetchProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, aZ as SAMLAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, aV as UserImpl, ae as _assert, am as _castAuth, aA as _fail, aD as _generateEventId, aX as _getClientVersion, aw as _getInstance, aF as _persistenceKeyName, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-83348242.js';
3
- import { getUA, querystring, getModularInstance, isEmpty, getExperimentalSetting, getDefaultEmulatorHost, querystringDecode } from '@firebase/util';
1
+ import { a8 as STORAGE_AVAILABLE_KEY, a9 as _isMobileBrowser, aa as _isIE10, ab as _assert, ac as Delay, ad as _window, ae as isV2, af as _createError, ag as _recaptchaV2ScriptUrl, ah as _loadJS, ai as _generateCallbackName, aj as _castAuth, ak as _isHttpOrHttps, al as _isWorker, am as getRecaptchaParams, an as _serverAppCurrentUserOperationNotSupportedError, z as signInWithCredential, ao as _assertLinkedStatus, B as linkWithCredential, C as reauthenticateWithCredential, ap as startEnrollPhoneMfa, aq as startSignInPhoneMfa, ar as sendPhoneVerificationCode, as as _link$1, P as PhoneAuthCredential, at as _getInstance, au as _signInWithCredential, av as _reauthenticate, m as AuthCredential, aw as signInWithIdp, ax as _fail, ay as debugAssert, az as _assertInstanceOf, aA as _generateEventId, aB as FederatedAuthProvider, aC as _persistenceKeyName, aD as _performApiRequest, aE as _getCurrentUrl, aF as _gapiScriptUrl, aG as _emulatorUrl, aH as _isChromeIOS, aI as _isFirefox, aJ as _isIOSStandalone, aK as BaseOAuthProvider, aL as _setWindowLocation, aM as _isSafari, aN as _isIOS, aO as MultiFactorAssertionImpl, aP as finalizeEnrollPhoneMfa, aQ as finalizeSignInPhoneMfa, r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, e as beforeAuthStateChanged, o as onIdTokenChanged, c as connectAuthEmulator, aR as _setExternalJSProvider, aS as _isAndroid, aT as _isIOS7Or8 } from './register-e842a4a6.js';
2
+ export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, aV as AuthImpl, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, aX as FetchProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, aY as SAMLAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, aU as UserImpl, ab as _assert, aj as _castAuth, ax as _fail, aA as _generateEventId, aW as _getClientVersion, at as _getInstance, aC as _persistenceKeyName, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-e842a4a6.js';
3
+ import { querystring, getModularInstance, getUA, isEmpty, getExperimentalSetting, getDefaultEmulatorHost, querystringDecode } from '@firebase/util';
4
4
  import { _isFirebaseServerApp, SDK_VERSION, _getProvider, getApp } from '@firebase/app';
5
5
  import 'tslib';
6
6
  import '@firebase/component';
@@ -175,10 +175,6 @@ class BrowserPersistenceClass {
175
175
  * See the License for the specific language governing permissions and
176
176
  * limitations under the License.
177
177
  */
178
- function _iframeCannotSyncWebStorage() {
179
- const ua = getUA();
180
- return _isSafari(ua) || _isIOS(ua);
181
- }
182
178
  // The polling period in case events are not supported
183
179
  const _POLLING_INTERVAL_MS = 1000;
184
180
  // The IE 10 localStorage cross tab synchronization delay in milliseconds
@@ -192,8 +188,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
192
188
  // setTimeout return value is platform specific
193
189
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
194
190
  this.pollTimer = null;
195
- // Safari or iOS browser and embedded in an iframe.
196
- this.safariLocalStorageNotSynced = _iframeCannotSyncWebStorage() && _isIframe();
197
191
  // Whether to use polling instead of depending on window events
198
192
  this.fallbackToPolling = _isMobileBrowser();
199
193
  this._shouldAllowMigration = true;
@@ -232,27 +226,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
232
226
  // Remove polling listener to prevent possible event duplication.
233
227
  this.stopPolling();
234
228
  }
235
- // Safari embedded iframe. Storage event will trigger with the delta
236
- // changes but no changes will be applied to the iframe localStorage.
237
- if (this.safariLocalStorageNotSynced) {
238
- // Get current iframe page value.
239
- const storedValue = this.storage.getItem(key);
240
- // Value not synchronized, synchronize manually.
241
- if (event.newValue !== storedValue) {
242
- if (event.newValue !== null) {
243
- // Value changed from current value.
244
- this.storage.setItem(key, event.newValue);
245
- }
246
- else {
247
- // Current value deleted.
248
- this.storage.removeItem(key);
249
- }
250
- }
251
- else if (this.localCache[key] === event.newValue && !poll) {
252
- // Already detected and processed, do not trigger listeners again.
253
- return;
254
- }
255
- }
256
229
  const triggerListeners = () => {
257
230
  // Keep local map up to date in case storage event is triggered before
258
231
  // poll.
@@ -586,7 +559,7 @@ class ReCaptchaLoaderImpl {
586
559
  reject(_createError(auth, "internal-error" /* AuthErrorCode.INTERNAL_ERROR */));
587
560
  return;
588
561
  }
589
- // Wrap the greptcha render function so that we know if the developer has
562
+ // Wrap the recaptcha render function so that we know if the developer has
590
563
  // called it separately
591
564
  const render = recaptcha.render;
592
565
  recaptcha.render = (container, params) => {
@@ -2193,7 +2166,7 @@ function matchDomain(expected) {
2193
2166
  */
2194
2167
  const NETWORK_TIMEOUT = new Delay(30000, 60000);
2195
2168
  /**
2196
- * Reset unlaoded GApi modules. If gapi.load fails due to a network error,
2169
+ * Reset unloaded GApi modules. If gapi.load fails due to a network error,
2197
2170
  * it will stop working after a retrial. This is a hack to fix this issue.
2198
2171
  */
2199
2172
  function resetUnloadedGapiModules() {
@@ -2528,7 +2501,7 @@ async function _getRedirectUrl(auth, provider, authType, redirectUrl, eventId, a
2528
2501
  if (auth.tenantId) {
2529
2502
  params.tid = auth.tenantId;
2530
2503
  }
2531
- // TODO: maybe set eid as endipointId
2504
+ // TODO: maybe set eid as endpointId
2532
2505
  // TODO: maybe set fw as Frameworks.join(",")
2533
2506
  const paramsDict = params;
2534
2507
  for (const key of Object.keys(paramsDict)) {
@@ -2955,7 +2928,7 @@ async function _waitForAppResume(auth, eventListener, iabRef) {
2955
2928
  if (typeof closeBrowserTab === 'function') {
2956
2929
  closeBrowserTab();
2957
2930
  }
2958
- // Close inappbrowser emebedded webview in iOS7 and 8 case if still
2931
+ // Close inappbrowser embedded webview in iOS7 and 8 case if still
2959
2932
  // open.
2960
2933
  if (typeof (iabRef === null || iabRef === void 0 ? void 0 : iabRef.close) === 'function') {
2961
2934
  iabRef.close();
@@ -2967,7 +2940,7 @@ async function _waitForAppResume(auth, eventListener, iabRef) {
2967
2940
  return;
2968
2941
  }
2969
2942
  onCloseTimer = window.setTimeout(() => {
2970
- // Wait two seeconds after resume then reject.
2943
+ // Wait two seconds after resume then reject.
2971
2944
  reject(_createError(auth, "redirect-cancelled-by-user" /* AuthErrorCode.REDIRECT_CANCELLED_BY_USER */));
2972
2945
  }, REDIRECT_TIMEOUT_MS);
2973
2946
  }
@@ -3084,7 +3057,7 @@ class CordovaAuthEventManager extends AuthEventManager {
3084
3057
  super(...arguments);
3085
3058
  this.passiveListeners = new Set();
3086
3059
  this.initPromise = new Promise(resolve => {
3087
- this.resolveInialized = resolve;
3060
+ this.resolveInitialized = resolve;
3088
3061
  });
3089
3062
  }
3090
3063
  addPassiveListener(cb) {
@@ -3101,7 +3074,7 @@ class CordovaAuthEventManager extends AuthEventManager {
3101
3074
  }
3102
3075
  /** Override the onEvent method */
3103
3076
  onEvent(event) {
3104
- this.resolveInialized();
3077
+ this.resolveInitialized();
3105
3078
  this.passiveListeners.forEach(cb => cb(event));
3106
3079
  return super.onEvent(event);
3107
3080
  }