@firebase/auth 1.6.2 → 1.7.0-canary.42fcdfe4c

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 (236) hide show
  1. package/dist/auth-public.d.ts +60 -10
  2. package/dist/auth.d.ts +61 -10
  3. package/dist/browser-cjs/{index-6a907fc6.js → index-fcf80d66.js} +202 -22
  4. package/dist/browser-cjs/index-fcf80d66.js.map +1 -0
  5. package/dist/browser-cjs/index.js +2 -2
  6. package/dist/browser-cjs/internal.js +1 -1
  7. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +1 -0
  8. package/dist/browser-cjs/src/core/index.d.ts +9 -1
  9. package/dist/browser-cjs/src/core/strategies/anonymous.d.ts +3 -0
  10. package/dist/browser-cjs/src/core/strategies/credential.d.ts +6 -0
  11. package/dist/browser-cjs/src/core/strategies/custom_token.d.ts +3 -0
  12. package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +7 -0
  13. package/dist/browser-cjs/src/core/strategies/email_link.d.ts +4 -0
  14. package/dist/browser-cjs/src/core/user/account_info.d.ts +3 -0
  15. package/dist/browser-cjs/src/core/user/reload.d.ts +3 -1
  16. package/dist/browser-cjs/src/core/user/token_manager.d.ts +1 -0
  17. package/dist/browser-cjs/src/core/user/user_impl.d.ts +7 -1
  18. package/dist/browser-cjs/src/core/util/assert.d.ts +1 -0
  19. package/dist/browser-cjs/src/model/public_types.d.ts +7 -0
  20. package/dist/browser-cjs/src/platform_browser/strategies/phone.d.ts +6 -3
  21. package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +4 -2
  22. package/dist/browser-cjs/src/platform_browser/strategies/redirect.d.ts +8 -4
  23. package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +2 -0
  24. package/dist/browser-cjs/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  25. package/dist/cordova/index.js +2 -2
  26. package/dist/cordova/internal.js +45 -17
  27. package/dist/cordova/internal.js.map +1 -1
  28. package/dist/cordova/{popup_redirect-58faecee.js → popup_redirect-65e04583.js} +197 -17
  29. package/dist/cordova/popup_redirect-65e04583.js.map +1 -0
  30. package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -0
  31. package/dist/cordova/src/core/index.d.ts +9 -1
  32. package/dist/cordova/src/core/strategies/anonymous.d.ts +3 -0
  33. package/dist/cordova/src/core/strategies/credential.d.ts +6 -0
  34. package/dist/cordova/src/core/strategies/custom_token.d.ts +3 -0
  35. package/dist/cordova/src/core/strategies/email_and_password.d.ts +7 -0
  36. package/dist/cordova/src/core/strategies/email_link.d.ts +4 -0
  37. package/dist/cordova/src/core/user/account_info.d.ts +3 -0
  38. package/dist/cordova/src/core/user/reload.d.ts +3 -1
  39. package/dist/cordova/src/core/user/token_manager.d.ts +1 -0
  40. package/dist/cordova/src/core/user/user_impl.d.ts +7 -1
  41. package/dist/cordova/src/core/util/assert.d.ts +1 -0
  42. package/dist/cordova/src/model/public_types.d.ts +7 -0
  43. package/dist/cordova/src/platform_browser/strategies/phone.d.ts +6 -3
  44. package/dist/cordova/src/platform_browser/strategies/popup.d.ts +4 -2
  45. package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +8 -4
  46. package/dist/cordova/test/helpers/integration/helpers.d.ts +2 -0
  47. package/dist/cordova/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  48. package/dist/esm2017/{index-e939beb5.js → index-3ad9a9b9.js} +202 -22
  49. package/dist/esm2017/index-3ad9a9b9.js.map +1 -0
  50. package/dist/esm2017/index.js +2 -2
  51. package/dist/esm2017/internal.js +2 -2
  52. package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -0
  53. package/dist/esm2017/src/core/index.d.ts +9 -1
  54. package/dist/esm2017/src/core/strategies/anonymous.d.ts +3 -0
  55. package/dist/esm2017/src/core/strategies/credential.d.ts +6 -0
  56. package/dist/esm2017/src/core/strategies/custom_token.d.ts +3 -0
  57. package/dist/esm2017/src/core/strategies/email_and_password.d.ts +7 -0
  58. package/dist/esm2017/src/core/strategies/email_link.d.ts +4 -0
  59. package/dist/esm2017/src/core/user/account_info.d.ts +3 -0
  60. package/dist/esm2017/src/core/user/reload.d.ts +3 -1
  61. package/dist/esm2017/src/core/user/token_manager.d.ts +1 -0
  62. package/dist/esm2017/src/core/user/user_impl.d.ts +7 -1
  63. package/dist/esm2017/src/core/util/assert.d.ts +1 -0
  64. package/dist/esm2017/src/model/public_types.d.ts +7 -0
  65. package/dist/esm2017/src/platform_browser/strategies/phone.d.ts +6 -3
  66. package/dist/esm2017/src/platform_browser/strategies/popup.d.ts +4 -2
  67. package/dist/esm2017/src/platform_browser/strategies/redirect.d.ts +8 -4
  68. package/dist/esm2017/test/helpers/integration/helpers.d.ts +2 -0
  69. package/dist/esm2017/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  70. package/dist/esm5/{index-3bd54529.js → index-dcfb76ea.js} +238 -30
  71. package/dist/esm5/index-dcfb76ea.js.map +1 -0
  72. package/dist/esm5/index.js +2 -2
  73. package/dist/esm5/internal.js +2 -2
  74. package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -0
  75. package/dist/esm5/src/core/index.d.ts +9 -1
  76. package/dist/esm5/src/core/strategies/anonymous.d.ts +3 -0
  77. package/dist/esm5/src/core/strategies/credential.d.ts +6 -0
  78. package/dist/esm5/src/core/strategies/custom_token.d.ts +3 -0
  79. package/dist/esm5/src/core/strategies/email_and_password.d.ts +7 -0
  80. package/dist/esm5/src/core/strategies/email_link.d.ts +4 -0
  81. package/dist/esm5/src/core/user/account_info.d.ts +3 -0
  82. package/dist/esm5/src/core/user/reload.d.ts +3 -1
  83. package/dist/esm5/src/core/user/token_manager.d.ts +1 -0
  84. package/dist/esm5/src/core/user/user_impl.d.ts +7 -1
  85. package/dist/esm5/src/core/util/assert.d.ts +1 -0
  86. package/dist/esm5/src/model/public_types.d.ts +7 -0
  87. package/dist/esm5/src/platform_browser/strategies/phone.d.ts +6 -3
  88. package/dist/esm5/src/platform_browser/strategies/popup.d.ts +4 -2
  89. package/dist/esm5/src/platform_browser/strategies/redirect.d.ts +8 -4
  90. package/dist/esm5/test/helpers/integration/helpers.d.ts +2 -0
  91. package/dist/esm5/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  92. package/dist/index.webworker.esm5.js +178 -11
  93. package/dist/index.webworker.esm5.js.map +1 -1
  94. package/dist/node/index.js +2 -2
  95. package/dist/node/internal.js +4 -1
  96. package/dist/node/internal.js.map +1 -1
  97. package/dist/node/src/core/auth/auth_impl.d.ts +1 -0
  98. package/dist/node/src/core/index.d.ts +9 -1
  99. package/dist/node/src/core/strategies/anonymous.d.ts +3 -0
  100. package/dist/node/src/core/strategies/credential.d.ts +6 -0
  101. package/dist/node/src/core/strategies/custom_token.d.ts +3 -0
  102. package/dist/node/src/core/strategies/email_and_password.d.ts +7 -0
  103. package/dist/node/src/core/strategies/email_link.d.ts +4 -0
  104. package/dist/node/src/core/user/account_info.d.ts +3 -0
  105. package/dist/node/src/core/user/reload.d.ts +3 -1
  106. package/dist/node/src/core/user/token_manager.d.ts +1 -0
  107. package/dist/node/src/core/user/user_impl.d.ts +7 -1
  108. package/dist/node/src/core/util/assert.d.ts +1 -0
  109. package/dist/node/src/model/public_types.d.ts +7 -0
  110. package/dist/node/src/platform_browser/strategies/phone.d.ts +6 -3
  111. package/dist/node/src/platform_browser/strategies/popup.d.ts +4 -2
  112. package/dist/node/src/platform_browser/strategies/redirect.d.ts +8 -4
  113. package/dist/node/test/helpers/integration/helpers.d.ts +2 -0
  114. package/dist/node/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  115. package/dist/node/{totp-7d693c11.js → totp-fbe187a4.js} +180 -12
  116. package/dist/node/totp-fbe187a4.js.map +1 -0
  117. package/dist/node-esm/index.js +2 -2
  118. package/dist/node-esm/internal.js +6 -3
  119. package/dist/node-esm/internal.js.map +1 -1
  120. package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -0
  121. package/dist/node-esm/src/core/index.d.ts +9 -1
  122. package/dist/node-esm/src/core/strategies/anonymous.d.ts +3 -0
  123. package/dist/node-esm/src/core/strategies/credential.d.ts +6 -0
  124. package/dist/node-esm/src/core/strategies/custom_token.d.ts +3 -0
  125. package/dist/node-esm/src/core/strategies/email_and_password.d.ts +7 -0
  126. package/dist/node-esm/src/core/strategies/email_link.d.ts +4 -0
  127. package/dist/node-esm/src/core/user/account_info.d.ts +3 -0
  128. package/dist/node-esm/src/core/user/reload.d.ts +3 -1
  129. package/dist/node-esm/src/core/user/token_manager.d.ts +1 -0
  130. package/dist/node-esm/src/core/user/user_impl.d.ts +7 -1
  131. package/dist/node-esm/src/core/util/assert.d.ts +1 -0
  132. package/dist/node-esm/src/model/public_types.d.ts +7 -0
  133. package/dist/node-esm/src/platform_browser/strategies/phone.d.ts +6 -3
  134. package/dist/node-esm/src/platform_browser/strategies/popup.d.ts +4 -2
  135. package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +8 -4
  136. package/dist/node-esm/test/helpers/integration/helpers.d.ts +2 -0
  137. package/dist/node-esm/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  138. package/dist/node-esm/{totp-56a8eeec.js → totp-4d1c9ab1.js} +148 -7
  139. package/dist/node-esm/totp-4d1c9ab1.js.map +1 -0
  140. package/dist/rn/{index-8ee80bdc.js → index-bbdaa838.js} +199 -16
  141. package/dist/rn/index-bbdaa838.js.map +1 -0
  142. package/dist/rn/index.js +1 -1
  143. package/dist/rn/internal.js +41 -15
  144. package/dist/rn/internal.js.map +1 -1
  145. package/dist/rn/src/core/auth/auth_impl.d.ts +1 -0
  146. package/dist/rn/src/core/index.d.ts +9 -1
  147. package/dist/rn/src/core/strategies/anonymous.d.ts +3 -0
  148. package/dist/rn/src/core/strategies/credential.d.ts +6 -0
  149. package/dist/rn/src/core/strategies/custom_token.d.ts +3 -0
  150. package/dist/rn/src/core/strategies/email_and_password.d.ts +7 -0
  151. package/dist/rn/src/core/strategies/email_link.d.ts +4 -0
  152. package/dist/rn/src/core/user/account_info.d.ts +3 -0
  153. package/dist/rn/src/core/user/reload.d.ts +3 -1
  154. package/dist/rn/src/core/user/token_manager.d.ts +1 -0
  155. package/dist/rn/src/core/user/user_impl.d.ts +7 -1
  156. package/dist/rn/src/core/util/assert.d.ts +1 -0
  157. package/dist/rn/src/model/public_types.d.ts +7 -0
  158. package/dist/rn/src/platform_browser/strategies/phone.d.ts +6 -3
  159. package/dist/rn/src/platform_browser/strategies/popup.d.ts +4 -2
  160. package/dist/rn/src/platform_browser/strategies/redirect.d.ts +8 -4
  161. package/dist/rn/test/helpers/integration/helpers.d.ts +2 -0
  162. package/dist/rn/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  163. package/dist/src/core/auth/auth_impl.d.ts +1 -0
  164. package/dist/src/core/index.d.ts +9 -1
  165. package/dist/src/core/strategies/anonymous.d.ts +3 -0
  166. package/dist/src/core/strategies/credential.d.ts +6 -0
  167. package/dist/src/core/strategies/custom_token.d.ts +3 -0
  168. package/dist/src/core/strategies/email_and_password.d.ts +7 -0
  169. package/dist/src/core/strategies/email_link.d.ts +4 -0
  170. package/dist/src/core/user/account_info.d.ts +3 -0
  171. package/dist/src/core/user/reload.d.ts +3 -1
  172. package/dist/src/core/user/token_manager.d.ts +1 -0
  173. package/dist/src/core/user/user_impl.d.ts +7 -1
  174. package/dist/src/core/util/assert.d.ts +1 -0
  175. package/dist/src/model/public_types.d.ts +7 -0
  176. package/dist/src/platform_browser/strategies/phone.d.ts +6 -3
  177. package/dist/src/platform_browser/strategies/popup.d.ts +4 -2
  178. package/dist/src/platform_browser/strategies/redirect.d.ts +8 -4
  179. package/dist/test/helpers/integration/helpers.d.ts +2 -0
  180. package/dist/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  181. package/dist/web-extension-cjs/index.js +1 -1
  182. package/dist/web-extension-cjs/internal.js +57 -18
  183. package/dist/web-extension-cjs/internal.js.map +1 -1
  184. package/dist/web-extension-cjs/{register-9438f377.js → register-4ce22251.js} +148 -6
  185. package/dist/web-extension-cjs/register-4ce22251.js.map +1 -0
  186. package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +1 -0
  187. package/dist/web-extension-cjs/src/core/index.d.ts +9 -1
  188. package/dist/web-extension-cjs/src/core/strategies/anonymous.d.ts +3 -0
  189. package/dist/web-extension-cjs/src/core/strategies/credential.d.ts +6 -0
  190. package/dist/web-extension-cjs/src/core/strategies/custom_token.d.ts +3 -0
  191. package/dist/web-extension-cjs/src/core/strategies/email_and_password.d.ts +7 -0
  192. package/dist/web-extension-cjs/src/core/strategies/email_link.d.ts +4 -0
  193. package/dist/web-extension-cjs/src/core/user/account_info.d.ts +3 -0
  194. package/dist/web-extension-cjs/src/core/user/reload.d.ts +3 -1
  195. package/dist/web-extension-cjs/src/core/user/token_manager.d.ts +1 -0
  196. package/dist/web-extension-cjs/src/core/user/user_impl.d.ts +7 -1
  197. package/dist/web-extension-cjs/src/core/util/assert.d.ts +1 -0
  198. package/dist/web-extension-cjs/src/model/public_types.d.ts +7 -0
  199. package/dist/web-extension-cjs/src/platform_browser/strategies/phone.d.ts +6 -3
  200. package/dist/web-extension-cjs/src/platform_browser/strategies/popup.d.ts +4 -2
  201. package/dist/web-extension-cjs/src/platform_browser/strategies/redirect.d.ts +8 -4
  202. package/dist/web-extension-cjs/test/helpers/integration/helpers.d.ts +2 -0
  203. package/dist/web-extension-cjs/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  204. package/dist/web-extension-esm2017/index.js +2 -2
  205. package/dist/web-extension-esm2017/internal.js +58 -19
  206. package/dist/web-extension-esm2017/internal.js.map +1 -1
  207. package/dist/web-extension-esm2017/{register-7b89e556.js → register-3473374b.js} +148 -7
  208. package/dist/web-extension-esm2017/register-3473374b.js.map +1 -0
  209. package/dist/web-extension-esm2017/src/core/auth/auth_impl.d.ts +1 -0
  210. package/dist/web-extension-esm2017/src/core/index.d.ts +9 -1
  211. package/dist/web-extension-esm2017/src/core/strategies/anonymous.d.ts +3 -0
  212. package/dist/web-extension-esm2017/src/core/strategies/credential.d.ts +6 -0
  213. package/dist/web-extension-esm2017/src/core/strategies/custom_token.d.ts +3 -0
  214. package/dist/web-extension-esm2017/src/core/strategies/email_and_password.d.ts +7 -0
  215. package/dist/web-extension-esm2017/src/core/strategies/email_link.d.ts +4 -0
  216. package/dist/web-extension-esm2017/src/core/user/account_info.d.ts +3 -0
  217. package/dist/web-extension-esm2017/src/core/user/reload.d.ts +3 -1
  218. package/dist/web-extension-esm2017/src/core/user/token_manager.d.ts +1 -0
  219. package/dist/web-extension-esm2017/src/core/user/user_impl.d.ts +7 -1
  220. package/dist/web-extension-esm2017/src/core/util/assert.d.ts +1 -0
  221. package/dist/web-extension-esm2017/src/model/public_types.d.ts +7 -0
  222. package/dist/web-extension-esm2017/src/platform_browser/strategies/phone.d.ts +6 -3
  223. package/dist/web-extension-esm2017/src/platform_browser/strategies/popup.d.ts +4 -2
  224. package/dist/web-extension-esm2017/src/platform_browser/strategies/redirect.d.ts +8 -4
  225. package/dist/web-extension-esm2017/test/helpers/integration/helpers.d.ts +2 -0
  226. package/dist/web-extension-esm2017/test/integration/flows/firebaseserverapp.test.d.ts +17 -0
  227. package/package.json +7 -7
  228. package/dist/browser-cjs/index-6a907fc6.js.map +0 -1
  229. package/dist/cordova/popup_redirect-58faecee.js.map +0 -1
  230. package/dist/esm2017/index-e939beb5.js.map +0 -1
  231. package/dist/esm5/index-3bd54529.js.map +0 -1
  232. package/dist/node/totp-7d693c11.js.map +0 -1
  233. package/dist/node-esm/totp-56a8eeec.js.map +0 -1
  234. package/dist/rn/index-8ee80bdc.js.map +0 -1
  235. package/dist/web-extension-cjs/register-9438f377.js.map +0 -1
  236. package/dist/web-extension-esm2017/register-7b89e556.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { __awaiter, __generator, __spreadArray, __assign, __rest, __extends } from 'tslib';
2
+ import { SDK_VERSION, _isFirebaseServerApp, _getProvider, _registerComponent, registerVersion } from '@firebase/app';
2
3
  import { ErrorFactory, isBrowserExtension, isMobileCordova, isReactNative, FirebaseError, querystring, getModularInstance, base64Decode, isIE, getUA, createSubscribe, deepEqual, querystringDecode, extractQuerystring, isEmpty } from '@firebase/util';
3
- import { SDK_VERSION, _getProvider, _registerComponent, registerVersion } from '@firebase/app';
4
4
  import { Component } from '@firebase/component';
5
5
  import { Logger, LogLevel } from '@firebase/logger';
6
6
 
@@ -1316,6 +1316,9 @@ function _errorWithCustomMessage(auth, code, message) {
1316
1316
  appName: auth.name
1317
1317
  });
1318
1318
  }
1319
+ function _serverAppCurrentUserOperationNotSupportedError(auth) {
1320
+ return _errorWithCustomMessage(auth, "operation-not-supported-in-this-environment" /* AuthErrorCode.OPERATION_NOT_SUPPORTED */, 'Operations that alter the current user are not supported in conjunction with FirebaseServerApp');
1321
+ }
1319
1322
  function _assertInstanceOf(auth, object, instance) {
1320
1323
  var constructorInstance = instance;
1321
1324
  if (!(object instanceof constructorInstance)) {
@@ -2603,16 +2606,21 @@ var StsTokenManager = /** @class */ (function () {
2603
2606
  : _tokenExpiresIn(response.idToken);
2604
2607
  this.updateTokensAndExpiration(response.idToken, response.refreshToken, expiresIn);
2605
2608
  };
2609
+ StsTokenManager.prototype.updateFromIdToken = function (idToken) {
2610
+ _assert(idToken.length !== 0, "internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
2611
+ var expiresIn = _tokenExpiresIn(idToken);
2612
+ this.updateTokensAndExpiration(idToken, null, expiresIn);
2613
+ };
2606
2614
  StsTokenManager.prototype.getToken = function (auth, forceRefresh) {
2607
2615
  if (forceRefresh === void 0) { forceRefresh = false; }
2608
2616
  return __awaiter(this, void 0, void 0, function () {
2609
2617
  return __generator(this, function (_a) {
2610
2618
  switch (_a.label) {
2611
2619
  case 0:
2612
- _assert(!this.accessToken || this.refreshToken, auth, "user-token-expired" /* AuthErrorCode.TOKEN_EXPIRED */);
2613
2620
  if (!forceRefresh && this.accessToken && !this.isExpired) {
2614
2621
  return [2 /*return*/, this.accessToken];
2615
2622
  }
2623
+ _assert(this.refreshToken, auth, "user-token-expired" /* AuthErrorCode.TOKEN_EXPIRED */);
2616
2624
  if (!this.refreshToken) return [3 /*break*/, 2];
2617
2625
  return [4 /*yield*/, this.refresh(auth, this.refreshToken)];
2618
2626
  case 1:
@@ -2836,7 +2844,11 @@ var UserImpl = /** @class */ (function () {
2836
2844
  var idToken;
2837
2845
  return __generator(this, function (_a) {
2838
2846
  switch (_a.label) {
2839
- case 0: return [4 /*yield*/, this.getIdToken()];
2847
+ case 0:
2848
+ if (_isFirebaseServerApp(this.auth.app)) {
2849
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this.auth))];
2850
+ }
2851
+ return [4 /*yield*/, this.getIdToken()];
2840
2852
  case 1:
2841
2853
  idToken = _a.sent();
2842
2854
  return [4 /*yield*/, _logoutIfInvalidated(this, deleteAccount(this.auth, { idToken: idToken }))];
@@ -2941,6 +2953,47 @@ var UserImpl = /** @class */ (function () {
2941
2953
  });
2942
2954
  });
2943
2955
  };
2956
+ /**
2957
+ * Initialize a User from an idToken server response
2958
+ * @param auth
2959
+ * @param idTokenResponse
2960
+ */
2961
+ UserImpl._fromGetAccountInfoResponse = function (auth, response, idToken) {
2962
+ return __awaiter(this, void 0, void 0, function () {
2963
+ var coreAccount, providerData, isAnonymous, stsTokenManager, user, updates;
2964
+ return __generator(this, function (_a) {
2965
+ coreAccount = response.users[0];
2966
+ _assert(coreAccount.localId !== undefined, "internal-error" /* AuthErrorCode.INTERNAL_ERROR */);
2967
+ providerData = coreAccount.providerUserInfo !== undefined
2968
+ ? extractProviderData(coreAccount.providerUserInfo)
2969
+ : [];
2970
+ isAnonymous = !(coreAccount.email && coreAccount.passwordHash) && !(providerData === null || providerData === void 0 ? void 0 : providerData.length);
2971
+ stsTokenManager = new StsTokenManager();
2972
+ stsTokenManager.updateFromIdToken(idToken);
2973
+ user = new UserImpl({
2974
+ uid: coreAccount.localId,
2975
+ auth: auth,
2976
+ stsTokenManager: stsTokenManager,
2977
+ isAnonymous: isAnonymous
2978
+ });
2979
+ updates = {
2980
+ uid: coreAccount.localId,
2981
+ displayName: coreAccount.displayName || null,
2982
+ photoURL: coreAccount.photoUrl || null,
2983
+ email: coreAccount.email || null,
2984
+ emailVerified: coreAccount.emailVerified || false,
2985
+ phoneNumber: coreAccount.phoneNumber || null,
2986
+ tenantId: coreAccount.tenantId || null,
2987
+ providerData: providerData,
2988
+ metadata: new UserMetadata(coreAccount.createdAt, coreAccount.lastLoginAt),
2989
+ isAnonymous: !(coreAccount.email && coreAccount.passwordHash) &&
2990
+ !(providerData === null || providerData === void 0 ? void 0 : providerData.length)
2991
+ };
2992
+ Object.assign(user, updates);
2993
+ return [2 /*return*/, user];
2994
+ });
2995
+ });
2996
+ };
2944
2997
  return UserImpl;
2945
2998
  }());
2946
2999
 
@@ -3842,13 +3895,59 @@ var AuthImpl = /** @class */ (function () {
3842
3895
  });
3843
3896
  });
3844
3897
  };
3898
+ AuthImpl.prototype.initializeCurrentUserFromIdToken = function (idToken) {
3899
+ return __awaiter(this, void 0, void 0, function () {
3900
+ var response, user, err_1;
3901
+ return __generator(this, function (_a) {
3902
+ switch (_a.label) {
3903
+ case 0:
3904
+ _a.trys.push([0, 4, , 6]);
3905
+ return [4 /*yield*/, getAccountInfo(this, { idToken: idToken })];
3906
+ case 1:
3907
+ response = _a.sent();
3908
+ return [4 /*yield*/, UserImpl._fromGetAccountInfoResponse(this, response, idToken)];
3909
+ case 2:
3910
+ user = _a.sent();
3911
+ return [4 /*yield*/, this.directlySetCurrentUser(user)];
3912
+ case 3:
3913
+ _a.sent();
3914
+ return [3 /*break*/, 6];
3915
+ case 4:
3916
+ err_1 = _a.sent();
3917
+ console.warn('FirebaseServerApp could not login user with provided authIdToken: ', err_1);
3918
+ return [4 /*yield*/, this.directlySetCurrentUser(null)];
3919
+ case 5:
3920
+ _a.sent();
3921
+ return [3 /*break*/, 6];
3922
+ case 6: return [2 /*return*/];
3923
+ }
3924
+ });
3925
+ });
3926
+ };
3845
3927
  AuthImpl.prototype.initializeCurrentUser = function (popupRedirectResolver) {
3846
3928
  var _a;
3847
3929
  return __awaiter(this, void 0, void 0, function () {
3848
- var previouslyStoredUser, futureCurrentUser, needsTocheckMiddleware, redirectUserEventId, storedUserEventId, result, e_2;
3930
+ var idToken_1, previouslyStoredUser, futureCurrentUser, needsTocheckMiddleware, redirectUserEventId, storedUserEventId, result, e_2;
3931
+ var _this = this;
3849
3932
  return __generator(this, function (_b) {
3850
3933
  switch (_b.label) {
3851
- case 0: return [4 /*yield*/, this.assertedPersistence.getCurrentUser()];
3934
+ case 0:
3935
+ if (_isFirebaseServerApp(this.app)) {
3936
+ idToken_1 = this.app.settings.authIdToken;
3937
+ if (idToken_1) {
3938
+ // Start the auth operation in the next tick to allow a moment for the customer's app to
3939
+ // attach an emulator, if desired.
3940
+ return [2 /*return*/, new Promise(function (resolve) {
3941
+ setTimeout(function () {
3942
+ return _this.initializeCurrentUserFromIdToken(idToken_1).then(resolve, resolve);
3943
+ });
3944
+ })];
3945
+ }
3946
+ else {
3947
+ return [2 /*return*/, this.directlySetCurrentUser(null)];
3948
+ }
3949
+ }
3950
+ return [4 /*yield*/, this.assertedPersistence.getCurrentUser()];
3852
3951
  case 1:
3853
3952
  previouslyStoredUser = (_b.sent());
3854
3953
  futureCurrentUser = previouslyStoredUser;
@@ -3990,6 +4089,9 @@ var AuthImpl = /** @class */ (function () {
3990
4089
  return __awaiter(this, void 0, void 0, function () {
3991
4090
  var user;
3992
4091
  return __generator(this, function (_a) {
4092
+ if (_isFirebaseServerApp(this.app)) {
4093
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this))];
4094
+ }
3993
4095
  user = userExtern
3994
4096
  ? getModularInstance(userExtern)
3995
4097
  : null;
@@ -4037,9 +4139,12 @@ var AuthImpl = /** @class */ (function () {
4037
4139
  return __awaiter(this, void 0, void 0, function () {
4038
4140
  return __generator(this, function (_a) {
4039
4141
  switch (_a.label) {
4040
- case 0:
4041
- // Run first, to block _setRedirectUser() if any callbacks fail.
4042
- return [4 /*yield*/, this.beforeStateQueue.runMiddleware(null)];
4142
+ case 0:
4143
+ if (_isFirebaseServerApp(this.app)) {
4144
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this))];
4145
+ }
4146
+ // Run first, to block _setRedirectUser() if any callbacks fail.
4147
+ return [4 /*yield*/, this.beforeStateQueue.runMiddleware(null)];
4043
4148
  case 1:
4044
4149
  // Run first, to block _setRedirectUser() if any callbacks fail.
4045
4150
  _a.sent();
@@ -4058,6 +4163,9 @@ var AuthImpl = /** @class */ (function () {
4058
4163
  };
4059
4164
  AuthImpl.prototype.setPersistence = function (persistence) {
4060
4165
  var _this = this;
4166
+ if (_isFirebaseServerApp(this.app)) {
4167
+ return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(this));
4168
+ }
4061
4169
  return this.queue(function () { return __awaiter(_this, void 0, void 0, function () {
4062
4170
  return __generator(this, function (_a) {
4063
4171
  switch (_a.label) {
@@ -6845,6 +6953,9 @@ function providerIdForResponse(response) {
6845
6953
  * If there is already an anonymous user signed in, that user will be returned; otherwise, a
6846
6954
  * new anonymous user identity will be created and returned.
6847
6955
  *
6956
+ * This method is not supported by {@link Auth} instances created with a
6957
+ * {@link @firebase/app#FirebaseServerApp}.
6958
+ *
6848
6959
  * @param auth - The {@link Auth} instance.
6849
6960
  *
6850
6961
  * @public
@@ -6856,6 +6967,9 @@ function signInAnonymously(auth) {
6856
6967
  return __generator(this, function (_b) {
6857
6968
  switch (_b.label) {
6858
6969
  case 0:
6970
+ if (_isFirebaseServerApp(auth.app)) {
6971
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
6972
+ }
6859
6973
  authInternal = _castAuth(auth);
6860
6974
  return [4 /*yield*/, authInternal._initializationPromise];
6861
6975
  case 1:
@@ -7087,6 +7201,9 @@ function _reauthenticate(user, credential, bypassAuthState) {
7087
7201
  switch (_a.label) {
7088
7202
  case 0:
7089
7203
  auth = user.auth;
7204
+ if (_isFirebaseServerApp(auth.app)) {
7205
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
7206
+ }
7090
7207
  operationType = "reauthenticate" /* OperationType.REAUTHENTICATE */;
7091
7208
  _a.label = 1;
7092
7209
  case 1:
@@ -7136,6 +7253,9 @@ function _signInWithCredential(auth, credential, bypassAuthState) {
7136
7253
  return __generator(this, function (_a) {
7137
7254
  switch (_a.label) {
7138
7255
  case 0:
7256
+ if (_isFirebaseServerApp(auth.app)) {
7257
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
7258
+ }
7139
7259
  operationType = "signIn" /* OperationType.SIGN_IN */;
7140
7260
  return [4 /*yield*/, _processCredentialSavingMfaContextIfNecessary(auth, operationType, credential)];
7141
7261
  case 1:
@@ -7159,6 +7279,9 @@ function _signInWithCredential(auth, credential, bypassAuthState) {
7159
7279
  * @remarks
7160
7280
  * An {@link AuthProvider} can be used to generate the credential.
7161
7281
  *
7282
+ * This method is not supported by {@link Auth} instances created with a
7283
+ * {@link @firebase/app#FirebaseServerApp}.
7284
+ *
7162
7285
  * @param auth - The {@link Auth} instance.
7163
7286
  * @param credential - The auth credential.
7164
7287
  *
@@ -7205,6 +7328,9 @@ function linkWithCredential(user, credential) {
7205
7328
  * attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error
7206
7329
  * or a `TOKEN_EXPIRED` error.
7207
7330
  *
7331
+ * This method is not supported on any {@link User} signed in by {@link Auth} instances
7332
+ * created with a {@link @firebase/app#FirebaseServerApp}.
7333
+ *
7208
7334
  * @param user - The user.
7209
7335
  * @param credential - The auth credential.
7210
7336
  *
@@ -7269,6 +7395,9 @@ function signInWithCustomToken$1(auth, request) {
7269
7395
  *
7270
7396
  * Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.
7271
7397
  *
7398
+ * This method is not supported by {@link Auth} instances created with a
7399
+ * {@link @firebase/app#FirebaseServerApp}.
7400
+ *
7272
7401
  * @param auth - The {@link Auth} instance.
7273
7402
  * @param customToken - The custom token to sign in with.
7274
7403
  *
@@ -7280,6 +7409,9 @@ function signInWithCustomToken(auth, customToken) {
7280
7409
  return __generator(this, function (_a) {
7281
7410
  switch (_a.label) {
7282
7411
  case 0:
7412
+ if (_isFirebaseServerApp(auth.app)) {
7413
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
7414
+ }
7283
7415
  authInternal = _castAuth(auth);
7284
7416
  return [4 /*yield*/, signInWithCustomToken$1(authInternal, {
7285
7417
  token: customToken,
@@ -7636,6 +7768,9 @@ function verifyPasswordResetCode(auth, code) {
7636
7768
  *
7637
7769
  * User account creation can fail if the account already exists or the password is invalid.
7638
7770
  *
7771
+ * This method is not supported on {@link Auth} instances created with a
7772
+ * {@link @firebase/app#FirebaseServerApp}.
7773
+ *
7639
7774
  * Note: The email address acts as a unique identifier for the user and enables an email-based
7640
7775
  * password reset. This function will create a new user account and set the initial user password.
7641
7776
  *
@@ -7651,6 +7786,9 @@ function createUserWithEmailAndPassword(auth, email, password) {
7651
7786
  return __generator(this, function (_a) {
7652
7787
  switch (_a.label) {
7653
7788
  case 0:
7789
+ if (_isFirebaseServerApp(auth.app)) {
7790
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
7791
+ }
7654
7792
  authInternal = _castAuth(auth);
7655
7793
  request = {
7656
7794
  returnSecureToken: true,
@@ -7686,10 +7824,14 @@ function createUserWithEmailAndPassword(auth, email, password) {
7686
7824
  * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,
7687
7825
  * this method fails with "auth/invalid-credential" in case of an invalid email/password.
7688
7826
  *
7827
+ * This method is not supported on {@link Auth} instances created with a
7828
+ * {@link @firebase/app#FirebaseServerApp}.
7829
+ *
7689
7830
  * Note: The user's password is NOT the password used to access the user's email account. The
7690
7831
  * email address serves as a unique identifier for the user, and the password is used to access
7691
7832
  * the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.
7692
7833
  *
7834
+ *
7693
7835
  * @param auth - The {@link Auth} instance.
7694
7836
  * @param email - The users email address.
7695
7837
  * @param password - The users password.
@@ -7698,6 +7840,9 @@ function createUserWithEmailAndPassword(auth, email, password) {
7698
7840
  */
7699
7841
  function signInWithEmailAndPassword(auth, email, password) {
7700
7842
  var _this = this;
7843
+ if (_isFirebaseServerApp(auth.app)) {
7844
+ return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth));
7845
+ }
7701
7846
  return signInWithCredential(getModularInstance(auth), EmailAuthProvider.credential(email, password)).catch(function (error) { return __awaiter(_this, void 0, void 0, function () {
7702
7847
  return __generator(this, function (_a) {
7703
7848
  if (error.code === "auth/".concat("password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */)) {
@@ -7809,6 +7954,9 @@ function isSignInWithEmailLink(auth, emailLink) {
7809
7954
  *
7810
7955
  * Fails with an error if the email address is invalid or OTP in email link expires.
7811
7956
  *
7957
+ * This method is not supported by {@link Auth} instances created with a
7958
+ * {@link @firebase/app#FirebaseServerApp}.
7959
+ *
7812
7960
  * Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.
7813
7961
  *
7814
7962
  * @example
@@ -7832,6 +7980,7 @@ function isSignInWithEmailLink(auth, emailLink) {
7832
7980
  * }
7833
7981
  * ```
7834
7982
  *
7983
+ *
7835
7984
  * @param auth - The {@link Auth} instance.
7836
7985
  * @param email - The user's email address.
7837
7986
  * @param emailLink - The link sent to the user's email address.
@@ -7842,6 +7991,9 @@ function signInWithEmailLink(auth, email, emailLink) {
7842
7991
  return __awaiter(this, void 0, void 0, function () {
7843
7992
  var authModular, credential;
7844
7993
  return __generator(this, function (_a) {
7994
+ if (_isFirebaseServerApp(auth.app)) {
7995
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
7996
+ }
7845
7997
  authModular = getModularInstance(auth);
7846
7998
  credential = EmailAuthProvider.credentialWithLink(email, emailLink || _getCurrentUrl());
7847
7999
  // Check if the tenant ID in the email link matches the tenant ID on Auth
@@ -8155,6 +8307,9 @@ function updateProfile(user, _a) {
8155
8307
  * An email will be sent to the original email address (if it was set) that allows to revoke the
8156
8308
  * email address change, in order to protect them from account hijacking.
8157
8309
  *
8310
+ * This method is not supported on any {@link User} signed in by {@link Auth} instances
8311
+ * created with a {@link @firebase/app#FirebaseServerApp}.
8312
+ *
8158
8313
  * Important: this is a security sensitive operation that requires the user to have recently signed
8159
8314
  * in. If this requirement isn't met, ask the user to authenticate again and then call
8160
8315
  * {@link reauthenticateWithCredential}.
@@ -8168,7 +8323,11 @@ function updateProfile(user, _a) {
8168
8323
  * @public
8169
8324
  */
8170
8325
  function updateEmail(user, newEmail) {
8171
- return updateEmailOrPassword(getModularInstance(user), newEmail, null);
8326
+ var userInternal = getModularInstance(user);
8327
+ if (_isFirebaseServerApp(userInternal.auth.app)) {
8328
+ return Promise.reject(_serverAppCurrentUserOperationNotSupportedError(userInternal.auth));
8329
+ }
8330
+ return updateEmailOrPassword(userInternal, newEmail, null);
8172
8331
  }
8173
8332
  /**
8174
8333
  * Updates the user's password.
@@ -8373,7 +8532,8 @@ function getAdditionalUserInfo(userCredential) {
8373
8532
  * remembered or not. It also makes it easier to never persist the `Auth` state for applications
8374
8533
  * that are shared by other users or have sensitive data.
8375
8534
  *
8376
- * This method does not work in a Node.js environment.
8535
+ * This method does not work in a Node.js environment or with {@link Auth} instances created with a
8536
+ * {@link @firebase/app#FirebaseServerApp}.
8377
8537
  *
8378
8538
  * @example
8379
8539
  * ```javascript
@@ -8524,6 +8684,9 @@ function useDeviceLanguage(auth) {
8524
8684
  * The operation fails with an error if the user to be updated belongs to a different Firebase
8525
8685
  * project.
8526
8686
  *
8687
+ * This method is not supported by {@link Auth} instances created with a
8688
+ * {@link @firebase/app#FirebaseServerApp}.
8689
+ *
8527
8690
  * @param auth - The {@link Auth} instance.
8528
8691
  * @param user - The new {@link User}.
8529
8692
  *
@@ -8535,6 +8698,10 @@ function updateCurrentUser(auth, user) {
8535
8698
  /**
8536
8699
  * Signs out the current user.
8537
8700
  *
8701
+ * @remarks
8702
+ * This method is not supported by {@link Auth} instances created with a
8703
+ * {@link @firebase/app#FirebaseServerApp}.
8704
+ *
8538
8705
  * @param auth - The {@link Auth} instance.
8539
8706
  *
8540
8707
  * @public
@@ -8883,7 +9050,7 @@ function multiFactor(user) {
8883
9050
  }
8884
9051
 
8885
9052
  var name = "@firebase/auth";
8886
- var version = "1.6.2";
9053
+ var version = "1.7.0-canary.42fcdfe4c";
8887
9054
 
8888
9055
  /**
8889
9056
  * @license
@@ -9905,7 +10072,8 @@ function pendingRedirectKey(auth) {
9905
10072
  * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
9906
10073
  * | best practices} when using {@link signInWithRedirect}.
9907
10074
  *
9908
- * This method does not work in a Node.js environment.
10075
+ * This method does not work in a Node.js environment or with {@link Auth} instances created with a
10076
+ * {@link @firebase/app#FirebaseServerApp}.
9909
10077
  *
9910
10078
  * @example
9911
10079
  * ```javascript
@@ -9949,6 +10117,9 @@ function _signInWithRedirect(auth, provider, resolver) {
9949
10117
  return __generator(this, function (_a) {
9950
10118
  switch (_a.label) {
9951
10119
  case 0:
10120
+ if (_isFirebaseServerApp(auth.app)) {
10121
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
10122
+ }
9952
10123
  authInternal = _castAuth(auth);
9953
10124
  _assertInstanceOf(auth, provider, FederatedAuthProvider);
9954
10125
  // Wait for auth initialization to complete, this will process pending redirects and clear the
@@ -9976,7 +10147,8 @@ function _signInWithRedirect(auth, provider, resolver) {
9976
10147
  * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
9977
10148
  * | best practices} when using {@link reauthenticateWithRedirect}.
9978
10149
  *
9979
- * This method does not work in a Node.js environment.
10150
+ * This method does not work in a Node.js environment or with {@link Auth} instances
10151
+ * created with a {@link @firebase/app#FirebaseServerApp}.
9980
10152
  *
9981
10153
  * @example
9982
10154
  * ```javascript
@@ -10014,6 +10186,9 @@ function _reauthenticateWithRedirect(user, provider, resolver) {
10014
10186
  case 0:
10015
10187
  userInternal = getModularInstance(user);
10016
10188
  _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);
10189
+ if (_isFirebaseServerApp(userInternal.auth.app)) {
10190
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(userInternal.auth))];
10191
+ }
10017
10192
  // Wait for auth initialization to complete, this will process pending redirects and clear the
10018
10193
  // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new
10019
10194
  // redirect and creating a PENDING_REDIRECT_KEY entry.
@@ -10042,7 +10217,8 @@ function _reauthenticateWithRedirect(user, provider, resolver) {
10042
10217
  * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices
10043
10218
  * | best practices} when using {@link linkWithRedirect}.
10044
10219
  *
10045
- * This method does not work in a Node.js environment.
10220
+ * This method does not work in a Node.js environment or with {@link Auth} instances
10221
+ * created with a {@link @firebase/app#FirebaseServerApp}.
10046
10222
  *
10047
10223
  * @example
10048
10224
  * ```javascript
@@ -10107,7 +10283,8 @@ function _linkWithRedirect(user, provider, resolver) {
10107
10283
  * If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
10108
10284
  * error. If no redirect operation was called, returns `null`.
10109
10285
  *
10110
- * This method does not work in a Node.js environment.
10286
+ * This method does not work in a Node.js environment or with {@link Auth} instances created with a
10287
+ * {@link @firebase/app#FirebaseServerApp}.
10111
10288
  *
10112
10289
  * @example
10113
10290
  * ```javascript
@@ -10159,6 +10336,9 @@ function _getRedirectResult(auth, resolverExtern, bypassAuthState) {
10159
10336
  return __generator(this, function (_a) {
10160
10337
  switch (_a.label) {
10161
10338
  case 0:
10339
+ if (_isFirebaseServerApp(auth.app)) {
10340
+ return [2 /*return*/, Promise.reject(_serverAppCurrentUserOperationNotSupportedError(auth))];
10341
+ }
10162
10342
  authInternal = _castAuth(auth);
10163
10343
  resolver = _withDefaultResolver(authInternal, resolverExtern);
10164
10344
  action = new RedirectAction(authInternal, resolver, bypassAuthState);
@@ -11088,5 +11268,5 @@ function generateNoEvent() {
11088
11268
  };
11089
11269
  }
11090
11270
 
11091
- export { signInWithEmailAndPassword as $, ActionCodeOperation as A, PhoneAuthCredential as B, inMemoryPersistence as C, EmailAuthProvider as D, EmailAuthCredential as E, FactorId as F, FacebookAuthProvider as G, GoogleAuthProvider as H, GithubAuthProvider as I, OAuthProvider as J, SAMLAuthProvider as K, signInAnonymously as L, signInWithCredential as M, linkWithCredential as N, OperationType as O, ProviderId as P, reauthenticateWithCredential as Q, signInWithCustomToken as R, SignInMethod as S, TwitterAuthProvider as T, sendPasswordResetEmail as U, confirmPasswordReset as V, applyActionCode as W, checkActionCode as X, verifyPasswordResetCode as Y, createUserWithEmailAndPassword as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, _persistenceKeyName as a$, sendSignInLinkToEmail as a0, isSignInWithEmailLink as a1, signInWithEmailLink as a2, fetchSignInMethodsForEmail as a3, sendEmailVerification as a4, verifyBeforeUpdateEmail as a5, ActionCodeURL as a6, parseActionCodeURL as a7, updateProfile as a8, updateEmail as a9, debugAssert as aA, _generateEventId as aB, AbstractPopupRedirectOperation as aC, _assertInstanceOf as aD, _withDefaultResolver as aE, FederatedAuthProvider as aF, _fail as aG, _getProjectConfig as aH, _getCurrentUrl as aI, _gapiScriptUrl as aJ, _emulatorUrl as aK, _isChromeIOS as aL, _isFirefox as aM, _isIOSStandalone as aN, _getRedirectUrl as aO, _setWindowLocation as aP, _isMobileBrowser as aQ, _isSafari as aR, _isIOS as aS, _getRedirectResult as aT, _overrideRedirectResult as aU, AuthEventManager as aV, debugFail as aW, finalizeEnrollPhoneMfa as aX, finalizeEnrollTotpMfa as aY, startEnrollTotpMfa as aZ, _setExternalJSProvider as a_, updatePassword as aa, getIdToken as ab, getIdTokenResult as ac, unlink as ad, getAdditionalUserInfo as ae, reload as af, getMultiFactorResolver as ag, multiFactor as ah, _performApiRequest as ai, _addTidIfNecessary as aj, _assert as ak, Delay as al, _window as am, isV2 as an, _createError as ao, _recaptchaV2ScriptUrl as ap, _loadJS as aq, _generateCallbackName as ar, getRecaptchaParams as as, _isHttpOrHttps as at, _isWorker as au, _castAuth as av, _assertLinkedStatus as aw, sendPhoneVerificationCode as ax, startEnrollPhoneMfa as ay, _link$1 as az, _linkWithRedirect as b, UserImpl as b0, _getInstance as b1, AuthImpl as b2, _getClientVersion as b3, FetchProvider as b4, SAMLAuthCredential as b5, signInWithRedirect as b6, linkWithRedirect as b7, reauthenticateWithRedirect as b8, indexedDBLocalPersistence as c, cordovaPopupRedirectResolver as d, browserLocalPersistence as e, browserSessionPersistence as f, getRedirectResult as g, initializeRecaptchaConfig as h, initializeAuth as i, beforeAuthStateChanged as j, onAuthStateChanged as k, updateCurrentUser as l, signOut as m, revokeAccessToken as n, onIdTokenChanged as o, deleteUser as p, debugErrorMap as q, registerAuth as r, setPersistence as s, prodErrorMap as t, useDeviceLanguage as u, validatePassword as v, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as w, connectAuthEmulator as x, AuthCredential as y, OAuthCredential as z };
11092
- //# sourceMappingURL=popup_redirect-58faecee.js.map
11271
+ export { signInWithEmailAndPassword as $, ActionCodeOperation as A, PhoneAuthCredential as B, inMemoryPersistence as C, EmailAuthProvider as D, EmailAuthCredential as E, FactorId as F, FacebookAuthProvider as G, GoogleAuthProvider as H, GithubAuthProvider as I, OAuthProvider as J, SAMLAuthProvider as K, signInAnonymously as L, signInWithCredential as M, linkWithCredential as N, OperationType as O, ProviderId as P, reauthenticateWithCredential as Q, signInWithCustomToken as R, SignInMethod as S, TwitterAuthProvider as T, sendPasswordResetEmail as U, confirmPasswordReset as V, applyActionCode as W, checkActionCode as X, verifyPasswordResetCode as Y, createUserWithEmailAndPassword as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, _setExternalJSProvider as a$, sendSignInLinkToEmail as a0, isSignInWithEmailLink as a1, signInWithEmailLink as a2, fetchSignInMethodsForEmail as a3, sendEmailVerification as a4, verifyBeforeUpdateEmail as a5, ActionCodeURL as a6, parseActionCodeURL as a7, updateProfile as a8, updateEmail as a9, _link$1 as aA, debugAssert as aB, _generateEventId as aC, AbstractPopupRedirectOperation as aD, _assertInstanceOf as aE, _withDefaultResolver as aF, FederatedAuthProvider as aG, _fail as aH, _getProjectConfig as aI, _getCurrentUrl as aJ, _gapiScriptUrl as aK, _emulatorUrl as aL, _isChromeIOS as aM, _isFirefox as aN, _isIOSStandalone as aO, _getRedirectUrl as aP, _setWindowLocation as aQ, _isMobileBrowser as aR, _isSafari as aS, _isIOS as aT, _getRedirectResult as aU, _overrideRedirectResult as aV, AuthEventManager as aW, debugFail as aX, finalizeEnrollPhoneMfa as aY, finalizeEnrollTotpMfa as aZ, startEnrollTotpMfa as a_, updatePassword as aa, getIdToken as ab, getIdTokenResult as ac, unlink as ad, getAdditionalUserInfo as ae, reload as af, getMultiFactorResolver as ag, multiFactor as ah, _performApiRequest as ai, _addTidIfNecessary as aj, _assert as ak, Delay as al, _window as am, isV2 as an, _createError as ao, _recaptchaV2ScriptUrl as ap, _loadJS as aq, _generateCallbackName as ar, getRecaptchaParams as as, _isHttpOrHttps as at, _isWorker as au, _castAuth as av, _serverAppCurrentUserOperationNotSupportedError as aw, _assertLinkedStatus as ax, sendPhoneVerificationCode as ay, startEnrollPhoneMfa as az, _linkWithRedirect as b, _persistenceKeyName as b0, UserImpl as b1, _getInstance as b2, AuthImpl as b3, _getClientVersion as b4, FetchProvider as b5, SAMLAuthCredential as b6, signInWithRedirect as b7, linkWithRedirect as b8, reauthenticateWithRedirect as b9, indexedDBLocalPersistence as c, cordovaPopupRedirectResolver as d, browserLocalPersistence as e, browserSessionPersistence as f, getRedirectResult as g, initializeRecaptchaConfig as h, initializeAuth as i, beforeAuthStateChanged as j, onAuthStateChanged as k, updateCurrentUser as l, signOut as m, revokeAccessToken as n, onIdTokenChanged as o, deleteUser as p, debugErrorMap as q, registerAuth as r, setPersistence as s, prodErrorMap as t, useDeviceLanguage as u, validatePassword as v, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as w, connectAuthEmulator as x, AuthCredential as y, OAuthCredential as z };
11272
+ //# sourceMappingURL=popup_redirect-65e04583.js.map