@firebase/auth 1.13.10 → 1.13.11-20261116185243
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/README.md +6 -13
- package/dist/browser-cjs/{index-D_utMrqy.js → index-CpWQky3K.js} +52 -21
- package/dist/browser-cjs/index-CpWQky3K.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/{cordova/test/integration/webdriver/util/js_load_condition.d.ts → browser-cjs/src/platform_browser/load_js_browser.d.ts} +7 -8
- package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/browser-cjs/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +53 -22
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-7H-mFAlV.js → popup_redirect-CGTSpghz.js} +2 -2
- package/dist/cordova/{popup_redirect-7H-mFAlV.js.map → popup_redirect-CGTSpghz.js.map} +1 -1
- package/dist/{esm/test/integration/webdriver/util/js_load_condition.d.ts → cordova/src/platform_browser/load_js_browser.d.ts} +7 -8
- package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/cordova/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/esm/{index-NmqYMaDt.js → index-B83XeA2v.js} +53 -22
- package/dist/esm/index-B83XeA2v.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal.js +2 -2
- package/dist/{browser-cjs/test/integration/webdriver/util/js_load_condition.d.ts → esm/src/platform_browser/load_js_browser.d.ts} +7 -8
- package/dist/esm/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/esm/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/esm/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/index.webworker.js +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/platform_browser/load_js_browser.d.ts +24 -0
- package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/node/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/node/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/node/{totp-c24YsbkT.js → totp-CkbqXM8U.js} +2 -2
- package/dist/node/{totp-c24YsbkT.js.map → totp-CkbqXM8U.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/{test/integration/webdriver/util/js_load_condition.d.ts → src/platform_browser/load_js_browser.d.ts} +7 -8
- package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/node-esm/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/node-esm/{totp-DWW-ace_.js → totp-B65jY57a.js} +2 -2
- package/dist/node-esm/{totp-DWW-ace_.js.map → totp-B65jY57a.js.map} +1 -1
- package/dist/rn/{index-UkwZ-hC_.js → index-BI5SQ2TI.js} +2 -2
- package/dist/rn/{index-UkwZ-hC_.js.map → index-BI5SQ2TI.js.map} +1 -1
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +51 -20
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/src/platform_browser/load_js_browser.d.ts +24 -0
- package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/rn/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/src/platform_browser/load_js_browser.d.ts +24 -0
- package/dist/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +51 -20
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-B6mm-2Ol.js → register-DRXqQWJe.js} +2 -2
- package/dist/web-extension-cjs/{register-B6mm-2Ol.js.map → register-DRXqQWJe.js.map} +1 -1
- package/dist/web-extension-cjs/src/platform_browser/load_js_browser.d.ts +24 -0
- package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/web-extension-cjs/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/dist/web-extension-esm/index.js +2 -2
- package/dist/web-extension-esm/internal.js +53 -22
- package/dist/web-extension-esm/internal.js.map +1 -1
- package/dist/web-extension-esm/{register-Cv6DpA4G.js → register-CWk4FQGj.js} +2 -2
- package/dist/web-extension-esm/{register-Cv6DpA4G.js.map → register-CWk4FQGj.js.map} +1 -1
- package/dist/web-extension-esm/src/platform_browser/load_js_browser.d.ts +24 -0
- package/dist/web-extension-esm/test/integration/webdriver/util/auth_driver.d.ts +9 -5
- package/dist/web-extension-esm/test/integration/webdriver/util/idp_page.d.ts +2 -2
- package/dist/web-extension-esm/test/integration/webdriver/util/ui_page.d.ts +2 -2
- package/package.json +3 -6
- package/dist/browser-cjs/index-D_utMrqy.js.map +0 -1
- package/dist/esm/index-NmqYMaDt.js.map +0 -1
- package/dist/node/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
- package/dist/rn/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
- package/dist/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
- package/dist/web-extension-cjs/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
- package/dist/web-extension-esm/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright
|
|
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.
|
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { Condition } from 'selenium-webdriver';
|
|
18
17
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* Loads an external script by inserting a script tag into the page. The script
|
|
19
|
+
* URL is set through the Firebase Trusted Types policy when Trusted Types are
|
|
20
|
+
* supported, so that this works on pages that enforce Trusted Types.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
22
23
|
*/
|
|
23
|
-
export declare
|
|
24
|
-
constructor(globalValue: string);
|
|
25
|
-
}
|
|
24
|
+
export declare function _loadJSInBrowser(url: string): Promise<Event>;
|
|
@@ -14,16 +14,20 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { Auth, User, Persistence } from '@firebase/auth';
|
|
18
|
-
import {
|
|
17
|
+
import type { Auth, User, Persistence } from '@firebase/auth';
|
|
18
|
+
import type { Browser, BrowserContext, Page } from 'playwright';
|
|
19
19
|
export declare const START_FUNCTION = "startAuth";
|
|
20
|
-
/** Helper wrapper around the
|
|
20
|
+
/** Helper wrapper around the Playwright Page and BrowserContext objects */
|
|
21
21
|
export declare class AuthDriver {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
browser: Browser;
|
|
23
|
+
context: BrowserContext;
|
|
24
|
+
page: Page;
|
|
25
|
+
start(browserName: string): Promise<void>;
|
|
24
26
|
stop(): Promise<void>;
|
|
25
27
|
call<T>(fn: string, ...args: unknown[]): Promise<T>;
|
|
26
28
|
callNoWait(fn: string, ...args: unknown[]): Promise<void>;
|
|
29
|
+
waitForGlobal(globalValue: string): Promise<void>;
|
|
30
|
+
wait(condition: () => Promise<boolean> | boolean, timeoutMs?: number): Promise<void>;
|
|
27
31
|
getAuthSnapshot(): Promise<Auth>;
|
|
28
32
|
getUserSnapshot(): Promise<User>;
|
|
29
33
|
reset(): Promise<void>;
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
17
|
+
import type { AuthDriver } from './auth_driver';
|
|
18
18
|
export declare class IdPPage {
|
|
19
19
|
private readonly driver;
|
|
20
20
|
static PAGE_TITLE: string;
|
|
21
|
-
constructor(driver:
|
|
21
|
+
constructor(driver: AuthDriver);
|
|
22
22
|
pageLoad(): Promise<void>;
|
|
23
23
|
clickAddAccount(): Promise<void>;
|
|
24
24
|
clickSignIn(): Promise<void>;
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
17
|
+
import type { AuthDriver } from './auth_driver';
|
|
18
18
|
export declare class UiPage {
|
|
19
19
|
private readonly driver;
|
|
20
|
-
constructor(driver:
|
|
20
|
+
constructor(driver: AuthDriver);
|
|
21
21
|
clickGuestSignIn(): Promise<void>;
|
|
22
22
|
clickGoogleSignIn(): Promise<void>;
|
|
23
23
|
clickPhoneSignIn(): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SDK_VERSION, _isFirebaseServerApp, _getProvider, _registerComponent, registerVersion, getApp } from '@firebase/app';
|
|
1
|
+
import { SDK_VERSION, _isFirebaseServerApp, _getProvider, _registerComponent, registerVersion, _setTrustedScriptSrc, getApp } from '@firebase/app';
|
|
2
2
|
import { ErrorFactory, isBrowserExtension, isMobileCordova, isReactNative, FirebaseError, querystring, isCloudflareWorker, isCloudWorkstation, getModularInstance, base64Decode, getUA, isIE, createSubscribe, Deferred, deepEqual, pingServer, querystringDecode, extractQuerystring, isEmpty, getExperimentalSetting, getDefaultEmulatorHost } from '@firebase/util';
|
|
3
3
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
4
4
|
import { Component } from '@firebase/component';
|
|
@@ -11196,7 +11196,7 @@ function _isEmptyString(input) {
|
|
|
11196
11196
|
}
|
|
11197
11197
|
|
|
11198
11198
|
var name = "@firebase/auth";
|
|
11199
|
-
var version = "1.13.
|
|
11199
|
+
var version = "1.13.11-20261116185243";
|
|
11200
11200
|
|
|
11201
11201
|
/**
|
|
11202
11202
|
* @license
|
|
@@ -11341,6 +11341,55 @@ function registerAuth(clientPlatform) {
|
|
|
11341
11341
|
registerVersion(name, version, 'esm2020');
|
|
11342
11342
|
}
|
|
11343
11343
|
|
|
11344
|
+
/**
|
|
11345
|
+
* @license
|
|
11346
|
+
* Copyright 2026 Google LLC
|
|
11347
|
+
*
|
|
11348
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11349
|
+
* you may not use this file except in compliance with the License.
|
|
11350
|
+
* You may obtain a copy of the License at
|
|
11351
|
+
*
|
|
11352
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11353
|
+
*
|
|
11354
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11355
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11356
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11357
|
+
* See the License for the specific language governing permissions and
|
|
11358
|
+
* limitations under the License.
|
|
11359
|
+
*/
|
|
11360
|
+
function getScriptParentElement() {
|
|
11361
|
+
return document.getElementsByTagName('head')?.[0] ?? document;
|
|
11362
|
+
}
|
|
11363
|
+
/**
|
|
11364
|
+
* Loads an external script by inserting a script tag into the page. The script
|
|
11365
|
+
* URL is set through the Firebase Trusted Types policy when Trusted Types are
|
|
11366
|
+
* supported, so that this works on pages that enforce Trusted Types.
|
|
11367
|
+
*
|
|
11368
|
+
* @internal
|
|
11369
|
+
*/
|
|
11370
|
+
function _loadJSInBrowser(url) {
|
|
11371
|
+
// TODO: consider adding timeout support & cancellation
|
|
11372
|
+
return new Promise((resolve, reject) => {
|
|
11373
|
+
const el = document.createElement('script');
|
|
11374
|
+
try {
|
|
11375
|
+
_setTrustedScriptSrc(el, url);
|
|
11376
|
+
}
|
|
11377
|
+
catch (e) {
|
|
11378
|
+
reject(e);
|
|
11379
|
+
return;
|
|
11380
|
+
}
|
|
11381
|
+
el.onload = resolve;
|
|
11382
|
+
el.onerror = e => {
|
|
11383
|
+
const error = _createError("internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
11384
|
+
error.customData = e;
|
|
11385
|
+
reject(error);
|
|
11386
|
+
};
|
|
11387
|
+
el.type = 'text/javascript';
|
|
11388
|
+
el.charset = 'UTF-8';
|
|
11389
|
+
getScriptParentElement().appendChild(el);
|
|
11390
|
+
});
|
|
11391
|
+
}
|
|
11392
|
+
|
|
11344
11393
|
/**
|
|
11345
11394
|
* @license
|
|
11346
11395
|
* Copyright 2021 Google LLC
|
|
@@ -11422,26 +11471,8 @@ function getAuth(app = getApp()) {
|
|
|
11422
11471
|
}
|
|
11423
11472
|
return auth;
|
|
11424
11473
|
}
|
|
11425
|
-
function getScriptParentElement() {
|
|
11426
|
-
return document.getElementsByTagName('head')?.[0] ?? document;
|
|
11427
|
-
}
|
|
11428
11474
|
_setExternalJSProvider({
|
|
11429
|
-
loadJS
|
|
11430
|
-
// TODO: consider adding timeout support & cancellation
|
|
11431
|
-
return new Promise((resolve, reject) => {
|
|
11432
|
-
const el = document.createElement('script');
|
|
11433
|
-
el.setAttribute('src', url);
|
|
11434
|
-
el.onload = resolve;
|
|
11435
|
-
el.onerror = e => {
|
|
11436
|
-
const error = _createError("internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
11437
|
-
error.customData = e;
|
|
11438
|
-
reject(error);
|
|
11439
|
-
};
|
|
11440
|
-
el.type = 'text/javascript';
|
|
11441
|
-
el.charset = 'UTF-8';
|
|
11442
|
-
getScriptParentElement().appendChild(el);
|
|
11443
|
-
});
|
|
11444
|
-
},
|
|
11475
|
+
loadJS: _loadJSInBrowser,
|
|
11445
11476
|
gapiScript: 'https://apis.google.com/js/api.js',
|
|
11446
11477
|
recaptchaV2Script: 'https://www.google.com/recaptcha/api.js',
|
|
11447
11478
|
recaptchaEnterpriseScript: 'https://www.google.com/recaptcha/enterprise.js?render='
|
|
@@ -11449,4 +11480,4 @@ _setExternalJSProvider({
|
|
|
11449
11480
|
registerAuth("Browser" /* ClientPlatform.BROWSER */);
|
|
11450
11481
|
|
|
11451
11482
|
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 };
|
|
11452
|
-
//# sourceMappingURL=index-
|
|
11483
|
+
//# sourceMappingURL=index-B83XeA2v.js.map
|