@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
package/README.md
CHANGED
|
@@ -35,16 +35,11 @@ environmental variables. In addition to the commands listed above, the below
|
|
|
35
35
|
commands also run various tests:
|
|
36
36
|
|
|
37
37
|
* `yarn test:integration:local` — Executes Node and browser emulator
|
|
38
|
-
integration tests, as well as the
|
|
38
|
+
integration tests, as well as the Playwright WebDriver tests
|
|
39
39
|
|
|
40
|
-
* `yarn test:webdriver` — Executes only the
|
|
40
|
+
* `yarn test:webdriver` — Executes only the Playwright WebDriver
|
|
41
41
|
integration tests
|
|
42
42
|
|
|
43
|
-
Note - The webdriver tests require the Chrome webdriver to match the version of Chrome running locally.
|
|
44
|
-
In the CI environment, this is ensured using the environment variable [here.](https://github.com/firebase/firebase-js-sdk/blob/6e80a678fe0c31046860554cec0459a2be34d22b/.github/workflows/test-changed-auth.yml#L7)
|
|
45
|
-
When running locally, change the chromedriver version in [package.json](https://github.com/firebase/firebase-js-sdk/blob/6e80a678fe0c31046860554cec0459a2be34d22b/packages/auth/package.json#L124) to match your local Chrome version and run `yarn install`.
|
|
46
|
-
|
|
47
|
-
|
|
48
43
|
For example, to run all integration and WebDriver tests against the emulator,
|
|
49
44
|
you would simply execute the following command:
|
|
50
45
|
|
|
@@ -129,11 +124,9 @@ curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Conten
|
|
|
129
124
|
}'
|
|
130
125
|
```
|
|
131
126
|
|
|
132
|
-
###
|
|
127
|
+
### Playwright WebDriver tests
|
|
133
128
|
|
|
134
|
-
These tests assume that you have both Firefox and Chrome installed on your
|
|
135
|
-
computer and in your `$PATH`. The tests will error out if this is not the case.
|
|
136
129
|
The WebDriver tests talk to the emulator, but unlike the headless integration
|
|
137
|
-
tests, these run in a browser
|
|
138
|
-
in Node. When you run these tests a small Express server will be
|
|
139
|
-
serve the static files the browser
|
|
130
|
+
tests, these run in a Playwright-controlled browser environment; the assertions
|
|
131
|
+
themselves run in Node. When you run these tests a small Express server will be
|
|
132
|
+
started to serve the static files the browser uses.
|
|
@@ -11198,7 +11198,7 @@ function _isEmptyString(input) {
|
|
|
11198
11198
|
}
|
|
11199
11199
|
|
|
11200
11200
|
var name = "@firebase/auth";
|
|
11201
|
-
var version = "1.13.
|
|
11201
|
+
var version = "1.13.11";
|
|
11202
11202
|
|
|
11203
11203
|
/**
|
|
11204
11204
|
* @license
|
|
@@ -11343,6 +11343,55 @@ function registerAuth(clientPlatform) {
|
|
|
11343
11343
|
app.registerVersion(name, version, 'cjs2020');
|
|
11344
11344
|
}
|
|
11345
11345
|
|
|
11346
|
+
/**
|
|
11347
|
+
* @license
|
|
11348
|
+
* Copyright 2026 Google LLC
|
|
11349
|
+
*
|
|
11350
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11351
|
+
* you may not use this file except in compliance with the License.
|
|
11352
|
+
* You may obtain a copy of the License at
|
|
11353
|
+
*
|
|
11354
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11355
|
+
*
|
|
11356
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11357
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11358
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11359
|
+
* See the License for the specific language governing permissions and
|
|
11360
|
+
* limitations under the License.
|
|
11361
|
+
*/
|
|
11362
|
+
function getScriptParentElement() {
|
|
11363
|
+
return document.getElementsByTagName('head')?.[0] ?? document;
|
|
11364
|
+
}
|
|
11365
|
+
/**
|
|
11366
|
+
* Loads an external script by inserting a script tag into the page. The script
|
|
11367
|
+
* URL is set through the Firebase Trusted Types policy when Trusted Types are
|
|
11368
|
+
* supported, so that this works on pages that enforce Trusted Types.
|
|
11369
|
+
*
|
|
11370
|
+
* @internal
|
|
11371
|
+
*/
|
|
11372
|
+
function _loadJSInBrowser(url) {
|
|
11373
|
+
// TODO: consider adding timeout support & cancellation
|
|
11374
|
+
return new Promise((resolve, reject) => {
|
|
11375
|
+
const el = document.createElement('script');
|
|
11376
|
+
try {
|
|
11377
|
+
app._setTrustedScriptSrc(el, url);
|
|
11378
|
+
}
|
|
11379
|
+
catch (e) {
|
|
11380
|
+
reject(e);
|
|
11381
|
+
return;
|
|
11382
|
+
}
|
|
11383
|
+
el.onload = resolve;
|
|
11384
|
+
el.onerror = e => {
|
|
11385
|
+
const error = _createError("internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
11386
|
+
error.customData = e;
|
|
11387
|
+
reject(error);
|
|
11388
|
+
};
|
|
11389
|
+
el.type = 'text/javascript';
|
|
11390
|
+
el.charset = 'UTF-8';
|
|
11391
|
+
getScriptParentElement().appendChild(el);
|
|
11392
|
+
});
|
|
11393
|
+
}
|
|
11394
|
+
|
|
11346
11395
|
/**
|
|
11347
11396
|
* @license
|
|
11348
11397
|
* Copyright 2021 Google LLC
|
|
@@ -11424,26 +11473,8 @@ function getAuth(app$1 = app.getApp()) {
|
|
|
11424
11473
|
}
|
|
11425
11474
|
return auth;
|
|
11426
11475
|
}
|
|
11427
|
-
function getScriptParentElement() {
|
|
11428
|
-
return document.getElementsByTagName('head')?.[0] ?? document;
|
|
11429
|
-
}
|
|
11430
11476
|
_setExternalJSProvider({
|
|
11431
|
-
loadJS
|
|
11432
|
-
// TODO: consider adding timeout support & cancellation
|
|
11433
|
-
return new Promise((resolve, reject) => {
|
|
11434
|
-
const el = document.createElement('script');
|
|
11435
|
-
el.setAttribute('src', url);
|
|
11436
|
-
el.onload = resolve;
|
|
11437
|
-
el.onerror = e => {
|
|
11438
|
-
const error = _createError("internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
|
|
11439
|
-
error.customData = e;
|
|
11440
|
-
reject(error);
|
|
11441
|
-
};
|
|
11442
|
-
el.type = 'text/javascript';
|
|
11443
|
-
el.charset = 'UTF-8';
|
|
11444
|
-
getScriptParentElement().appendChild(el);
|
|
11445
|
-
});
|
|
11446
|
-
},
|
|
11477
|
+
loadJS: _loadJSInBrowser,
|
|
11447
11478
|
gapiScript: 'https://apis.google.com/js/api.js',
|
|
11448
11479
|
recaptchaV2Script: 'https://www.google.com/recaptcha/api.js',
|
|
11449
11480
|
recaptchaEnterpriseScript: 'https://www.google.com/recaptcha/enterprise.js?render='
|
|
@@ -11558,4 +11589,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
|
|
|
11558
11589
|
exports.validatePassword = validatePassword;
|
|
11559
11590
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
11560
11591
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
11561
|
-
//# sourceMappingURL=index-
|
|
11592
|
+
//# sourceMappingURL=index-DOvdZQDO.js.map
|