@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.
- package/dist/browser-cjs/{index-CduFNIYN.js → index-BdqmG8Xn.js} +17 -6
- package/dist/browser-cjs/index-BdqmG8Xn.js.map +1 -0
- 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 +2 -2
- package/dist/browser-cjs/src/core/user/token_manager.d.ts +1 -1
- package/dist/browser-cjs/src/model/public_types.d.ts +1 -1
- package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/browser-cjs/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/browser-cjs/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/{cordova/scripts/run_node_tests.d.ts → browser-cjs/test/setup.d.ts} +1 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-wkjagYQk.js → popup_redirect-BcsumZ6M.js} +17 -6
- package/dist/cordova/popup_redirect-BcsumZ6M.js.map +1 -0
- package/dist/cordova/src/core/index.d.ts +2 -2
- package/dist/cordova/src/core/user/token_manager.d.ts +1 -1
- package/dist/cordova/src/model/public_types.d.ts +1 -1
- package/dist/cordova/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/cordova/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/cordova/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/{esm/scripts/run_node_tests.d.ts → cordova/test/setup.d.ts} +1 -1
- package/dist/esm/{index-DYWDbVEA.js → index-DrnoXVtB.js} +17 -6
- package/dist/esm/index-DrnoXVtB.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal.js +2 -2
- package/dist/esm/src/core/index.d.ts +2 -2
- package/dist/esm/src/core/user/token_manager.d.ts +1 -1
- package/dist/esm/src/model/public_types.d.ts +1 -1
- package/dist/esm/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/esm/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/esm/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/{browser-cjs/scripts/run_node_tests.d.ts → esm/test/setup.d.ts} +1 -1
- package/dist/index.webworker.js +4 -4
- package/dist/index.webworker.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +13 -2
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/index.d.ts +2 -2
- package/dist/node/src/core/user/token_manager.d.ts +1 -1
- package/dist/node/src/model/public_types.d.ts +1 -1
- package/dist/node/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/node/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/node/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/node/test/setup.d.ts +17 -0
- package/dist/node/{totp-O2KJuI_N.js → totp-D2NUkJ03.js} +4 -4
- package/dist/node/totp-D2NUkJ03.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +14 -3
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/index.d.ts +2 -2
- package/dist/node-esm/src/core/user/token_manager.d.ts +1 -1
- package/dist/node-esm/src/model/public_types.d.ts +1 -1
- package/dist/node-esm/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/node-esm/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/node-esm/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/node-esm/{scripts/run_node_tests.d.ts → test/setup.d.ts} +1 -1
- package/dist/node-esm/{totp-B3xKteUw.js → totp-eShpasN_.js} +4 -4
- package/dist/node-esm/totp-eShpasN_.js.map +1 -0
- package/dist/rn/{index-Em1YzGPG.js → index-CtA0403N.js} +4 -4
- package/dist/rn/index-CtA0403N.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +14 -3
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/src/core/index.d.ts +2 -2
- package/dist/rn/src/core/user/token_manager.d.ts +1 -1
- package/dist/rn/src/model/public_types.d.ts +1 -1
- package/dist/rn/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/rn/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/rn/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/rn/test/setup.d.ts +17 -0
- package/dist/src/core/index.d.ts +2 -2
- package/dist/src/core/user/token_manager.d.ts +1 -1
- package/dist/src/model/public_types.d.ts +1 -1
- package/dist/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/test/setup.d.ts +17 -0
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +13 -2
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-DH90TgE1.js → register-DrRDNv2-.js} +5 -5
- package/dist/web-extension-cjs/register-DrRDNv2-.js.map +1 -0
- package/dist/web-extension-cjs/src/core/index.d.ts +2 -2
- package/dist/web-extension-cjs/src/core/user/token_manager.d.ts +1 -1
- package/dist/web-extension-cjs/src/model/public_types.d.ts +1 -1
- package/dist/web-extension-cjs/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/web-extension-cjs/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/web-extension-cjs/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/web-extension-cjs/test/setup.d.ts +17 -0
- package/dist/web-extension-esm/index.js +2 -2
- package/dist/web-extension-esm/internal.js +14 -3
- package/dist/web-extension-esm/internal.js.map +1 -1
- package/dist/web-extension-esm/{register-1dTRtNx2.js → register-Ctul-fFl.js} +5 -5
- package/dist/web-extension-esm/register-Ctul-fFl.js.map +1 -0
- package/dist/web-extension-esm/src/core/index.d.ts +2 -2
- package/dist/web-extension-esm/src/core/user/token_manager.d.ts +1 -1
- package/dist/web-extension-esm/src/model/public_types.d.ts +1 -1
- package/dist/web-extension-esm/test/helpers/integration/helpers.d.ts +1 -1
- package/dist/web-extension-esm/test/helpers/timeout_stub.d.ts +1 -1
- package/dist/web-extension-esm/test/integration/flows/middleware_test_generator.d.ts +1 -1
- package/dist/web-extension-esm/test/setup.d.ts +17 -0
- package/package.json +19 -24
- package/dist/browser-cjs/index-CduFNIYN.js.map +0 -1
- package/dist/cordova/popup_redirect-wkjagYQk.js.map +0 -1
- package/dist/esm/index-DYWDbVEA.js.map +0 -1
- package/dist/node/scripts/run_node_tests.d.ts +0 -17
- package/dist/node/totp-O2KJuI_N.js.map +0 -1
- package/dist/node-esm/totp-B3xKteUw.js.map +0 -1
- package/dist/rn/index-Em1YzGPG.js.map +0 -1
- package/dist/rn/scripts/run_node_tests.d.ts +0 -17
- package/dist/scripts/run_node_tests.d.ts +0 -17
- package/dist/web-extension-cjs/register-DH90TgE1.js.map +0 -1
- package/dist/web-extension-cjs/scripts/run_node_tests.d.ts +0 -17
- package/dist/web-extension-esm/register-1dTRtNx2.js.map +0 -1
- 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 =
|
|
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
|
*
|
|
@@ -1641,7 +1641,7 @@ class StsTokenManager {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
get isExpired() {
|
|
1643
1643
|
return (!this.expirationTime ||
|
|
1644
|
-
Date.now() > this.expirationTime -
|
|
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.
|
|
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.
|
|
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-
|
|
11334
|
+
//# sourceMappingURL=index-DrnoXVtB.js.map
|