@firebase/auth 1.13.10 → 1.13.11
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-DOvdZQDO.js} +52 -21
- package/dist/browser-cjs/index-DOvdZQDO.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-DyPuw7eW.js} +2 -2
- package/dist/cordova/{popup_redirect-7H-mFAlV.js.map → popup_redirect-DyPuw7eW.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-CI-XZ6Oy.js} +53 -22
- package/dist/esm/index-CI-XZ6Oy.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-CJcUsXEJ.js} +2 -2
- package/dist/node/{totp-c24YsbkT.js.map → totp-CJcUsXEJ.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-Cx8BEadN.js} +2 -2
- package/dist/node-esm/{totp-DWW-ace_.js.map → totp-Cx8BEadN.js.map} +1 -1
- package/dist/rn/{index-UkwZ-hC_.js → index-C_TFxgjV.js} +2 -2
- package/dist/rn/{index-UkwZ-hC_.js.map → index-C_TFxgjV.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-BWoNxHX1.js} +2 -2
- package/dist/web-extension-cjs/{register-B6mm-2Ol.js.map → register-BWoNxHX1.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-Ds394mJx.js} +2 -2
- package/dist/web-extension-esm/{register-Cv6DpA4G.js.map → register-Ds394mJx.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 +2 -5
- 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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
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
|
|
23
|
+
*/
|
|
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>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
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
|
|
23
|
+
*/
|
|
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>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var register = require('./register-
|
|
5
|
+
var register = require('./register-BWoNxHX1.js');
|
|
6
6
|
var app = require('@firebase/app');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
require('@firebase/component');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var register = require('./register-
|
|
5
|
+
var register = require('./register-BWoNxHX1.js');
|
|
6
6
|
var util = require('@firebase/util');
|
|
7
7
|
var app = require('@firebase/app');
|
|
8
8
|
require('@firebase/component');
|
|
@@ -2813,6 +2813,55 @@ class PhoneMultiFactorGenerator {
|
|
|
2813
2813
|
*/
|
|
2814
2814
|
PhoneMultiFactorGenerator.FACTOR_ID = 'phone';
|
|
2815
2815
|
|
|
2816
|
+
/**
|
|
2817
|
+
* @license
|
|
2818
|
+
* Copyright 2026 Google LLC
|
|
2819
|
+
*
|
|
2820
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2821
|
+
* you may not use this file except in compliance with the License.
|
|
2822
|
+
* You may obtain a copy of the License at
|
|
2823
|
+
*
|
|
2824
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2825
|
+
*
|
|
2826
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2827
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2828
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2829
|
+
* See the License for the specific language governing permissions and
|
|
2830
|
+
* limitations under the License.
|
|
2831
|
+
*/
|
|
2832
|
+
function getScriptParentElement() {
|
|
2833
|
+
return document.getElementsByTagName('head')?.[0] ?? document;
|
|
2834
|
+
}
|
|
2835
|
+
/**
|
|
2836
|
+
* Loads an external script by inserting a script tag into the page. The script
|
|
2837
|
+
* URL is set through the Firebase Trusted Types policy when Trusted Types are
|
|
2838
|
+
* supported, so that this works on pages that enforce Trusted Types.
|
|
2839
|
+
*
|
|
2840
|
+
* @internal
|
|
2841
|
+
*/
|
|
2842
|
+
function _loadJSInBrowser(url) {
|
|
2843
|
+
// TODO: consider adding timeout support & cancellation
|
|
2844
|
+
return new Promise((resolve, reject) => {
|
|
2845
|
+
const el = document.createElement('script');
|
|
2846
|
+
try {
|
|
2847
|
+
app._setTrustedScriptSrc(el, url);
|
|
2848
|
+
}
|
|
2849
|
+
catch (e) {
|
|
2850
|
+
reject(e);
|
|
2851
|
+
return;
|
|
2852
|
+
}
|
|
2853
|
+
el.onload = resolve;
|
|
2854
|
+
el.onerror = e => {
|
|
2855
|
+
const error = register._createError("internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
2856
|
+
error.customData = e;
|
|
2857
|
+
reject(error);
|
|
2858
|
+
};
|
|
2859
|
+
el.type = 'text/javascript';
|
|
2860
|
+
el.charset = 'UTF-8';
|
|
2861
|
+
getScriptParentElement().appendChild(el);
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2816
2865
|
/**
|
|
2817
2866
|
* @license
|
|
2818
2867
|
* Copyright 2021 Google LLC
|
|
@@ -2894,26 +2943,8 @@ function getAuth(app$1 = app.getApp()) {
|
|
|
2894
2943
|
}
|
|
2895
2944
|
return auth;
|
|
2896
2945
|
}
|
|
2897
|
-
function getScriptParentElement() {
|
|
2898
|
-
return document.getElementsByTagName('head')?.[0] ?? document;
|
|
2899
|
-
}
|
|
2900
2946
|
register._setExternalJSProvider({
|
|
2901
|
-
loadJS
|
|
2902
|
-
// TODO: consider adding timeout support & cancellation
|
|
2903
|
-
return new Promise((resolve, reject) => {
|
|
2904
|
-
const el = document.createElement('script');
|
|
2905
|
-
el.setAttribute('src', url);
|
|
2906
|
-
el.onload = resolve;
|
|
2907
|
-
el.onerror = e => {
|
|
2908
|
-
const error = register._createError("internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
2909
|
-
error.customData = e;
|
|
2910
|
-
reject(error);
|
|
2911
|
-
};
|
|
2912
|
-
el.type = 'text/javascript';
|
|
2913
|
-
el.charset = 'UTF-8';
|
|
2914
|
-
getScriptParentElement().appendChild(el);
|
|
2915
|
-
});
|
|
2916
|
-
},
|
|
2947
|
+
loadJS: _loadJSInBrowser,
|
|
2917
2948
|
gapiScript: 'https://apis.google.com/js/api.js',
|
|
2918
2949
|
recaptchaV2Script: 'https://www.google.com/recaptcha/api.js',
|
|
2919
2950
|
recaptchaEnterpriseScript: 'https://www.google.com/recaptcha/enterprise.js?render='
|