@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.
Files changed (82) hide show
  1. package/README.md +6 -13
  2. package/dist/browser-cjs/{index-D_utMrqy.js → index-CpWQky3K.js} +52 -21
  3. package/dist/browser-cjs/index-CpWQky3K.js.map +1 -0
  4. package/dist/browser-cjs/index.js +1 -1
  5. package/dist/browser-cjs/internal.js +1 -1
  6. package/dist/{cordova/test/integration/webdriver/util/js_load_condition.d.ts → browser-cjs/src/platform_browser/load_js_browser.d.ts} +7 -8
  7. package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  8. package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +2 -2
  9. package/dist/browser-cjs/test/integration/webdriver/util/ui_page.d.ts +2 -2
  10. package/dist/cordova/index.js +2 -2
  11. package/dist/cordova/internal.js +53 -22
  12. package/dist/cordova/internal.js.map +1 -1
  13. package/dist/cordova/{popup_redirect-7H-mFAlV.js → popup_redirect-CGTSpghz.js} +2 -2
  14. package/dist/cordova/{popup_redirect-7H-mFAlV.js.map → popup_redirect-CGTSpghz.js.map} +1 -1
  15. package/dist/{esm/test/integration/webdriver/util/js_load_condition.d.ts → cordova/src/platform_browser/load_js_browser.d.ts} +7 -8
  16. package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  17. package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +2 -2
  18. package/dist/cordova/test/integration/webdriver/util/ui_page.d.ts +2 -2
  19. package/dist/esm/{index-NmqYMaDt.js → index-B83XeA2v.js} +53 -22
  20. package/dist/esm/index-B83XeA2v.js.map +1 -0
  21. package/dist/esm/index.js +1 -1
  22. package/dist/esm/internal.js +2 -2
  23. package/dist/{browser-cjs/test/integration/webdriver/util/js_load_condition.d.ts → esm/src/platform_browser/load_js_browser.d.ts} +7 -8
  24. package/dist/esm/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  25. package/dist/esm/test/integration/webdriver/util/idp_page.d.ts +2 -2
  26. package/dist/esm/test/integration/webdriver/util/ui_page.d.ts +2 -2
  27. package/dist/index.webworker.js +1 -1
  28. package/dist/node/index.js +1 -1
  29. package/dist/node/internal.js +1 -1
  30. package/dist/node/src/platform_browser/load_js_browser.d.ts +24 -0
  31. package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  32. package/dist/node/test/integration/webdriver/util/idp_page.d.ts +2 -2
  33. package/dist/node/test/integration/webdriver/util/ui_page.d.ts +2 -2
  34. package/dist/node/{totp-c24YsbkT.js → totp-CkbqXM8U.js} +2 -2
  35. package/dist/node/{totp-c24YsbkT.js.map → totp-CkbqXM8U.js.map} +1 -1
  36. package/dist/node-esm/index.js +1 -1
  37. package/dist/node-esm/internal.js +2 -2
  38. package/dist/node-esm/{test/integration/webdriver/util/js_load_condition.d.ts → src/platform_browser/load_js_browser.d.ts} +7 -8
  39. package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  40. package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +2 -2
  41. package/dist/node-esm/test/integration/webdriver/util/ui_page.d.ts +2 -2
  42. package/dist/node-esm/{totp-DWW-ace_.js → totp-B65jY57a.js} +2 -2
  43. package/dist/node-esm/{totp-DWW-ace_.js.map → totp-B65jY57a.js.map} +1 -1
  44. package/dist/rn/{index-UkwZ-hC_.js → index-BI5SQ2TI.js} +2 -2
  45. package/dist/rn/{index-UkwZ-hC_.js.map → index-BI5SQ2TI.js.map} +1 -1
  46. package/dist/rn/index.js +1 -1
  47. package/dist/rn/internal.js +51 -20
  48. package/dist/rn/internal.js.map +1 -1
  49. package/dist/rn/src/platform_browser/load_js_browser.d.ts +24 -0
  50. package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  51. package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +2 -2
  52. package/dist/rn/test/integration/webdriver/util/ui_page.d.ts +2 -2
  53. package/dist/src/platform_browser/load_js_browser.d.ts +24 -0
  54. package/dist/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  55. package/dist/test/integration/webdriver/util/idp_page.d.ts +2 -2
  56. package/dist/test/integration/webdriver/util/ui_page.d.ts +2 -2
  57. package/dist/web-extension-cjs/index.js +1 -1
  58. package/dist/web-extension-cjs/internal.js +51 -20
  59. package/dist/web-extension-cjs/internal.js.map +1 -1
  60. package/dist/web-extension-cjs/{register-B6mm-2Ol.js → register-DRXqQWJe.js} +2 -2
  61. package/dist/web-extension-cjs/{register-B6mm-2Ol.js.map → register-DRXqQWJe.js.map} +1 -1
  62. package/dist/web-extension-cjs/src/platform_browser/load_js_browser.d.ts +24 -0
  63. package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  64. package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +2 -2
  65. package/dist/web-extension-cjs/test/integration/webdriver/util/ui_page.d.ts +2 -2
  66. package/dist/web-extension-esm/index.js +2 -2
  67. package/dist/web-extension-esm/internal.js +53 -22
  68. package/dist/web-extension-esm/internal.js.map +1 -1
  69. package/dist/web-extension-esm/{register-Cv6DpA4G.js → register-CWk4FQGj.js} +2 -2
  70. package/dist/web-extension-esm/{register-Cv6DpA4G.js.map → register-CWk4FQGj.js.map} +1 -1
  71. package/dist/web-extension-esm/src/platform_browser/load_js_browser.d.ts +24 -0
  72. package/dist/web-extension-esm/test/integration/webdriver/util/auth_driver.d.ts +9 -5
  73. package/dist/web-extension-esm/test/integration/webdriver/util/idp_page.d.ts +2 -2
  74. package/dist/web-extension-esm/test/integration/webdriver/util/ui_page.d.ts +2 -2
  75. package/package.json +3 -6
  76. package/dist/browser-cjs/index-D_utMrqy.js.map +0 -1
  77. package/dist/esm/index-NmqYMaDt.js.map +0 -1
  78. package/dist/node/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
  79. package/dist/rn/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
  80. package/dist/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
  81. package/dist/web-extension-cjs/test/integration/webdriver/util/js_load_condition.d.ts +0 -25
  82. 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 Selenium WebDriver tests
38
+ integration tests, as well as the Playwright WebDriver tests
39
39
 
40
- * `yarn test:webdriver` — Executes only the Selenium WebDriver
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
- ### Selenium Webdriver tests
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 robot environment; the assertions themselves run
138
- in Node. When you run these tests a small Express server will be started to
139
- serve the static files the browser robot uses.
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.10";
11201
+ var version = "1.13.11-20261116185243";
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(url) {
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-D_utMrqy.js.map
11592
+ //# sourceMappingURL=index-CpWQky3K.js.map