@firebase/auth 1.13.8 → 1.13.9-20261030160918

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 (117) hide show
  1. package/dist/browser-cjs/{index-CduFNIYN.js → index-BdqmG8Xn.js} +17 -6
  2. package/dist/browser-cjs/index-BdqmG8Xn.js.map +1 -0
  3. package/dist/browser-cjs/index.js +1 -1
  4. package/dist/browser-cjs/internal.js +1 -1
  5. package/dist/browser-cjs/src/core/index.d.ts +2 -2
  6. package/dist/browser-cjs/src/core/user/token_manager.d.ts +1 -1
  7. package/dist/browser-cjs/src/model/public_types.d.ts +1 -1
  8. package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +1 -1
  9. package/dist/browser-cjs/test/helpers/timeout_stub.d.ts +1 -1
  10. package/dist/browser-cjs/test/integration/flows/middleware_test_generator.d.ts +1 -1
  11. package/dist/{cordova/scripts/run_node_tests.d.ts → browser-cjs/test/setup.d.ts} +1 -1
  12. package/dist/cordova/index.js +2 -2
  13. package/dist/cordova/internal.js +2 -2
  14. package/dist/cordova/internal.js.map +1 -1
  15. package/dist/cordova/{popup_redirect-wkjagYQk.js → popup_redirect-BcsumZ6M.js} +17 -6
  16. package/dist/cordova/popup_redirect-BcsumZ6M.js.map +1 -0
  17. package/dist/cordova/src/core/index.d.ts +2 -2
  18. package/dist/cordova/src/core/user/token_manager.d.ts +1 -1
  19. package/dist/cordova/src/model/public_types.d.ts +1 -1
  20. package/dist/cordova/test/helpers/integration/helpers.d.ts +1 -1
  21. package/dist/cordova/test/helpers/timeout_stub.d.ts +1 -1
  22. package/dist/cordova/test/integration/flows/middleware_test_generator.d.ts +1 -1
  23. package/dist/{esm/scripts/run_node_tests.d.ts → cordova/test/setup.d.ts} +1 -1
  24. package/dist/esm/{index-DYWDbVEA.js → index-DrnoXVtB.js} +17 -6
  25. package/dist/esm/index-DrnoXVtB.js.map +1 -0
  26. package/dist/esm/index.js +1 -1
  27. package/dist/esm/internal.js +2 -2
  28. package/dist/esm/src/core/index.d.ts +2 -2
  29. package/dist/esm/src/core/user/token_manager.d.ts +1 -1
  30. package/dist/esm/src/model/public_types.d.ts +1 -1
  31. package/dist/esm/test/helpers/integration/helpers.d.ts +1 -1
  32. package/dist/esm/test/helpers/timeout_stub.d.ts +1 -1
  33. package/dist/esm/test/integration/flows/middleware_test_generator.d.ts +1 -1
  34. package/dist/{browser-cjs/scripts/run_node_tests.d.ts → esm/test/setup.d.ts} +1 -1
  35. package/dist/index.webworker.js +4 -4
  36. package/dist/index.webworker.js.map +1 -1
  37. package/dist/node/index.js +1 -1
  38. package/dist/node/internal.js +13 -2
  39. package/dist/node/internal.js.map +1 -1
  40. package/dist/node/src/core/index.d.ts +2 -2
  41. package/dist/node/src/core/user/token_manager.d.ts +1 -1
  42. package/dist/node/src/model/public_types.d.ts +1 -1
  43. package/dist/node/test/helpers/integration/helpers.d.ts +1 -1
  44. package/dist/node/test/helpers/timeout_stub.d.ts +1 -1
  45. package/dist/node/test/integration/flows/middleware_test_generator.d.ts +1 -1
  46. package/dist/node/test/setup.d.ts +17 -0
  47. package/dist/node/{totp-O2KJuI_N.js → totp-D2NUkJ03.js} +4 -4
  48. package/dist/node/totp-D2NUkJ03.js.map +1 -0
  49. package/dist/node-esm/index.js +1 -1
  50. package/dist/node-esm/internal.js +14 -3
  51. package/dist/node-esm/internal.js.map +1 -1
  52. package/dist/node-esm/src/core/index.d.ts +2 -2
  53. package/dist/node-esm/src/core/user/token_manager.d.ts +1 -1
  54. package/dist/node-esm/src/model/public_types.d.ts +1 -1
  55. package/dist/node-esm/test/helpers/integration/helpers.d.ts +1 -1
  56. package/dist/node-esm/test/helpers/timeout_stub.d.ts +1 -1
  57. package/dist/node-esm/test/integration/flows/middleware_test_generator.d.ts +1 -1
  58. package/dist/node-esm/{scripts/run_node_tests.d.ts → test/setup.d.ts} +1 -1
  59. package/dist/node-esm/{totp-B3xKteUw.js → totp-eShpasN_.js} +4 -4
  60. package/dist/node-esm/totp-eShpasN_.js.map +1 -0
  61. package/dist/rn/{index-Em1YzGPG.js → index-CtA0403N.js} +4 -4
  62. package/dist/rn/index-CtA0403N.js.map +1 -0
  63. package/dist/rn/index.js +1 -1
  64. package/dist/rn/internal.js +14 -3
  65. package/dist/rn/internal.js.map +1 -1
  66. package/dist/rn/src/core/index.d.ts +2 -2
  67. package/dist/rn/src/core/user/token_manager.d.ts +1 -1
  68. package/dist/rn/src/model/public_types.d.ts +1 -1
  69. package/dist/rn/test/helpers/integration/helpers.d.ts +1 -1
  70. package/dist/rn/test/helpers/timeout_stub.d.ts +1 -1
  71. package/dist/rn/test/integration/flows/middleware_test_generator.d.ts +1 -1
  72. package/dist/rn/test/setup.d.ts +17 -0
  73. package/dist/src/core/index.d.ts +2 -2
  74. package/dist/src/core/user/token_manager.d.ts +1 -1
  75. package/dist/src/model/public_types.d.ts +1 -1
  76. package/dist/test/helpers/integration/helpers.d.ts +1 -1
  77. package/dist/test/helpers/timeout_stub.d.ts +1 -1
  78. package/dist/test/integration/flows/middleware_test_generator.d.ts +1 -1
  79. package/dist/test/setup.d.ts +17 -0
  80. package/dist/web-extension-cjs/index.js +1 -1
  81. package/dist/web-extension-cjs/internal.js +13 -2
  82. package/dist/web-extension-cjs/internal.js.map +1 -1
  83. package/dist/web-extension-cjs/{register-DH90TgE1.js → register-DrRDNv2-.js} +5 -5
  84. package/dist/web-extension-cjs/register-DrRDNv2-.js.map +1 -0
  85. package/dist/web-extension-cjs/src/core/index.d.ts +2 -2
  86. package/dist/web-extension-cjs/src/core/user/token_manager.d.ts +1 -1
  87. package/dist/web-extension-cjs/src/model/public_types.d.ts +1 -1
  88. package/dist/web-extension-cjs/test/helpers/integration/helpers.d.ts +1 -1
  89. package/dist/web-extension-cjs/test/helpers/timeout_stub.d.ts +1 -1
  90. package/dist/web-extension-cjs/test/integration/flows/middleware_test_generator.d.ts +1 -1
  91. package/dist/web-extension-cjs/test/setup.d.ts +17 -0
  92. package/dist/web-extension-esm/index.js +2 -2
  93. package/dist/web-extension-esm/internal.js +14 -3
  94. package/dist/web-extension-esm/internal.js.map +1 -1
  95. package/dist/web-extension-esm/{register-1dTRtNx2.js → register-Ctul-fFl.js} +5 -5
  96. package/dist/web-extension-esm/register-Ctul-fFl.js.map +1 -0
  97. package/dist/web-extension-esm/src/core/index.d.ts +2 -2
  98. package/dist/web-extension-esm/src/core/user/token_manager.d.ts +1 -1
  99. package/dist/web-extension-esm/src/model/public_types.d.ts +1 -1
  100. package/dist/web-extension-esm/test/helpers/integration/helpers.d.ts +1 -1
  101. package/dist/web-extension-esm/test/helpers/timeout_stub.d.ts +1 -1
  102. package/dist/web-extension-esm/test/integration/flows/middleware_test_generator.d.ts +1 -1
  103. package/dist/web-extension-esm/test/setup.d.ts +17 -0
  104. package/package.json +19 -24
  105. package/dist/browser-cjs/index-CduFNIYN.js.map +0 -1
  106. package/dist/cordova/popup_redirect-wkjagYQk.js.map +0 -1
  107. package/dist/esm/index-DYWDbVEA.js.map +0 -1
  108. package/dist/node/scripts/run_node_tests.d.ts +0 -17
  109. package/dist/node/totp-O2KJuI_N.js.map +0 -1
  110. package/dist/node-esm/totp-B3xKteUw.js.map +0 -1
  111. package/dist/rn/index-Em1YzGPG.js.map +0 -1
  112. package/dist/rn/scripts/run_node_tests.d.ts +0 -17
  113. package/dist/scripts/run_node_tests.d.ts +0 -17
  114. package/dist/web-extension-cjs/register-DH90TgE1.js.map +0 -1
  115. package/dist/web-extension-cjs/scripts/run_node_tests.d.ts +0 -17
  116. package/dist/web-extension-esm/register-1dTRtNx2.js.map +0 -1
  117. package/dist/web-extension-esm/scripts/run_node_tests.d.ts +0 -17
@@ -197,10 +197,10 @@ export { PhoneAuthCredential } from './credentials/phone';
197
197
  export { inMemoryPersistence } from './persistence/in_memory';
198
198
  export { EmailAuthProvider } from './providers/email';
199
199
  export { FacebookAuthProvider } from './providers/facebook';
200
- export { CustomParameters } from './providers/federated';
200
+ export type { CustomParameters } from './providers/federated';
201
201
  export { GoogleAuthProvider } from './providers/google';
202
202
  export { GithubAuthProvider } from './providers/github';
203
- export { OAuthProvider, OAuthCredentialOptions } from './providers/oauth';
203
+ export { OAuthProvider, type OAuthCredentialOptions } from './providers/oauth';
204
204
  export { SAMLAuthProvider } from './providers/saml';
205
205
  export { TwitterAuthProvider } from './providers/twitter';
206
206
  export { signInAnonymously } from './strategies/anonymous';
@@ -23,7 +23,7 @@ import { PersistedBlob } from '../persistence';
23
23
  * to refresh that token, to provide a buffer for RPCs to complete.
24
24
  */
25
25
  export declare const enum Buffer {
26
- TOKEN_REFRESH = 30000
26
+ TOKEN_REFRESH = 300000
27
27
  }
28
28
  /**
29
29
  * We need to mark this class as internal explicitly to exclude it in the public typings, because
@@ -17,7 +17,7 @@
17
17
  import { FirebaseApp } from '@firebase/app';
18
18
  import { CompleteFn, ErrorFn, FirebaseError, NextFn, Observer, Unsubscribe } from '@firebase/util';
19
19
  import { FactorId as FactorIdMap, OperationType as OperationTypeMap, ActionCodeOperation as ActionCodeOperationMap } from './enum_maps';
20
- export { CompleteFn, ErrorFn, NextFn, Unsubscribe };
20
+ export type { CompleteFn, ErrorFn, NextFn, Unsubscribe };
21
21
  /**
22
22
  * Interface representing the `Auth` config.
23
23
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright 2020 Google LLC
3
+ * Copyright 2026 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright 2020 Google LLC
3
+ * Copyright 2026 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright 2022 Google LLC
3
+ * Copyright 2026 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright 2020 Google LLC
3
+ * Copyright 2026 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1641,7 +1641,7 @@ class StsTokenManager {
1641
1641
  }
1642
1642
  get isExpired() {
1643
1643
  return (!this.expirationTime ||
1644
- Date.now() > this.expirationTime - 30000 /* Buffer.TOKEN_REFRESH */);
1644
+ Date.now() > this.expirationTime - 300000 /* Buffer.TOKEN_REFRESH */);
1645
1645
  }
1646
1646
  updateFromServerResponse(response) {
1647
1647
  _assert(response.idToken, "internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
@@ -3772,7 +3772,7 @@ async function _initializeRecaptchaConfig(auth) {
3772
3772
  }
3773
3773
  if (config.isAnyProviderEnabled()) {
3774
3774
  const verifier = new RecaptchaEnterpriseVerifier(authInternal);
3775
- void verifier.verify();
3775
+ void verifier.verify().catch(() => { });
3776
3776
  }
3777
3777
  }
3778
3778
 
@@ -8573,7 +8573,7 @@ class IndexedDBLocalPersistence {
8573
8573
  if (!this.listeners[key]) {
8574
8574
  this.listeners[key] = new Set();
8575
8575
  // Populate the cache to avoid spuriously triggering on first poll.
8576
- void this._get(key); // This can happen in the background async and we can return immediately.
8576
+ void this._get(key).catch(() => { }); // This can happen in the background async and we can return immediately.
8577
8577
  }
8578
8578
  this.listeners[key].add(listener);
8579
8579
  }
@@ -9529,15 +9529,26 @@ class AbstractPopupRedirectOperation {
9529
9529
  this.pendingPromise = { resolve, reject };
9530
9530
  try {
9531
9531
  this.eventManager = await this.resolver._initialize(this.auth);
9532
+ if (!this.pendingPromise) {
9533
+ return;
9534
+ }
9532
9535
  await this.onExecution();
9536
+ if (!this.pendingPromise) {
9537
+ return;
9538
+ }
9533
9539
  this.eventManager.registerConsumer(this);
9534
9540
  }
9535
9541
  catch (e) {
9536
- this.reject(e);
9542
+ if (this.pendingPromise) {
9543
+ this.reject(e);
9544
+ }
9537
9545
  }
9538
9546
  });
9539
9547
  }
9540
9548
  async onAuthEvent(event) {
9549
+ if (!this.pendingPromise) {
9550
+ return;
9551
+ }
9541
9552
  const { urlResponse, sessionId, postBody, tenantId, error, type } = event;
9542
9553
  if (error) {
9543
9554
  this.reject(error);
@@ -11067,7 +11078,7 @@ function _isEmptyString(input) {
11067
11078
  }
11068
11079
 
11069
11080
  var name = "@firebase/auth";
11070
- var version = "1.13.8";
11081
+ var version = "1.13.9-20261030160918";
11071
11082
 
11072
11083
  /**
11073
11084
  * @license
@@ -11320,4 +11331,4 @@ _setExternalJSProvider({
11320
11331
  registerAuth("Browser" /* ClientPlatform.BROWSER */);
11321
11332
 
11322
11333
  export { onIdTokenChanged as $, ActionCodeOperation as A, fetchSignInMethodsForEmail as B, getAdditionalUserInfo as C, getAuth as D, EmailAuthCredential as E, FacebookAuthProvider as F, GithubAuthProvider as G, getIdToken as H, getIdTokenResult as I, getMultiFactorResolver as J, getRedirectResult as K, inMemoryPersistence as L, indexedDBLocalPersistence as M, initializeAuth as N, OAuthCredential as O, PhoneAuthCredential as P, initializeRecaptchaConfig as Q, RecaptchaVerifier as R, SAMLAuthProvider as S, TotpMultiFactorGenerator as T, isSignInWithEmailLink as U, linkWithCredential as V, linkWithPhoneNumber as W, linkWithPopup as X, linkWithRedirect as Y, multiFactor as Z, onAuthStateChanged as _, ActionCodeURL as a, parseActionCodeURL as a0, prodErrorMap as a1, reauthenticateWithCredential as a2, reauthenticateWithPhoneNumber as a3, reauthenticateWithPopup as a4, reauthenticateWithRedirect as a5, reload as a6, revokeAccessToken as a7, sendEmailVerification as a8, sendPasswordResetEmail as a9, _getRedirectUrl as aA, _isIOS7Or8 as aB, _createError as aC, _getProjectConfig as aD, AuthEventManager as aE, _getInstance as aF, _persistenceKeyName as aG, _getRedirectResult as aH, _overrideRedirectResult as aI, _clearRedirectOutcomes as aJ, _castAuth as aK, AuthImpl as aL, AuthPopup as aM, FetchProvider as aN, SAMLAuthCredential as aO, UserImpl as aP, _generateEventId as aQ, _getClientVersion as aR, sendSignInLinkToEmail as aa, setPersistence as ab, signInAnonymously as ac, signInWithCredential as ad, signInWithCustomToken as ae, signInWithEmailAndPassword as af, signInWithEmailLink as ag, signInWithPhoneNumber as ah, signInWithPopup as ai, signInWithRedirect as aj, signOut as ak, unlink as al, updateCurrentUser as am, updateEmail as an, updatePassword as ao, updatePhoneNumber as ap, updateProfile as aq, useDeviceLanguage as ar, validatePassword as as, verifyBeforeUpdateEmail as at, verifyPasswordResetCode as au, _assert as av, debugAssert as aw, _isIOS as ax, _isAndroid as ay, _fail as az, AuthCredential as b, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as c, EmailAuthProvider as d, FactorId as e, GoogleAuthProvider as f, OAuthProvider as g, OperationType as h, PhoneAuthProvider as i, PhoneMultiFactorGenerator as j, ProviderId as k, SignInMethod as l, TotpSecret as m, TwitterAuthProvider as n, applyActionCode as o, beforeAuthStateChanged as p, browserCookiePersistence as q, browserLocalPersistence as r, browserPopupRedirectResolver as s, browserSessionPersistence as t, checkActionCode as u, confirmPasswordReset as v, connectAuthEmulator as w, createUserWithEmailAndPassword as x, debugErrorMap as y, deleteUser as z };
11323
- //# sourceMappingURL=index-DYWDbVEA.js.map
11334
+ //# sourceMappingURL=index-DrnoXVtB.js.map