@depup/firebase__auth 1.12.1-depup.0

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 (1606) hide show
  1. package/README.md +31 -0
  2. package/changes.json +10 -0
  3. package/cordova/package.json +7 -0
  4. package/dist/auth-public.d.ts +4067 -0
  5. package/dist/auth.d.ts +4634 -0
  6. package/dist/browser-cjs/index-ac6fb6b2.js +11265 -0
  7. package/dist/browser-cjs/index-ac6fb6b2.js.map +1 -0
  8. package/dist/browser-cjs/index.cordova.d.ts +32 -0
  9. package/dist/browser-cjs/index.d.ts +38 -0
  10. package/dist/browser-cjs/index.doc.d.ts +24 -0
  11. package/dist/browser-cjs/index.js +98 -0
  12. package/dist/browser-cjs/index.js.map +1 -0
  13. package/dist/browser-cjs/index.node.d.ts +17 -0
  14. package/dist/browser-cjs/index.rn.d.ts +40 -0
  15. package/dist/browser-cjs/index.shared.d.ts +19 -0
  16. package/dist/browser-cjs/index.web-extension.d.ts +31 -0
  17. package/dist/browser-cjs/index.webworker.d.ts +21 -0
  18. package/dist/browser-cjs/internal/index.d.ts +42 -0
  19. package/dist/browser-cjs/internal.js +668 -0
  20. package/dist/browser-cjs/internal.js.map +1 -0
  21. package/dist/browser-cjs/scripts/run_node_tests.d.ts +17 -0
  22. package/dist/browser-cjs/src/api/account_management/account.d.ts +59 -0
  23. package/dist/browser-cjs/src/api/account_management/email_and_password.d.ts +49 -0
  24. package/dist/browser-cjs/src/api/account_management/mfa.d.ts +107 -0
  25. package/dist/browser-cjs/src/api/account_management/profile.d.ts +29 -0
  26. package/dist/browser-cjs/src/api/authentication/create_auth_uri.d.ts +26 -0
  27. package/dist/browser-cjs/src/api/authentication/custom_token.d.ts +26 -0
  28. package/dist/browser-cjs/src/api/authentication/email_and_password.d.ts +86 -0
  29. package/dist/browser-cjs/src/api/authentication/email_link.d.ts +32 -0
  30. package/dist/browser-cjs/src/api/authentication/idp.d.ts +40 -0
  31. package/dist/browser-cjs/src/api/authentication/mfa.d.ts +73 -0
  32. package/dist/browser-cjs/src/api/authentication/recaptcha.d.ts +34 -0
  33. package/dist/browser-cjs/src/api/authentication/sign_up.d.ts +34 -0
  34. package/dist/browser-cjs/src/api/authentication/sms.d.ts +54 -0
  35. package/dist/browser-cjs/src/api/authentication/token.d.ts +37 -0
  36. package/dist/browser-cjs/src/api/errors.d.ts +129 -0
  37. package/dist/browser-cjs/src/api/index.d.ts +101 -0
  38. package/dist/browser-cjs/src/api/password_policy/get_password_policy.d.ts +48 -0
  39. package/dist/browser-cjs/src/api/project_config/get_project_config.d.ts +25 -0
  40. package/dist/browser-cjs/src/core/action_code_url.d.ts +73 -0
  41. package/dist/browser-cjs/src/core/auth/auth_event_manager.d.ts +34 -0
  42. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +133 -0
  43. package/dist/browser-cjs/src/core/auth/emulator.d.ts +42 -0
  44. package/dist/browser-cjs/src/core/auth/firebase_internal.d.ts +35 -0
  45. package/dist/browser-cjs/src/core/auth/initialize.d.ts +46 -0
  46. package/dist/browser-cjs/src/core/auth/middleware.d.ts +25 -0
  47. package/dist/browser-cjs/src/core/auth/password_policy_impl.d.ts +59 -0
  48. package/dist/browser-cjs/src/core/auth/register.d.ts +23 -0
  49. package/dist/browser-cjs/src/core/credentials/auth_credential.d.ts +75 -0
  50. package/dist/browser-cjs/src/core/credentials/email.d.ts +60 -0
  51. package/dist/browser-cjs/src/core/credentials/index.d.ts +23 -0
  52. package/dist/browser-cjs/src/core/credentials/oauth.d.ts +81 -0
  53. package/dist/browser-cjs/src/core/credentials/phone.d.ts +52 -0
  54. package/dist/browser-cjs/src/core/credentials/saml.d.ts +52 -0
  55. package/dist/browser-cjs/src/core/errors.d.ts +328 -0
  56. package/dist/browser-cjs/src/core/index.d.ts +230 -0
  57. package/dist/browser-cjs/src/core/persistence/in_memory.d.ts +35 -0
  58. package/dist/browser-cjs/src/core/persistence/index.d.ts +42 -0
  59. package/dist/browser-cjs/src/core/persistence/persistence_user_manager.d.ts +45 -0
  60. package/dist/browser-cjs/src/core/providers/email.d.ts +83 -0
  61. package/dist/browser-cjs/src/core/providers/facebook.d.ts +93 -0
  62. package/dist/browser-cjs/src/core/providers/federated.d.ts +64 -0
  63. package/dist/browser-cjs/src/core/providers/github.d.ts +89 -0
  64. package/dist/browser-cjs/src/core/providers/google.d.ts +96 -0
  65. package/dist/browser-cjs/src/core/providers/oauth.d.ts +151 -0
  66. package/dist/browser-cjs/src/core/providers/saml.d.ts +62 -0
  67. package/dist/browser-cjs/src/core/providers/twitter.d.ts +103 -0
  68. package/dist/browser-cjs/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  69. package/dist/browser-cjs/src/core/strategies/action_code_settings.d.ts +19 -0
  70. package/dist/browser-cjs/src/core/strategies/anonymous.d.ts +32 -0
  71. package/dist/browser-cjs/src/core/strategies/credential.d.ts +64 -0
  72. package/dist/browser-cjs/src/core/strategies/custom_token.d.ts +37 -0
  73. package/dist/browser-cjs/src/core/strategies/email.d.ts +104 -0
  74. package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +139 -0
  75. package/dist/browser-cjs/src/core/strategies/email_link.d.ts +107 -0
  76. package/dist/browser-cjs/src/core/strategies/idp.d.ts +32 -0
  77. package/dist/browser-cjs/src/core/strategies/redirect.d.ts +36 -0
  78. package/dist/browser-cjs/src/core/user/account_info.d.ts +68 -0
  79. package/dist/browser-cjs/src/core/user/additional_user_info.d.ts +31 -0
  80. package/dist/browser-cjs/src/core/user/id_token_result.d.ts +48 -0
  81. package/dist/browser-cjs/src/core/user/invalidation.d.ts +18 -0
  82. package/dist/browser-cjs/src/core/user/link_unlink.d.ts +30 -0
  83. package/dist/browser-cjs/src/core/user/proactive_refresh.d.ts +34 -0
  84. package/dist/browser-cjs/src/core/user/reauthenticate.d.ts +20 -0
  85. package/dist/browser-cjs/src/core/user/reload.d.ts +29 -0
  86. package/dist/browser-cjs/src/core/user/token_manager.d.ts +50 -0
  87. package/dist/browser-cjs/src/core/user/user_credential_impl.d.ts +37 -0
  88. package/dist/browser-cjs/src/core/user/user_impl.d.ts +74 -0
  89. package/dist/browser-cjs/src/core/user/user_metadata.d.ts +27 -0
  90. package/dist/browser-cjs/src/core/util/assert.d.ts +94 -0
  91. package/dist/browser-cjs/src/core/util/browser.d.ts +50 -0
  92. package/dist/browser-cjs/src/core/util/delay.d.ts +31 -0
  93. package/dist/browser-cjs/src/core/util/emulator.d.ts +18 -0
  94. package/dist/browser-cjs/src/core/util/event_id.d.ts +17 -0
  95. package/dist/browser-cjs/src/core/util/fetch_provider.d.ts +25 -0
  96. package/dist/browser-cjs/src/core/util/handler.d.ts +20 -0
  97. package/dist/browser-cjs/src/core/util/instantiator.d.ts +28 -0
  98. package/dist/browser-cjs/src/core/util/location.d.ts +19 -0
  99. package/dist/browser-cjs/src/core/util/log.d.ts +23 -0
  100. package/dist/browser-cjs/src/core/util/navigator.d.ts +21 -0
  101. package/dist/browser-cjs/src/core/util/providers.d.ts +23 -0
  102. package/dist/browser-cjs/src/core/util/resolver.d.ts +25 -0
  103. package/dist/browser-cjs/src/core/util/time.d.ts +17 -0
  104. package/dist/browser-cjs/src/core/util/validate_origin.d.ts +18 -0
  105. package/dist/browser-cjs/src/core/util/version.d.ts +31 -0
  106. package/dist/browser-cjs/src/index.d.ts +18 -0
  107. package/dist/browser-cjs/src/mfa/assertions/totp.d.ts +124 -0
  108. package/dist/browser-cjs/src/mfa/index.d.ts +18 -0
  109. package/dist/browser-cjs/src/mfa/mfa_assertion.d.ts +27 -0
  110. package/dist/browser-cjs/src/mfa/mfa_error.d.ts +35 -0
  111. package/dist/browser-cjs/src/mfa/mfa_info.d.ts +36 -0
  112. package/dist/browser-cjs/src/mfa/mfa_resolver.d.ts +41 -0
  113. package/dist/browser-cjs/src/mfa/mfa_session.d.ts +39 -0
  114. package/dist/browser-cjs/src/mfa/mfa_user.d.ts +38 -0
  115. package/dist/browser-cjs/src/model/application_verifier.d.ts +23 -0
  116. package/dist/browser-cjs/src/model/auth.d.ts +90 -0
  117. package/dist/browser-cjs/src/model/enum_maps.d.ts +98 -0
  118. package/dist/browser-cjs/src/model/enums.d.ts +74 -0
  119. package/dist/browser-cjs/src/model/id_token.d.ts +87 -0
  120. package/dist/browser-cjs/src/model/password_policy.d.ts +111 -0
  121. package/dist/browser-cjs/src/model/popup_redirect.d.ts +94 -0
  122. package/dist/browser-cjs/src/model/public_types.d.ts +1291 -0
  123. package/dist/browser-cjs/src/model/user.d.ts +83 -0
  124. package/dist/browser-cjs/src/platform_browser/auth_window.d.ts +37 -0
  125. package/dist/browser-cjs/src/platform_browser/iframe/gapi.d.ts +19 -0
  126. package/dist/browser-cjs/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  127. package/dist/browser-cjs/src/platform_browser/iframe/iframe.d.ts +18 -0
  128. package/dist/browser-cjs/src/platform_browser/index.d.ts +27 -0
  129. package/dist/browser-cjs/src/platform_browser/load_js.d.ts +29 -0
  130. package/dist/browser-cjs/src/platform_browser/messagechannel/index.d.ts +87 -0
  131. package/dist/browser-cjs/src/platform_browser/messagechannel/promise.d.ts +33 -0
  132. package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  133. package/dist/browser-cjs/src/platform_browser/messagechannel/sender.d.ts +46 -0
  134. package/dist/browser-cjs/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  135. package/dist/browser-cjs/src/platform_browser/persistence/browser.d.ts +27 -0
  136. package/dist/browser-cjs/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  137. package/dist/browser-cjs/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  138. package/dist/browser-cjs/src/platform_browser/persistence/local_storage.d.ts +25 -0
  139. package/dist/browser-cjs/src/platform_browser/persistence/session_storage.d.ts +24 -0
  140. package/dist/browser-cjs/src/platform_browser/popup_redirect.d.ts +27 -0
  141. package/dist/browser-cjs/src/platform_browser/providers/phone.d.ts +154 -0
  142. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  143. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  144. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  145. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  146. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  147. package/dist/browser-cjs/src/platform_browser/strategies/phone.d.ts +116 -0
  148. package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +109 -0
  149. package/dist/browser-cjs/src/platform_browser/strategies/redirect.d.ts +176 -0
  150. package/dist/browser-cjs/src/platform_browser/util/popup.d.ts +24 -0
  151. package/dist/browser-cjs/src/platform_browser/util/worker.d.ts +20 -0
  152. package/dist/browser-cjs/src/platform_cordova/plugins.d.ts +42 -0
  153. package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  154. package/dist/browser-cjs/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  155. package/dist/browser-cjs/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  156. package/dist/browser-cjs/src/platform_cordova/strategies/redirect.d.ts +20 -0
  157. package/dist/browser-cjs/src/platform_node/index.d.ts +51 -0
  158. package/dist/browser-cjs/src/platform_react_native/persistence/react_native.d.ts +25 -0
  159. package/dist/browser-cjs/test/helpers/api/helper.d.ts +22 -0
  160. package/dist/browser-cjs/test/helpers/delay.d.ts +20 -0
  161. package/dist/browser-cjs/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  162. package/dist/browser-cjs/test/helpers/fake_service_worker.d.ts +22 -0
  163. package/dist/browser-cjs/test/helpers/id_token_response.d.ts +18 -0
  164. package/dist/browser-cjs/test/helpers/iframe_event.d.ts +19 -0
  165. package/dist/browser-cjs/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  166. package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +32 -0
  167. package/dist/browser-cjs/test/helpers/integration/settings.d.ts +23 -0
  168. package/dist/browser-cjs/test/helpers/jwt.d.ts +17 -0
  169. package/dist/browser-cjs/test/helpers/mock_auth.d.ts +47 -0
  170. package/dist/browser-cjs/test/helpers/mock_auth_credential.d.ts +31 -0
  171. package/dist/browser-cjs/test/helpers/mock_fetch.d.ts +31 -0
  172. package/dist/browser-cjs/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  173. package/dist/browser-cjs/test/helpers/redirect_persistence.d.ts +24 -0
  174. package/dist/browser-cjs/test/helpers/timeout_stub.d.ts +34 -0
  175. package/dist/browser-cjs/test/integration/flows/middleware_test_generator.d.ts +18 -0
  176. package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  177. package/dist/browser-cjs/test/integration/webdriver/util/functions.d.ts +81 -0
  178. package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +31 -0
  179. package/dist/browser-cjs/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  180. package/dist/browser-cjs/test/integration/webdriver/util/test_runner.d.ts +19 -0
  181. package/dist/browser-cjs/test/integration/webdriver/util/test_server.d.ts +27 -0
  182. package/dist/browser-cjs/test/integration/webdriver/util/ui_page.d.ts +33 -0
  183. package/dist/cordova/auth-cordova-public.d.ts +3397 -0
  184. package/dist/cordova/auth-cordova.d.ts +3948 -0
  185. package/dist/cordova/index.cordova.d.ts +32 -0
  186. package/dist/cordova/index.d.ts +38 -0
  187. package/dist/cordova/index.doc.d.ts +24 -0
  188. package/dist/cordova/index.js +63 -0
  189. package/dist/cordova/index.js.map +1 -0
  190. package/dist/cordova/index.node.d.ts +17 -0
  191. package/dist/cordova/index.rn.d.ts +40 -0
  192. package/dist/cordova/index.shared.d.ts +19 -0
  193. package/dist/cordova/index.web-extension.d.ts +31 -0
  194. package/dist/cordova/index.webworker.d.ts +21 -0
  195. package/dist/cordova/internal/index.d.ts +42 -0
  196. package/dist/cordova/internal.js +1986 -0
  197. package/dist/cordova/internal.js.map +1 -0
  198. package/dist/cordova/popup_redirect-29c7321e.js +9735 -0
  199. package/dist/cordova/popup_redirect-29c7321e.js.map +1 -0
  200. package/dist/cordova/scripts/run_node_tests.d.ts +17 -0
  201. package/dist/cordova/src/api/account_management/account.d.ts +59 -0
  202. package/dist/cordova/src/api/account_management/email_and_password.d.ts +49 -0
  203. package/dist/cordova/src/api/account_management/mfa.d.ts +107 -0
  204. package/dist/cordova/src/api/account_management/profile.d.ts +29 -0
  205. package/dist/cordova/src/api/authentication/create_auth_uri.d.ts +26 -0
  206. package/dist/cordova/src/api/authentication/custom_token.d.ts +26 -0
  207. package/dist/cordova/src/api/authentication/email_and_password.d.ts +86 -0
  208. package/dist/cordova/src/api/authentication/email_link.d.ts +32 -0
  209. package/dist/cordova/src/api/authentication/idp.d.ts +40 -0
  210. package/dist/cordova/src/api/authentication/mfa.d.ts +73 -0
  211. package/dist/cordova/src/api/authentication/recaptcha.d.ts +34 -0
  212. package/dist/cordova/src/api/authentication/sign_up.d.ts +34 -0
  213. package/dist/cordova/src/api/authentication/sms.d.ts +54 -0
  214. package/dist/cordova/src/api/authentication/token.d.ts +37 -0
  215. package/dist/cordova/src/api/errors.d.ts +129 -0
  216. package/dist/cordova/src/api/index.d.ts +101 -0
  217. package/dist/cordova/src/api/password_policy/get_password_policy.d.ts +48 -0
  218. package/dist/cordova/src/api/project_config/get_project_config.d.ts +25 -0
  219. package/dist/cordova/src/core/action_code_url.d.ts +73 -0
  220. package/dist/cordova/src/core/auth/auth_event_manager.d.ts +34 -0
  221. package/dist/cordova/src/core/auth/auth_impl.d.ts +133 -0
  222. package/dist/cordova/src/core/auth/emulator.d.ts +42 -0
  223. package/dist/cordova/src/core/auth/firebase_internal.d.ts +35 -0
  224. package/dist/cordova/src/core/auth/initialize.d.ts +46 -0
  225. package/dist/cordova/src/core/auth/middleware.d.ts +25 -0
  226. package/dist/cordova/src/core/auth/password_policy_impl.d.ts +59 -0
  227. package/dist/cordova/src/core/auth/register.d.ts +23 -0
  228. package/dist/cordova/src/core/credentials/auth_credential.d.ts +75 -0
  229. package/dist/cordova/src/core/credentials/email.d.ts +60 -0
  230. package/dist/cordova/src/core/credentials/index.d.ts +23 -0
  231. package/dist/cordova/src/core/credentials/oauth.d.ts +81 -0
  232. package/dist/cordova/src/core/credentials/phone.d.ts +52 -0
  233. package/dist/cordova/src/core/credentials/saml.d.ts +52 -0
  234. package/dist/cordova/src/core/errors.d.ts +328 -0
  235. package/dist/cordova/src/core/index.d.ts +230 -0
  236. package/dist/cordova/src/core/persistence/in_memory.d.ts +35 -0
  237. package/dist/cordova/src/core/persistence/index.d.ts +42 -0
  238. package/dist/cordova/src/core/persistence/persistence_user_manager.d.ts +45 -0
  239. package/dist/cordova/src/core/providers/email.d.ts +83 -0
  240. package/dist/cordova/src/core/providers/facebook.d.ts +93 -0
  241. package/dist/cordova/src/core/providers/federated.d.ts +64 -0
  242. package/dist/cordova/src/core/providers/github.d.ts +89 -0
  243. package/dist/cordova/src/core/providers/google.d.ts +96 -0
  244. package/dist/cordova/src/core/providers/oauth.d.ts +151 -0
  245. package/dist/cordova/src/core/providers/saml.d.ts +62 -0
  246. package/dist/cordova/src/core/providers/twitter.d.ts +103 -0
  247. package/dist/cordova/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  248. package/dist/cordova/src/core/strategies/action_code_settings.d.ts +19 -0
  249. package/dist/cordova/src/core/strategies/anonymous.d.ts +32 -0
  250. package/dist/cordova/src/core/strategies/credential.d.ts +64 -0
  251. package/dist/cordova/src/core/strategies/custom_token.d.ts +37 -0
  252. package/dist/cordova/src/core/strategies/email.d.ts +104 -0
  253. package/dist/cordova/src/core/strategies/email_and_password.d.ts +139 -0
  254. package/dist/cordova/src/core/strategies/email_link.d.ts +107 -0
  255. package/dist/cordova/src/core/strategies/idp.d.ts +32 -0
  256. package/dist/cordova/src/core/strategies/redirect.d.ts +36 -0
  257. package/dist/cordova/src/core/user/account_info.d.ts +68 -0
  258. package/dist/cordova/src/core/user/additional_user_info.d.ts +31 -0
  259. package/dist/cordova/src/core/user/id_token_result.d.ts +48 -0
  260. package/dist/cordova/src/core/user/invalidation.d.ts +18 -0
  261. package/dist/cordova/src/core/user/link_unlink.d.ts +30 -0
  262. package/dist/cordova/src/core/user/proactive_refresh.d.ts +34 -0
  263. package/dist/cordova/src/core/user/reauthenticate.d.ts +20 -0
  264. package/dist/cordova/src/core/user/reload.d.ts +29 -0
  265. package/dist/cordova/src/core/user/token_manager.d.ts +50 -0
  266. package/dist/cordova/src/core/user/user_credential_impl.d.ts +37 -0
  267. package/dist/cordova/src/core/user/user_impl.d.ts +74 -0
  268. package/dist/cordova/src/core/user/user_metadata.d.ts +27 -0
  269. package/dist/cordova/src/core/util/assert.d.ts +94 -0
  270. package/dist/cordova/src/core/util/browser.d.ts +50 -0
  271. package/dist/cordova/src/core/util/delay.d.ts +31 -0
  272. package/dist/cordova/src/core/util/emulator.d.ts +18 -0
  273. package/dist/cordova/src/core/util/event_id.d.ts +17 -0
  274. package/dist/cordova/src/core/util/fetch_provider.d.ts +25 -0
  275. package/dist/cordova/src/core/util/handler.d.ts +20 -0
  276. package/dist/cordova/src/core/util/instantiator.d.ts +28 -0
  277. package/dist/cordova/src/core/util/location.d.ts +19 -0
  278. package/dist/cordova/src/core/util/log.d.ts +23 -0
  279. package/dist/cordova/src/core/util/navigator.d.ts +21 -0
  280. package/dist/cordova/src/core/util/providers.d.ts +23 -0
  281. package/dist/cordova/src/core/util/resolver.d.ts +25 -0
  282. package/dist/cordova/src/core/util/time.d.ts +17 -0
  283. package/dist/cordova/src/core/util/validate_origin.d.ts +18 -0
  284. package/dist/cordova/src/core/util/version.d.ts +31 -0
  285. package/dist/cordova/src/index.d.ts +18 -0
  286. package/dist/cordova/src/mfa/assertions/totp.d.ts +124 -0
  287. package/dist/cordova/src/mfa/index.d.ts +18 -0
  288. package/dist/cordova/src/mfa/mfa_assertion.d.ts +27 -0
  289. package/dist/cordova/src/mfa/mfa_error.d.ts +35 -0
  290. package/dist/cordova/src/mfa/mfa_info.d.ts +36 -0
  291. package/dist/cordova/src/mfa/mfa_resolver.d.ts +41 -0
  292. package/dist/cordova/src/mfa/mfa_session.d.ts +39 -0
  293. package/dist/cordova/src/mfa/mfa_user.d.ts +38 -0
  294. package/dist/cordova/src/model/application_verifier.d.ts +23 -0
  295. package/dist/cordova/src/model/auth.d.ts +90 -0
  296. package/dist/cordova/src/model/enum_maps.d.ts +98 -0
  297. package/dist/cordova/src/model/enums.d.ts +74 -0
  298. package/dist/cordova/src/model/id_token.d.ts +87 -0
  299. package/dist/cordova/src/model/password_policy.d.ts +111 -0
  300. package/dist/cordova/src/model/popup_redirect.d.ts +94 -0
  301. package/dist/cordova/src/model/public_types.d.ts +1291 -0
  302. package/dist/cordova/src/model/user.d.ts +83 -0
  303. package/dist/cordova/src/platform_browser/auth_window.d.ts +37 -0
  304. package/dist/cordova/src/platform_browser/iframe/gapi.d.ts +19 -0
  305. package/dist/cordova/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  306. package/dist/cordova/src/platform_browser/iframe/iframe.d.ts +18 -0
  307. package/dist/cordova/src/platform_browser/index.d.ts +27 -0
  308. package/dist/cordova/src/platform_browser/load_js.d.ts +29 -0
  309. package/dist/cordova/src/platform_browser/messagechannel/index.d.ts +87 -0
  310. package/dist/cordova/src/platform_browser/messagechannel/promise.d.ts +33 -0
  311. package/dist/cordova/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  312. package/dist/cordova/src/platform_browser/messagechannel/sender.d.ts +46 -0
  313. package/dist/cordova/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  314. package/dist/cordova/src/platform_browser/persistence/browser.d.ts +27 -0
  315. package/dist/cordova/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  316. package/dist/cordova/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  317. package/dist/cordova/src/platform_browser/persistence/local_storage.d.ts +25 -0
  318. package/dist/cordova/src/platform_browser/persistence/session_storage.d.ts +24 -0
  319. package/dist/cordova/src/platform_browser/popup_redirect.d.ts +27 -0
  320. package/dist/cordova/src/platform_browser/providers/phone.d.ts +154 -0
  321. package/dist/cordova/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  322. package/dist/cordova/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  323. package/dist/cordova/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  324. package/dist/cordova/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  325. package/dist/cordova/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  326. package/dist/cordova/src/platform_browser/strategies/phone.d.ts +116 -0
  327. package/dist/cordova/src/platform_browser/strategies/popup.d.ts +109 -0
  328. package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +176 -0
  329. package/dist/cordova/src/platform_browser/util/popup.d.ts +24 -0
  330. package/dist/cordova/src/platform_browser/util/worker.d.ts +20 -0
  331. package/dist/cordova/src/platform_cordova/plugins.d.ts +42 -0
  332. package/dist/cordova/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  333. package/dist/cordova/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  334. package/dist/cordova/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  335. package/dist/cordova/src/platform_cordova/strategies/redirect.d.ts +20 -0
  336. package/dist/cordova/src/platform_node/index.d.ts +51 -0
  337. package/dist/cordova/src/platform_react_native/persistence/react_native.d.ts +25 -0
  338. package/dist/cordova/test/helpers/api/helper.d.ts +22 -0
  339. package/dist/cordova/test/helpers/delay.d.ts +20 -0
  340. package/dist/cordova/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  341. package/dist/cordova/test/helpers/fake_service_worker.d.ts +22 -0
  342. package/dist/cordova/test/helpers/id_token_response.d.ts +18 -0
  343. package/dist/cordova/test/helpers/iframe_event.d.ts +19 -0
  344. package/dist/cordova/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  345. package/dist/cordova/test/helpers/integration/helpers.d.ts +32 -0
  346. package/dist/cordova/test/helpers/integration/settings.d.ts +23 -0
  347. package/dist/cordova/test/helpers/jwt.d.ts +17 -0
  348. package/dist/cordova/test/helpers/mock_auth.d.ts +47 -0
  349. package/dist/cordova/test/helpers/mock_auth_credential.d.ts +31 -0
  350. package/dist/cordova/test/helpers/mock_fetch.d.ts +31 -0
  351. package/dist/cordova/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  352. package/dist/cordova/test/helpers/redirect_persistence.d.ts +24 -0
  353. package/dist/cordova/test/helpers/timeout_stub.d.ts +34 -0
  354. package/dist/cordova/test/integration/flows/middleware_test_generator.d.ts +18 -0
  355. package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  356. package/dist/cordova/test/integration/webdriver/util/functions.d.ts +81 -0
  357. package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +31 -0
  358. package/dist/cordova/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  359. package/dist/cordova/test/integration/webdriver/util/test_runner.d.ts +19 -0
  360. package/dist/cordova/test/integration/webdriver/util/test_server.d.ts +27 -0
  361. package/dist/cordova/test/integration/webdriver/util/ui_page.d.ts +33 -0
  362. package/dist/cordova/tsdoc-metadata.json +11 -0
  363. package/dist/esm/index-3398f4bb.js +11156 -0
  364. package/dist/esm/index-3398f4bb.js.map +1 -0
  365. package/dist/esm/index.cordova.d.ts +32 -0
  366. package/dist/esm/index.d.ts +38 -0
  367. package/dist/esm/index.doc.d.ts +24 -0
  368. package/dist/esm/index.js +6 -0
  369. package/dist/esm/index.js.map +1 -0
  370. package/dist/esm/index.node.d.ts +17 -0
  371. package/dist/esm/index.rn.d.ts +40 -0
  372. package/dist/esm/index.shared.d.ts +19 -0
  373. package/dist/esm/index.web-extension.d.ts +31 -0
  374. package/dist/esm/index.webworker.d.ts +21 -0
  375. package/dist/esm/internal/index.d.ts +42 -0
  376. package/dist/esm/internal.js +565 -0
  377. package/dist/esm/internal.js.map +1 -0
  378. package/dist/esm/scripts/run_node_tests.d.ts +17 -0
  379. package/dist/esm/src/api/account_management/account.d.ts +59 -0
  380. package/dist/esm/src/api/account_management/email_and_password.d.ts +49 -0
  381. package/dist/esm/src/api/account_management/mfa.d.ts +107 -0
  382. package/dist/esm/src/api/account_management/profile.d.ts +29 -0
  383. package/dist/esm/src/api/authentication/create_auth_uri.d.ts +26 -0
  384. package/dist/esm/src/api/authentication/custom_token.d.ts +26 -0
  385. package/dist/esm/src/api/authentication/email_and_password.d.ts +86 -0
  386. package/dist/esm/src/api/authentication/email_link.d.ts +32 -0
  387. package/dist/esm/src/api/authentication/idp.d.ts +40 -0
  388. package/dist/esm/src/api/authentication/mfa.d.ts +73 -0
  389. package/dist/esm/src/api/authentication/recaptcha.d.ts +34 -0
  390. package/dist/esm/src/api/authentication/sign_up.d.ts +34 -0
  391. package/dist/esm/src/api/authentication/sms.d.ts +54 -0
  392. package/dist/esm/src/api/authentication/token.d.ts +37 -0
  393. package/dist/esm/src/api/errors.d.ts +129 -0
  394. package/dist/esm/src/api/index.d.ts +101 -0
  395. package/dist/esm/src/api/password_policy/get_password_policy.d.ts +48 -0
  396. package/dist/esm/src/api/project_config/get_project_config.d.ts +25 -0
  397. package/dist/esm/src/core/action_code_url.d.ts +73 -0
  398. package/dist/esm/src/core/auth/auth_event_manager.d.ts +34 -0
  399. package/dist/esm/src/core/auth/auth_impl.d.ts +133 -0
  400. package/dist/esm/src/core/auth/emulator.d.ts +42 -0
  401. package/dist/esm/src/core/auth/firebase_internal.d.ts +35 -0
  402. package/dist/esm/src/core/auth/initialize.d.ts +46 -0
  403. package/dist/esm/src/core/auth/middleware.d.ts +25 -0
  404. package/dist/esm/src/core/auth/password_policy_impl.d.ts +59 -0
  405. package/dist/esm/src/core/auth/register.d.ts +23 -0
  406. package/dist/esm/src/core/credentials/auth_credential.d.ts +75 -0
  407. package/dist/esm/src/core/credentials/email.d.ts +60 -0
  408. package/dist/esm/src/core/credentials/index.d.ts +23 -0
  409. package/dist/esm/src/core/credentials/oauth.d.ts +81 -0
  410. package/dist/esm/src/core/credentials/phone.d.ts +52 -0
  411. package/dist/esm/src/core/credentials/saml.d.ts +52 -0
  412. package/dist/esm/src/core/errors.d.ts +328 -0
  413. package/dist/esm/src/core/index.d.ts +230 -0
  414. package/dist/esm/src/core/persistence/in_memory.d.ts +35 -0
  415. package/dist/esm/src/core/persistence/index.d.ts +42 -0
  416. package/dist/esm/src/core/persistence/persistence_user_manager.d.ts +45 -0
  417. package/dist/esm/src/core/providers/email.d.ts +83 -0
  418. package/dist/esm/src/core/providers/facebook.d.ts +93 -0
  419. package/dist/esm/src/core/providers/federated.d.ts +64 -0
  420. package/dist/esm/src/core/providers/github.d.ts +89 -0
  421. package/dist/esm/src/core/providers/google.d.ts +96 -0
  422. package/dist/esm/src/core/providers/oauth.d.ts +151 -0
  423. package/dist/esm/src/core/providers/saml.d.ts +62 -0
  424. package/dist/esm/src/core/providers/twitter.d.ts +103 -0
  425. package/dist/esm/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  426. package/dist/esm/src/core/strategies/action_code_settings.d.ts +19 -0
  427. package/dist/esm/src/core/strategies/anonymous.d.ts +32 -0
  428. package/dist/esm/src/core/strategies/credential.d.ts +64 -0
  429. package/dist/esm/src/core/strategies/custom_token.d.ts +37 -0
  430. package/dist/esm/src/core/strategies/email.d.ts +104 -0
  431. package/dist/esm/src/core/strategies/email_and_password.d.ts +139 -0
  432. package/dist/esm/src/core/strategies/email_link.d.ts +107 -0
  433. package/dist/esm/src/core/strategies/idp.d.ts +32 -0
  434. package/dist/esm/src/core/strategies/redirect.d.ts +36 -0
  435. package/dist/esm/src/core/user/account_info.d.ts +68 -0
  436. package/dist/esm/src/core/user/additional_user_info.d.ts +31 -0
  437. package/dist/esm/src/core/user/id_token_result.d.ts +48 -0
  438. package/dist/esm/src/core/user/invalidation.d.ts +18 -0
  439. package/dist/esm/src/core/user/link_unlink.d.ts +30 -0
  440. package/dist/esm/src/core/user/proactive_refresh.d.ts +34 -0
  441. package/dist/esm/src/core/user/reauthenticate.d.ts +20 -0
  442. package/dist/esm/src/core/user/reload.d.ts +29 -0
  443. package/dist/esm/src/core/user/token_manager.d.ts +50 -0
  444. package/dist/esm/src/core/user/user_credential_impl.d.ts +37 -0
  445. package/dist/esm/src/core/user/user_impl.d.ts +74 -0
  446. package/dist/esm/src/core/user/user_metadata.d.ts +27 -0
  447. package/dist/esm/src/core/util/assert.d.ts +94 -0
  448. package/dist/esm/src/core/util/browser.d.ts +50 -0
  449. package/dist/esm/src/core/util/delay.d.ts +31 -0
  450. package/dist/esm/src/core/util/emulator.d.ts +18 -0
  451. package/dist/esm/src/core/util/event_id.d.ts +17 -0
  452. package/dist/esm/src/core/util/fetch_provider.d.ts +25 -0
  453. package/dist/esm/src/core/util/handler.d.ts +20 -0
  454. package/dist/esm/src/core/util/instantiator.d.ts +28 -0
  455. package/dist/esm/src/core/util/location.d.ts +19 -0
  456. package/dist/esm/src/core/util/log.d.ts +23 -0
  457. package/dist/esm/src/core/util/navigator.d.ts +21 -0
  458. package/dist/esm/src/core/util/providers.d.ts +23 -0
  459. package/dist/esm/src/core/util/resolver.d.ts +25 -0
  460. package/dist/esm/src/core/util/time.d.ts +17 -0
  461. package/dist/esm/src/core/util/validate_origin.d.ts +18 -0
  462. package/dist/esm/src/core/util/version.d.ts +31 -0
  463. package/dist/esm/src/index.d.ts +18 -0
  464. package/dist/esm/src/mfa/assertions/totp.d.ts +124 -0
  465. package/dist/esm/src/mfa/index.d.ts +18 -0
  466. package/dist/esm/src/mfa/mfa_assertion.d.ts +27 -0
  467. package/dist/esm/src/mfa/mfa_error.d.ts +35 -0
  468. package/dist/esm/src/mfa/mfa_info.d.ts +36 -0
  469. package/dist/esm/src/mfa/mfa_resolver.d.ts +41 -0
  470. package/dist/esm/src/mfa/mfa_session.d.ts +39 -0
  471. package/dist/esm/src/mfa/mfa_user.d.ts +38 -0
  472. package/dist/esm/src/model/application_verifier.d.ts +23 -0
  473. package/dist/esm/src/model/auth.d.ts +90 -0
  474. package/dist/esm/src/model/enum_maps.d.ts +98 -0
  475. package/dist/esm/src/model/enums.d.ts +74 -0
  476. package/dist/esm/src/model/id_token.d.ts +87 -0
  477. package/dist/esm/src/model/password_policy.d.ts +111 -0
  478. package/dist/esm/src/model/popup_redirect.d.ts +94 -0
  479. package/dist/esm/src/model/public_types.d.ts +1291 -0
  480. package/dist/esm/src/model/user.d.ts +83 -0
  481. package/dist/esm/src/platform_browser/auth_window.d.ts +37 -0
  482. package/dist/esm/src/platform_browser/iframe/gapi.d.ts +19 -0
  483. package/dist/esm/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  484. package/dist/esm/src/platform_browser/iframe/iframe.d.ts +18 -0
  485. package/dist/esm/src/platform_browser/index.d.ts +27 -0
  486. package/dist/esm/src/platform_browser/load_js.d.ts +29 -0
  487. package/dist/esm/src/platform_browser/messagechannel/index.d.ts +87 -0
  488. package/dist/esm/src/platform_browser/messagechannel/promise.d.ts +33 -0
  489. package/dist/esm/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  490. package/dist/esm/src/platform_browser/messagechannel/sender.d.ts +46 -0
  491. package/dist/esm/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  492. package/dist/esm/src/platform_browser/persistence/browser.d.ts +27 -0
  493. package/dist/esm/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  494. package/dist/esm/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  495. package/dist/esm/src/platform_browser/persistence/local_storage.d.ts +25 -0
  496. package/dist/esm/src/platform_browser/persistence/session_storage.d.ts +24 -0
  497. package/dist/esm/src/platform_browser/popup_redirect.d.ts +27 -0
  498. package/dist/esm/src/platform_browser/providers/phone.d.ts +154 -0
  499. package/dist/esm/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  500. package/dist/esm/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  501. package/dist/esm/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  502. package/dist/esm/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  503. package/dist/esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  504. package/dist/esm/src/platform_browser/strategies/phone.d.ts +116 -0
  505. package/dist/esm/src/platform_browser/strategies/popup.d.ts +109 -0
  506. package/dist/esm/src/platform_browser/strategies/redirect.d.ts +176 -0
  507. package/dist/esm/src/platform_browser/util/popup.d.ts +24 -0
  508. package/dist/esm/src/platform_browser/util/worker.d.ts +20 -0
  509. package/dist/esm/src/platform_cordova/plugins.d.ts +42 -0
  510. package/dist/esm/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  511. package/dist/esm/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  512. package/dist/esm/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  513. package/dist/esm/src/platform_cordova/strategies/redirect.d.ts +20 -0
  514. package/dist/esm/src/platform_node/index.d.ts +51 -0
  515. package/dist/esm/src/platform_react_native/persistence/react_native.d.ts +25 -0
  516. package/dist/esm/test/helpers/api/helper.d.ts +22 -0
  517. package/dist/esm/test/helpers/delay.d.ts +20 -0
  518. package/dist/esm/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  519. package/dist/esm/test/helpers/fake_service_worker.d.ts +22 -0
  520. package/dist/esm/test/helpers/id_token_response.d.ts +18 -0
  521. package/dist/esm/test/helpers/iframe_event.d.ts +19 -0
  522. package/dist/esm/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  523. package/dist/esm/test/helpers/integration/helpers.d.ts +32 -0
  524. package/dist/esm/test/helpers/integration/settings.d.ts +23 -0
  525. package/dist/esm/test/helpers/jwt.d.ts +17 -0
  526. package/dist/esm/test/helpers/mock_auth.d.ts +47 -0
  527. package/dist/esm/test/helpers/mock_auth_credential.d.ts +31 -0
  528. package/dist/esm/test/helpers/mock_fetch.d.ts +31 -0
  529. package/dist/esm/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  530. package/dist/esm/test/helpers/redirect_persistence.d.ts +24 -0
  531. package/dist/esm/test/helpers/timeout_stub.d.ts +34 -0
  532. package/dist/esm/test/integration/flows/middleware_test_generator.d.ts +18 -0
  533. package/dist/esm/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  534. package/dist/esm/test/integration/webdriver/util/functions.d.ts +81 -0
  535. package/dist/esm/test/integration/webdriver/util/idp_page.d.ts +31 -0
  536. package/dist/esm/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  537. package/dist/esm/test/integration/webdriver/util/test_runner.d.ts +19 -0
  538. package/dist/esm/test/integration/webdriver/util/test_server.d.ts +27 -0
  539. package/dist/esm/test/integration/webdriver/util/ui_page.d.ts +33 -0
  540. package/dist/index.cordova.d.ts +32 -0
  541. package/dist/index.d.ts +38 -0
  542. package/dist/index.doc.d.ts +24 -0
  543. package/dist/index.node.d.ts +17 -0
  544. package/dist/index.rn.d.ts +40 -0
  545. package/dist/index.shared.d.ts +19 -0
  546. package/dist/index.web-extension.d.ts +31 -0
  547. package/dist/index.webworker.d.ts +21 -0
  548. package/dist/index.webworker.js +8021 -0
  549. package/dist/index.webworker.js.map +1 -0
  550. package/dist/internal/index.d.ts +42 -0
  551. package/dist/node/index.cordova.d.ts +32 -0
  552. package/dist/node/index.d.ts +38 -0
  553. package/dist/node/index.doc.d.ts +24 -0
  554. package/dist/node/index.js +98 -0
  555. package/dist/node/index.js.map +1 -0
  556. package/dist/node/index.node.d.ts +17 -0
  557. package/dist/node/index.rn.d.ts +40 -0
  558. package/dist/node/index.shared.d.ts +19 -0
  559. package/dist/node/index.web-extension.d.ts +31 -0
  560. package/dist/node/index.webworker.d.ts +21 -0
  561. package/dist/node/internal/index.d.ts +42 -0
  562. package/dist/node/internal.js +1543 -0
  563. package/dist/node/internal.js.map +1 -0
  564. package/dist/node/scripts/run_node_tests.d.ts +17 -0
  565. package/dist/node/src/api/account_management/account.d.ts +59 -0
  566. package/dist/node/src/api/account_management/email_and_password.d.ts +49 -0
  567. package/dist/node/src/api/account_management/mfa.d.ts +107 -0
  568. package/dist/node/src/api/account_management/profile.d.ts +29 -0
  569. package/dist/node/src/api/authentication/create_auth_uri.d.ts +26 -0
  570. package/dist/node/src/api/authentication/custom_token.d.ts +26 -0
  571. package/dist/node/src/api/authentication/email_and_password.d.ts +86 -0
  572. package/dist/node/src/api/authentication/email_link.d.ts +32 -0
  573. package/dist/node/src/api/authentication/idp.d.ts +40 -0
  574. package/dist/node/src/api/authentication/mfa.d.ts +73 -0
  575. package/dist/node/src/api/authentication/recaptcha.d.ts +34 -0
  576. package/dist/node/src/api/authentication/sign_up.d.ts +34 -0
  577. package/dist/node/src/api/authentication/sms.d.ts +54 -0
  578. package/dist/node/src/api/authentication/token.d.ts +37 -0
  579. package/dist/node/src/api/errors.d.ts +129 -0
  580. package/dist/node/src/api/index.d.ts +101 -0
  581. package/dist/node/src/api/password_policy/get_password_policy.d.ts +48 -0
  582. package/dist/node/src/api/project_config/get_project_config.d.ts +25 -0
  583. package/dist/node/src/core/action_code_url.d.ts +73 -0
  584. package/dist/node/src/core/auth/auth_event_manager.d.ts +34 -0
  585. package/dist/node/src/core/auth/auth_impl.d.ts +133 -0
  586. package/dist/node/src/core/auth/emulator.d.ts +42 -0
  587. package/dist/node/src/core/auth/firebase_internal.d.ts +35 -0
  588. package/dist/node/src/core/auth/initialize.d.ts +46 -0
  589. package/dist/node/src/core/auth/middleware.d.ts +25 -0
  590. package/dist/node/src/core/auth/password_policy_impl.d.ts +59 -0
  591. package/dist/node/src/core/auth/register.d.ts +23 -0
  592. package/dist/node/src/core/credentials/auth_credential.d.ts +75 -0
  593. package/dist/node/src/core/credentials/email.d.ts +60 -0
  594. package/dist/node/src/core/credentials/index.d.ts +23 -0
  595. package/dist/node/src/core/credentials/oauth.d.ts +81 -0
  596. package/dist/node/src/core/credentials/phone.d.ts +52 -0
  597. package/dist/node/src/core/credentials/saml.d.ts +52 -0
  598. package/dist/node/src/core/errors.d.ts +328 -0
  599. package/dist/node/src/core/index.d.ts +230 -0
  600. package/dist/node/src/core/persistence/in_memory.d.ts +35 -0
  601. package/dist/node/src/core/persistence/index.d.ts +42 -0
  602. package/dist/node/src/core/persistence/persistence_user_manager.d.ts +45 -0
  603. package/dist/node/src/core/providers/email.d.ts +83 -0
  604. package/dist/node/src/core/providers/facebook.d.ts +93 -0
  605. package/dist/node/src/core/providers/federated.d.ts +64 -0
  606. package/dist/node/src/core/providers/github.d.ts +89 -0
  607. package/dist/node/src/core/providers/google.d.ts +96 -0
  608. package/dist/node/src/core/providers/oauth.d.ts +151 -0
  609. package/dist/node/src/core/providers/saml.d.ts +62 -0
  610. package/dist/node/src/core/providers/twitter.d.ts +103 -0
  611. package/dist/node/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  612. package/dist/node/src/core/strategies/action_code_settings.d.ts +19 -0
  613. package/dist/node/src/core/strategies/anonymous.d.ts +32 -0
  614. package/dist/node/src/core/strategies/credential.d.ts +64 -0
  615. package/dist/node/src/core/strategies/custom_token.d.ts +37 -0
  616. package/dist/node/src/core/strategies/email.d.ts +104 -0
  617. package/dist/node/src/core/strategies/email_and_password.d.ts +139 -0
  618. package/dist/node/src/core/strategies/email_link.d.ts +107 -0
  619. package/dist/node/src/core/strategies/idp.d.ts +32 -0
  620. package/dist/node/src/core/strategies/redirect.d.ts +36 -0
  621. package/dist/node/src/core/user/account_info.d.ts +68 -0
  622. package/dist/node/src/core/user/additional_user_info.d.ts +31 -0
  623. package/dist/node/src/core/user/id_token_result.d.ts +48 -0
  624. package/dist/node/src/core/user/invalidation.d.ts +18 -0
  625. package/dist/node/src/core/user/link_unlink.d.ts +30 -0
  626. package/dist/node/src/core/user/proactive_refresh.d.ts +34 -0
  627. package/dist/node/src/core/user/reauthenticate.d.ts +20 -0
  628. package/dist/node/src/core/user/reload.d.ts +29 -0
  629. package/dist/node/src/core/user/token_manager.d.ts +50 -0
  630. package/dist/node/src/core/user/user_credential_impl.d.ts +37 -0
  631. package/dist/node/src/core/user/user_impl.d.ts +74 -0
  632. package/dist/node/src/core/user/user_metadata.d.ts +27 -0
  633. package/dist/node/src/core/util/assert.d.ts +94 -0
  634. package/dist/node/src/core/util/browser.d.ts +50 -0
  635. package/dist/node/src/core/util/delay.d.ts +31 -0
  636. package/dist/node/src/core/util/emulator.d.ts +18 -0
  637. package/dist/node/src/core/util/event_id.d.ts +17 -0
  638. package/dist/node/src/core/util/fetch_provider.d.ts +25 -0
  639. package/dist/node/src/core/util/handler.d.ts +20 -0
  640. package/dist/node/src/core/util/instantiator.d.ts +28 -0
  641. package/dist/node/src/core/util/location.d.ts +19 -0
  642. package/dist/node/src/core/util/log.d.ts +23 -0
  643. package/dist/node/src/core/util/navigator.d.ts +21 -0
  644. package/dist/node/src/core/util/providers.d.ts +23 -0
  645. package/dist/node/src/core/util/resolver.d.ts +25 -0
  646. package/dist/node/src/core/util/time.d.ts +17 -0
  647. package/dist/node/src/core/util/validate_origin.d.ts +18 -0
  648. package/dist/node/src/core/util/version.d.ts +31 -0
  649. package/dist/node/src/index.d.ts +18 -0
  650. package/dist/node/src/mfa/assertions/totp.d.ts +124 -0
  651. package/dist/node/src/mfa/index.d.ts +18 -0
  652. package/dist/node/src/mfa/mfa_assertion.d.ts +27 -0
  653. package/dist/node/src/mfa/mfa_error.d.ts +35 -0
  654. package/dist/node/src/mfa/mfa_info.d.ts +36 -0
  655. package/dist/node/src/mfa/mfa_resolver.d.ts +41 -0
  656. package/dist/node/src/mfa/mfa_session.d.ts +39 -0
  657. package/dist/node/src/mfa/mfa_user.d.ts +38 -0
  658. package/dist/node/src/model/application_verifier.d.ts +23 -0
  659. package/dist/node/src/model/auth.d.ts +90 -0
  660. package/dist/node/src/model/enum_maps.d.ts +98 -0
  661. package/dist/node/src/model/enums.d.ts +74 -0
  662. package/dist/node/src/model/id_token.d.ts +87 -0
  663. package/dist/node/src/model/password_policy.d.ts +111 -0
  664. package/dist/node/src/model/popup_redirect.d.ts +94 -0
  665. package/dist/node/src/model/public_types.d.ts +1291 -0
  666. package/dist/node/src/model/user.d.ts +83 -0
  667. package/dist/node/src/platform_browser/auth_window.d.ts +37 -0
  668. package/dist/node/src/platform_browser/iframe/gapi.d.ts +19 -0
  669. package/dist/node/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  670. package/dist/node/src/platform_browser/iframe/iframe.d.ts +18 -0
  671. package/dist/node/src/platform_browser/index.d.ts +27 -0
  672. package/dist/node/src/platform_browser/load_js.d.ts +29 -0
  673. package/dist/node/src/platform_browser/messagechannel/index.d.ts +87 -0
  674. package/dist/node/src/platform_browser/messagechannel/promise.d.ts +33 -0
  675. package/dist/node/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  676. package/dist/node/src/platform_browser/messagechannel/sender.d.ts +46 -0
  677. package/dist/node/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  678. package/dist/node/src/platform_browser/persistence/browser.d.ts +27 -0
  679. package/dist/node/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  680. package/dist/node/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  681. package/dist/node/src/platform_browser/persistence/local_storage.d.ts +25 -0
  682. package/dist/node/src/platform_browser/persistence/session_storage.d.ts +24 -0
  683. package/dist/node/src/platform_browser/popup_redirect.d.ts +27 -0
  684. package/dist/node/src/platform_browser/providers/phone.d.ts +154 -0
  685. package/dist/node/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  686. package/dist/node/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  687. package/dist/node/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  688. package/dist/node/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  689. package/dist/node/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  690. package/dist/node/src/platform_browser/strategies/phone.d.ts +116 -0
  691. package/dist/node/src/platform_browser/strategies/popup.d.ts +109 -0
  692. package/dist/node/src/platform_browser/strategies/redirect.d.ts +176 -0
  693. package/dist/node/src/platform_browser/util/popup.d.ts +24 -0
  694. package/dist/node/src/platform_browser/util/worker.d.ts +20 -0
  695. package/dist/node/src/platform_cordova/plugins.d.ts +42 -0
  696. package/dist/node/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  697. package/dist/node/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  698. package/dist/node/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  699. package/dist/node/src/platform_cordova/strategies/redirect.d.ts +20 -0
  700. package/dist/node/src/platform_node/index.d.ts +51 -0
  701. package/dist/node/src/platform_react_native/persistence/react_native.d.ts +25 -0
  702. package/dist/node/test/helpers/api/helper.d.ts +22 -0
  703. package/dist/node/test/helpers/delay.d.ts +20 -0
  704. package/dist/node/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  705. package/dist/node/test/helpers/fake_service_worker.d.ts +22 -0
  706. package/dist/node/test/helpers/id_token_response.d.ts +18 -0
  707. package/dist/node/test/helpers/iframe_event.d.ts +19 -0
  708. package/dist/node/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  709. package/dist/node/test/helpers/integration/helpers.d.ts +32 -0
  710. package/dist/node/test/helpers/integration/settings.d.ts +23 -0
  711. package/dist/node/test/helpers/jwt.d.ts +17 -0
  712. package/dist/node/test/helpers/mock_auth.d.ts +47 -0
  713. package/dist/node/test/helpers/mock_auth_credential.d.ts +31 -0
  714. package/dist/node/test/helpers/mock_fetch.d.ts +31 -0
  715. package/dist/node/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  716. package/dist/node/test/helpers/redirect_persistence.d.ts +24 -0
  717. package/dist/node/test/helpers/timeout_stub.d.ts +34 -0
  718. package/dist/node/test/integration/flows/middleware_test_generator.d.ts +18 -0
  719. package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  720. package/dist/node/test/integration/webdriver/util/functions.d.ts +81 -0
  721. package/dist/node/test/integration/webdriver/util/idp_page.d.ts +31 -0
  722. package/dist/node/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  723. package/dist/node/test/integration/webdriver/util/test_runner.d.ts +19 -0
  724. package/dist/node/test/integration/webdriver/util/test_server.d.ts +27 -0
  725. package/dist/node/test/integration/webdriver/util/ui_page.d.ts +33 -0
  726. package/dist/node/totp-e822713d.js +7693 -0
  727. package/dist/node/totp-e822713d.js.map +1 -0
  728. package/dist/node-esm/index.cordova.d.ts +32 -0
  729. package/dist/node-esm/index.d.ts +38 -0
  730. package/dist/node-esm/index.doc.d.ts +24 -0
  731. package/dist/node-esm/index.js +6 -0
  732. package/dist/node-esm/index.js.map +1 -0
  733. package/dist/node-esm/index.node.d.ts +17 -0
  734. package/dist/node-esm/index.rn.d.ts +40 -0
  735. package/dist/node-esm/index.shared.d.ts +19 -0
  736. package/dist/node-esm/index.web-extension.d.ts +31 -0
  737. package/dist/node-esm/index.webworker.d.ts +21 -0
  738. package/dist/node-esm/internal/index.d.ts +42 -0
  739. package/dist/node-esm/internal.js +1440 -0
  740. package/dist/node-esm/internal.js.map +1 -0
  741. package/dist/node-esm/package.json +1 -0
  742. package/dist/node-esm/scripts/run_node_tests.d.ts +17 -0
  743. package/dist/node-esm/src/api/account_management/account.d.ts +59 -0
  744. package/dist/node-esm/src/api/account_management/email_and_password.d.ts +49 -0
  745. package/dist/node-esm/src/api/account_management/mfa.d.ts +107 -0
  746. package/dist/node-esm/src/api/account_management/profile.d.ts +29 -0
  747. package/dist/node-esm/src/api/authentication/create_auth_uri.d.ts +26 -0
  748. package/dist/node-esm/src/api/authentication/custom_token.d.ts +26 -0
  749. package/dist/node-esm/src/api/authentication/email_and_password.d.ts +86 -0
  750. package/dist/node-esm/src/api/authentication/email_link.d.ts +32 -0
  751. package/dist/node-esm/src/api/authentication/idp.d.ts +40 -0
  752. package/dist/node-esm/src/api/authentication/mfa.d.ts +73 -0
  753. package/dist/node-esm/src/api/authentication/recaptcha.d.ts +34 -0
  754. package/dist/node-esm/src/api/authentication/sign_up.d.ts +34 -0
  755. package/dist/node-esm/src/api/authentication/sms.d.ts +54 -0
  756. package/dist/node-esm/src/api/authentication/token.d.ts +37 -0
  757. package/dist/node-esm/src/api/errors.d.ts +129 -0
  758. package/dist/node-esm/src/api/index.d.ts +101 -0
  759. package/dist/node-esm/src/api/password_policy/get_password_policy.d.ts +48 -0
  760. package/dist/node-esm/src/api/project_config/get_project_config.d.ts +25 -0
  761. package/dist/node-esm/src/core/action_code_url.d.ts +73 -0
  762. package/dist/node-esm/src/core/auth/auth_event_manager.d.ts +34 -0
  763. package/dist/node-esm/src/core/auth/auth_impl.d.ts +133 -0
  764. package/dist/node-esm/src/core/auth/emulator.d.ts +42 -0
  765. package/dist/node-esm/src/core/auth/firebase_internal.d.ts +35 -0
  766. package/dist/node-esm/src/core/auth/initialize.d.ts +46 -0
  767. package/dist/node-esm/src/core/auth/middleware.d.ts +25 -0
  768. package/dist/node-esm/src/core/auth/password_policy_impl.d.ts +59 -0
  769. package/dist/node-esm/src/core/auth/register.d.ts +23 -0
  770. package/dist/node-esm/src/core/credentials/auth_credential.d.ts +75 -0
  771. package/dist/node-esm/src/core/credentials/email.d.ts +60 -0
  772. package/dist/node-esm/src/core/credentials/index.d.ts +23 -0
  773. package/dist/node-esm/src/core/credentials/oauth.d.ts +81 -0
  774. package/dist/node-esm/src/core/credentials/phone.d.ts +52 -0
  775. package/dist/node-esm/src/core/credentials/saml.d.ts +52 -0
  776. package/dist/node-esm/src/core/errors.d.ts +328 -0
  777. package/dist/node-esm/src/core/index.d.ts +230 -0
  778. package/dist/node-esm/src/core/persistence/in_memory.d.ts +35 -0
  779. package/dist/node-esm/src/core/persistence/index.d.ts +42 -0
  780. package/dist/node-esm/src/core/persistence/persistence_user_manager.d.ts +45 -0
  781. package/dist/node-esm/src/core/providers/email.d.ts +83 -0
  782. package/dist/node-esm/src/core/providers/facebook.d.ts +93 -0
  783. package/dist/node-esm/src/core/providers/federated.d.ts +64 -0
  784. package/dist/node-esm/src/core/providers/github.d.ts +89 -0
  785. package/dist/node-esm/src/core/providers/google.d.ts +96 -0
  786. package/dist/node-esm/src/core/providers/oauth.d.ts +151 -0
  787. package/dist/node-esm/src/core/providers/saml.d.ts +62 -0
  788. package/dist/node-esm/src/core/providers/twitter.d.ts +103 -0
  789. package/dist/node-esm/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  790. package/dist/node-esm/src/core/strategies/action_code_settings.d.ts +19 -0
  791. package/dist/node-esm/src/core/strategies/anonymous.d.ts +32 -0
  792. package/dist/node-esm/src/core/strategies/credential.d.ts +64 -0
  793. package/dist/node-esm/src/core/strategies/custom_token.d.ts +37 -0
  794. package/dist/node-esm/src/core/strategies/email.d.ts +104 -0
  795. package/dist/node-esm/src/core/strategies/email_and_password.d.ts +139 -0
  796. package/dist/node-esm/src/core/strategies/email_link.d.ts +107 -0
  797. package/dist/node-esm/src/core/strategies/idp.d.ts +32 -0
  798. package/dist/node-esm/src/core/strategies/redirect.d.ts +36 -0
  799. package/dist/node-esm/src/core/user/account_info.d.ts +68 -0
  800. package/dist/node-esm/src/core/user/additional_user_info.d.ts +31 -0
  801. package/dist/node-esm/src/core/user/id_token_result.d.ts +48 -0
  802. package/dist/node-esm/src/core/user/invalidation.d.ts +18 -0
  803. package/dist/node-esm/src/core/user/link_unlink.d.ts +30 -0
  804. package/dist/node-esm/src/core/user/proactive_refresh.d.ts +34 -0
  805. package/dist/node-esm/src/core/user/reauthenticate.d.ts +20 -0
  806. package/dist/node-esm/src/core/user/reload.d.ts +29 -0
  807. package/dist/node-esm/src/core/user/token_manager.d.ts +50 -0
  808. package/dist/node-esm/src/core/user/user_credential_impl.d.ts +37 -0
  809. package/dist/node-esm/src/core/user/user_impl.d.ts +74 -0
  810. package/dist/node-esm/src/core/user/user_metadata.d.ts +27 -0
  811. package/dist/node-esm/src/core/util/assert.d.ts +94 -0
  812. package/dist/node-esm/src/core/util/browser.d.ts +50 -0
  813. package/dist/node-esm/src/core/util/delay.d.ts +31 -0
  814. package/dist/node-esm/src/core/util/emulator.d.ts +18 -0
  815. package/dist/node-esm/src/core/util/event_id.d.ts +17 -0
  816. package/dist/node-esm/src/core/util/fetch_provider.d.ts +25 -0
  817. package/dist/node-esm/src/core/util/handler.d.ts +20 -0
  818. package/dist/node-esm/src/core/util/instantiator.d.ts +28 -0
  819. package/dist/node-esm/src/core/util/location.d.ts +19 -0
  820. package/dist/node-esm/src/core/util/log.d.ts +23 -0
  821. package/dist/node-esm/src/core/util/navigator.d.ts +21 -0
  822. package/dist/node-esm/src/core/util/providers.d.ts +23 -0
  823. package/dist/node-esm/src/core/util/resolver.d.ts +25 -0
  824. package/dist/node-esm/src/core/util/time.d.ts +17 -0
  825. package/dist/node-esm/src/core/util/validate_origin.d.ts +18 -0
  826. package/dist/node-esm/src/core/util/version.d.ts +31 -0
  827. package/dist/node-esm/src/index.d.ts +18 -0
  828. package/dist/node-esm/src/mfa/assertions/totp.d.ts +124 -0
  829. package/dist/node-esm/src/mfa/index.d.ts +18 -0
  830. package/dist/node-esm/src/mfa/mfa_assertion.d.ts +27 -0
  831. package/dist/node-esm/src/mfa/mfa_error.d.ts +35 -0
  832. package/dist/node-esm/src/mfa/mfa_info.d.ts +36 -0
  833. package/dist/node-esm/src/mfa/mfa_resolver.d.ts +41 -0
  834. package/dist/node-esm/src/mfa/mfa_session.d.ts +39 -0
  835. package/dist/node-esm/src/mfa/mfa_user.d.ts +38 -0
  836. package/dist/node-esm/src/model/application_verifier.d.ts +23 -0
  837. package/dist/node-esm/src/model/auth.d.ts +90 -0
  838. package/dist/node-esm/src/model/enum_maps.d.ts +98 -0
  839. package/dist/node-esm/src/model/enums.d.ts +74 -0
  840. package/dist/node-esm/src/model/id_token.d.ts +87 -0
  841. package/dist/node-esm/src/model/password_policy.d.ts +111 -0
  842. package/dist/node-esm/src/model/popup_redirect.d.ts +94 -0
  843. package/dist/node-esm/src/model/public_types.d.ts +1291 -0
  844. package/dist/node-esm/src/model/user.d.ts +83 -0
  845. package/dist/node-esm/src/platform_browser/auth_window.d.ts +37 -0
  846. package/dist/node-esm/src/platform_browser/iframe/gapi.d.ts +19 -0
  847. package/dist/node-esm/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  848. package/dist/node-esm/src/platform_browser/iframe/iframe.d.ts +18 -0
  849. package/dist/node-esm/src/platform_browser/index.d.ts +27 -0
  850. package/dist/node-esm/src/platform_browser/load_js.d.ts +29 -0
  851. package/dist/node-esm/src/platform_browser/messagechannel/index.d.ts +87 -0
  852. package/dist/node-esm/src/platform_browser/messagechannel/promise.d.ts +33 -0
  853. package/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  854. package/dist/node-esm/src/platform_browser/messagechannel/sender.d.ts +46 -0
  855. package/dist/node-esm/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  856. package/dist/node-esm/src/platform_browser/persistence/browser.d.ts +27 -0
  857. package/dist/node-esm/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  858. package/dist/node-esm/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  859. package/dist/node-esm/src/platform_browser/persistence/local_storage.d.ts +25 -0
  860. package/dist/node-esm/src/platform_browser/persistence/session_storage.d.ts +24 -0
  861. package/dist/node-esm/src/platform_browser/popup_redirect.d.ts +27 -0
  862. package/dist/node-esm/src/platform_browser/providers/phone.d.ts +154 -0
  863. package/dist/node-esm/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  864. package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  865. package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  866. package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  867. package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  868. package/dist/node-esm/src/platform_browser/strategies/phone.d.ts +116 -0
  869. package/dist/node-esm/src/platform_browser/strategies/popup.d.ts +109 -0
  870. package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +176 -0
  871. package/dist/node-esm/src/platform_browser/util/popup.d.ts +24 -0
  872. package/dist/node-esm/src/platform_browser/util/worker.d.ts +20 -0
  873. package/dist/node-esm/src/platform_cordova/plugins.d.ts +42 -0
  874. package/dist/node-esm/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  875. package/dist/node-esm/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  876. package/dist/node-esm/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  877. package/dist/node-esm/src/platform_cordova/strategies/redirect.d.ts +20 -0
  878. package/dist/node-esm/src/platform_node/index.d.ts +51 -0
  879. package/dist/node-esm/src/platform_react_native/persistence/react_native.d.ts +25 -0
  880. package/dist/node-esm/test/helpers/api/helper.d.ts +22 -0
  881. package/dist/node-esm/test/helpers/delay.d.ts +20 -0
  882. package/dist/node-esm/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  883. package/dist/node-esm/test/helpers/fake_service_worker.d.ts +22 -0
  884. package/dist/node-esm/test/helpers/id_token_response.d.ts +18 -0
  885. package/dist/node-esm/test/helpers/iframe_event.d.ts +19 -0
  886. package/dist/node-esm/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  887. package/dist/node-esm/test/helpers/integration/helpers.d.ts +32 -0
  888. package/dist/node-esm/test/helpers/integration/settings.d.ts +23 -0
  889. package/dist/node-esm/test/helpers/jwt.d.ts +17 -0
  890. package/dist/node-esm/test/helpers/mock_auth.d.ts +47 -0
  891. package/dist/node-esm/test/helpers/mock_auth_credential.d.ts +31 -0
  892. package/dist/node-esm/test/helpers/mock_fetch.d.ts +31 -0
  893. package/dist/node-esm/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  894. package/dist/node-esm/test/helpers/redirect_persistence.d.ts +24 -0
  895. package/dist/node-esm/test/helpers/timeout_stub.d.ts +34 -0
  896. package/dist/node-esm/test/integration/flows/middleware_test_generator.d.ts +18 -0
  897. package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  898. package/dist/node-esm/test/integration/webdriver/util/functions.d.ts +81 -0
  899. package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +31 -0
  900. package/dist/node-esm/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  901. package/dist/node-esm/test/integration/webdriver/util/test_runner.d.ts +19 -0
  902. package/dist/node-esm/test/integration/webdriver/util/test_server.d.ts +27 -0
  903. package/dist/node-esm/test/integration/webdriver/util/ui_page.d.ts +33 -0
  904. package/dist/node-esm/totp-413dc172.js +7581 -0
  905. package/dist/node-esm/totp-413dc172.js.map +1 -0
  906. package/dist/rn/index-6b98721f.js +8678 -0
  907. package/dist/rn/index-6b98721f.js.map +1 -0
  908. package/dist/rn/index.cordova.d.ts +32 -0
  909. package/dist/rn/index.d.ts +38 -0
  910. package/dist/rn/index.doc.d.ts +24 -0
  911. package/dist/rn/index.js +209 -0
  912. package/dist/rn/index.js.map +1 -0
  913. package/dist/rn/index.node.d.ts +17 -0
  914. package/dist/rn/index.rn.d.ts +40 -0
  915. package/dist/rn/index.shared.d.ts +19 -0
  916. package/dist/rn/index.web-extension.d.ts +31 -0
  917. package/dist/rn/index.webworker.d.ts +21 -0
  918. package/dist/rn/internal/index.d.ts +42 -0
  919. package/dist/rn/internal.js +3266 -0
  920. package/dist/rn/internal.js.map +1 -0
  921. package/dist/rn/scripts/run_node_tests.d.ts +17 -0
  922. package/dist/rn/src/api/account_management/account.d.ts +59 -0
  923. package/dist/rn/src/api/account_management/email_and_password.d.ts +49 -0
  924. package/dist/rn/src/api/account_management/mfa.d.ts +107 -0
  925. package/dist/rn/src/api/account_management/profile.d.ts +29 -0
  926. package/dist/rn/src/api/authentication/create_auth_uri.d.ts +26 -0
  927. package/dist/rn/src/api/authentication/custom_token.d.ts +26 -0
  928. package/dist/rn/src/api/authentication/email_and_password.d.ts +86 -0
  929. package/dist/rn/src/api/authentication/email_link.d.ts +32 -0
  930. package/dist/rn/src/api/authentication/idp.d.ts +40 -0
  931. package/dist/rn/src/api/authentication/mfa.d.ts +73 -0
  932. package/dist/rn/src/api/authentication/recaptcha.d.ts +34 -0
  933. package/dist/rn/src/api/authentication/sign_up.d.ts +34 -0
  934. package/dist/rn/src/api/authentication/sms.d.ts +54 -0
  935. package/dist/rn/src/api/authentication/token.d.ts +37 -0
  936. package/dist/rn/src/api/errors.d.ts +129 -0
  937. package/dist/rn/src/api/index.d.ts +101 -0
  938. package/dist/rn/src/api/password_policy/get_password_policy.d.ts +48 -0
  939. package/dist/rn/src/api/project_config/get_project_config.d.ts +25 -0
  940. package/dist/rn/src/core/action_code_url.d.ts +73 -0
  941. package/dist/rn/src/core/auth/auth_event_manager.d.ts +34 -0
  942. package/dist/rn/src/core/auth/auth_impl.d.ts +133 -0
  943. package/dist/rn/src/core/auth/emulator.d.ts +42 -0
  944. package/dist/rn/src/core/auth/firebase_internal.d.ts +35 -0
  945. package/dist/rn/src/core/auth/initialize.d.ts +46 -0
  946. package/dist/rn/src/core/auth/middleware.d.ts +25 -0
  947. package/dist/rn/src/core/auth/password_policy_impl.d.ts +59 -0
  948. package/dist/rn/src/core/auth/register.d.ts +23 -0
  949. package/dist/rn/src/core/credentials/auth_credential.d.ts +75 -0
  950. package/dist/rn/src/core/credentials/email.d.ts +60 -0
  951. package/dist/rn/src/core/credentials/index.d.ts +23 -0
  952. package/dist/rn/src/core/credentials/oauth.d.ts +81 -0
  953. package/dist/rn/src/core/credentials/phone.d.ts +52 -0
  954. package/dist/rn/src/core/credentials/saml.d.ts +52 -0
  955. package/dist/rn/src/core/errors.d.ts +328 -0
  956. package/dist/rn/src/core/index.d.ts +230 -0
  957. package/dist/rn/src/core/persistence/in_memory.d.ts +35 -0
  958. package/dist/rn/src/core/persistence/index.d.ts +42 -0
  959. package/dist/rn/src/core/persistence/persistence_user_manager.d.ts +45 -0
  960. package/dist/rn/src/core/providers/email.d.ts +83 -0
  961. package/dist/rn/src/core/providers/facebook.d.ts +93 -0
  962. package/dist/rn/src/core/providers/federated.d.ts +64 -0
  963. package/dist/rn/src/core/providers/github.d.ts +89 -0
  964. package/dist/rn/src/core/providers/google.d.ts +96 -0
  965. package/dist/rn/src/core/providers/oauth.d.ts +151 -0
  966. package/dist/rn/src/core/providers/saml.d.ts +62 -0
  967. package/dist/rn/src/core/providers/twitter.d.ts +103 -0
  968. package/dist/rn/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  969. package/dist/rn/src/core/strategies/action_code_settings.d.ts +19 -0
  970. package/dist/rn/src/core/strategies/anonymous.d.ts +32 -0
  971. package/dist/rn/src/core/strategies/credential.d.ts +64 -0
  972. package/dist/rn/src/core/strategies/custom_token.d.ts +37 -0
  973. package/dist/rn/src/core/strategies/email.d.ts +104 -0
  974. package/dist/rn/src/core/strategies/email_and_password.d.ts +139 -0
  975. package/dist/rn/src/core/strategies/email_link.d.ts +107 -0
  976. package/dist/rn/src/core/strategies/idp.d.ts +32 -0
  977. package/dist/rn/src/core/strategies/redirect.d.ts +36 -0
  978. package/dist/rn/src/core/user/account_info.d.ts +68 -0
  979. package/dist/rn/src/core/user/additional_user_info.d.ts +31 -0
  980. package/dist/rn/src/core/user/id_token_result.d.ts +48 -0
  981. package/dist/rn/src/core/user/invalidation.d.ts +18 -0
  982. package/dist/rn/src/core/user/link_unlink.d.ts +30 -0
  983. package/dist/rn/src/core/user/proactive_refresh.d.ts +34 -0
  984. package/dist/rn/src/core/user/reauthenticate.d.ts +20 -0
  985. package/dist/rn/src/core/user/reload.d.ts +29 -0
  986. package/dist/rn/src/core/user/token_manager.d.ts +50 -0
  987. package/dist/rn/src/core/user/user_credential_impl.d.ts +37 -0
  988. package/dist/rn/src/core/user/user_impl.d.ts +74 -0
  989. package/dist/rn/src/core/user/user_metadata.d.ts +27 -0
  990. package/dist/rn/src/core/util/assert.d.ts +94 -0
  991. package/dist/rn/src/core/util/browser.d.ts +50 -0
  992. package/dist/rn/src/core/util/delay.d.ts +31 -0
  993. package/dist/rn/src/core/util/emulator.d.ts +18 -0
  994. package/dist/rn/src/core/util/event_id.d.ts +17 -0
  995. package/dist/rn/src/core/util/fetch_provider.d.ts +25 -0
  996. package/dist/rn/src/core/util/handler.d.ts +20 -0
  997. package/dist/rn/src/core/util/instantiator.d.ts +28 -0
  998. package/dist/rn/src/core/util/location.d.ts +19 -0
  999. package/dist/rn/src/core/util/log.d.ts +23 -0
  1000. package/dist/rn/src/core/util/navigator.d.ts +21 -0
  1001. package/dist/rn/src/core/util/providers.d.ts +23 -0
  1002. package/dist/rn/src/core/util/resolver.d.ts +25 -0
  1003. package/dist/rn/src/core/util/time.d.ts +17 -0
  1004. package/dist/rn/src/core/util/validate_origin.d.ts +18 -0
  1005. package/dist/rn/src/core/util/version.d.ts +31 -0
  1006. package/dist/rn/src/index.d.ts +18 -0
  1007. package/dist/rn/src/mfa/assertions/totp.d.ts +124 -0
  1008. package/dist/rn/src/mfa/index.d.ts +18 -0
  1009. package/dist/rn/src/mfa/mfa_assertion.d.ts +27 -0
  1010. package/dist/rn/src/mfa/mfa_error.d.ts +35 -0
  1011. package/dist/rn/src/mfa/mfa_info.d.ts +36 -0
  1012. package/dist/rn/src/mfa/mfa_resolver.d.ts +41 -0
  1013. package/dist/rn/src/mfa/mfa_session.d.ts +39 -0
  1014. package/dist/rn/src/mfa/mfa_user.d.ts +38 -0
  1015. package/dist/rn/src/model/application_verifier.d.ts +23 -0
  1016. package/dist/rn/src/model/auth.d.ts +90 -0
  1017. package/dist/rn/src/model/enum_maps.d.ts +98 -0
  1018. package/dist/rn/src/model/enums.d.ts +74 -0
  1019. package/dist/rn/src/model/id_token.d.ts +87 -0
  1020. package/dist/rn/src/model/password_policy.d.ts +111 -0
  1021. package/dist/rn/src/model/popup_redirect.d.ts +94 -0
  1022. package/dist/rn/src/model/public_types.d.ts +1291 -0
  1023. package/dist/rn/src/model/user.d.ts +83 -0
  1024. package/dist/rn/src/platform_browser/auth_window.d.ts +37 -0
  1025. package/dist/rn/src/platform_browser/iframe/gapi.d.ts +19 -0
  1026. package/dist/rn/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  1027. package/dist/rn/src/platform_browser/iframe/iframe.d.ts +18 -0
  1028. package/dist/rn/src/platform_browser/index.d.ts +27 -0
  1029. package/dist/rn/src/platform_browser/load_js.d.ts +29 -0
  1030. package/dist/rn/src/platform_browser/messagechannel/index.d.ts +87 -0
  1031. package/dist/rn/src/platform_browser/messagechannel/promise.d.ts +33 -0
  1032. package/dist/rn/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  1033. package/dist/rn/src/platform_browser/messagechannel/sender.d.ts +46 -0
  1034. package/dist/rn/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  1035. package/dist/rn/src/platform_browser/persistence/browser.d.ts +27 -0
  1036. package/dist/rn/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  1037. package/dist/rn/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  1038. package/dist/rn/src/platform_browser/persistence/local_storage.d.ts +25 -0
  1039. package/dist/rn/src/platform_browser/persistence/session_storage.d.ts +24 -0
  1040. package/dist/rn/src/platform_browser/popup_redirect.d.ts +27 -0
  1041. package/dist/rn/src/platform_browser/providers/phone.d.ts +154 -0
  1042. package/dist/rn/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  1043. package/dist/rn/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  1044. package/dist/rn/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  1045. package/dist/rn/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  1046. package/dist/rn/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  1047. package/dist/rn/src/platform_browser/strategies/phone.d.ts +116 -0
  1048. package/dist/rn/src/platform_browser/strategies/popup.d.ts +109 -0
  1049. package/dist/rn/src/platform_browser/strategies/redirect.d.ts +176 -0
  1050. package/dist/rn/src/platform_browser/util/popup.d.ts +24 -0
  1051. package/dist/rn/src/platform_browser/util/worker.d.ts +20 -0
  1052. package/dist/rn/src/platform_cordova/plugins.d.ts +42 -0
  1053. package/dist/rn/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  1054. package/dist/rn/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  1055. package/dist/rn/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  1056. package/dist/rn/src/platform_cordova/strategies/redirect.d.ts +20 -0
  1057. package/dist/rn/src/platform_node/index.d.ts +51 -0
  1058. package/dist/rn/src/platform_react_native/persistence/react_native.d.ts +25 -0
  1059. package/dist/rn/test/helpers/api/helper.d.ts +22 -0
  1060. package/dist/rn/test/helpers/delay.d.ts +20 -0
  1061. package/dist/rn/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  1062. package/dist/rn/test/helpers/fake_service_worker.d.ts +22 -0
  1063. package/dist/rn/test/helpers/id_token_response.d.ts +18 -0
  1064. package/dist/rn/test/helpers/iframe_event.d.ts +19 -0
  1065. package/dist/rn/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  1066. package/dist/rn/test/helpers/integration/helpers.d.ts +32 -0
  1067. package/dist/rn/test/helpers/integration/settings.d.ts +23 -0
  1068. package/dist/rn/test/helpers/jwt.d.ts +17 -0
  1069. package/dist/rn/test/helpers/mock_auth.d.ts +47 -0
  1070. package/dist/rn/test/helpers/mock_auth_credential.d.ts +31 -0
  1071. package/dist/rn/test/helpers/mock_fetch.d.ts +31 -0
  1072. package/dist/rn/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  1073. package/dist/rn/test/helpers/redirect_persistence.d.ts +24 -0
  1074. package/dist/rn/test/helpers/timeout_stub.d.ts +34 -0
  1075. package/dist/rn/test/integration/flows/middleware_test_generator.d.ts +18 -0
  1076. package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  1077. package/dist/rn/test/integration/webdriver/util/functions.d.ts +81 -0
  1078. package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +31 -0
  1079. package/dist/rn/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  1080. package/dist/rn/test/integration/webdriver/util/test_runner.d.ts +19 -0
  1081. package/dist/rn/test/integration/webdriver/util/test_server.d.ts +27 -0
  1082. package/dist/rn/test/integration/webdriver/util/ui_page.d.ts +33 -0
  1083. package/dist/scripts/run_node_tests.d.ts +17 -0
  1084. package/dist/src/api/account_management/account.d.ts +59 -0
  1085. package/dist/src/api/account_management/email_and_password.d.ts +49 -0
  1086. package/dist/src/api/account_management/mfa.d.ts +107 -0
  1087. package/dist/src/api/account_management/profile.d.ts +29 -0
  1088. package/dist/src/api/authentication/create_auth_uri.d.ts +26 -0
  1089. package/dist/src/api/authentication/custom_token.d.ts +26 -0
  1090. package/dist/src/api/authentication/email_and_password.d.ts +86 -0
  1091. package/dist/src/api/authentication/email_link.d.ts +32 -0
  1092. package/dist/src/api/authentication/idp.d.ts +40 -0
  1093. package/dist/src/api/authentication/mfa.d.ts +73 -0
  1094. package/dist/src/api/authentication/recaptcha.d.ts +34 -0
  1095. package/dist/src/api/authentication/sign_up.d.ts +34 -0
  1096. package/dist/src/api/authentication/sms.d.ts +54 -0
  1097. package/dist/src/api/authentication/token.d.ts +37 -0
  1098. package/dist/src/api/errors.d.ts +129 -0
  1099. package/dist/src/api/index.d.ts +101 -0
  1100. package/dist/src/api/password_policy/get_password_policy.d.ts +48 -0
  1101. package/dist/src/api/project_config/get_project_config.d.ts +25 -0
  1102. package/dist/src/core/action_code_url.d.ts +73 -0
  1103. package/dist/src/core/auth/auth_event_manager.d.ts +34 -0
  1104. package/dist/src/core/auth/auth_impl.d.ts +133 -0
  1105. package/dist/src/core/auth/emulator.d.ts +42 -0
  1106. package/dist/src/core/auth/firebase_internal.d.ts +35 -0
  1107. package/dist/src/core/auth/initialize.d.ts +46 -0
  1108. package/dist/src/core/auth/middleware.d.ts +25 -0
  1109. package/dist/src/core/auth/password_policy_impl.d.ts +59 -0
  1110. package/dist/src/core/auth/register.d.ts +23 -0
  1111. package/dist/src/core/credentials/auth_credential.d.ts +75 -0
  1112. package/dist/src/core/credentials/email.d.ts +60 -0
  1113. package/dist/src/core/credentials/index.d.ts +23 -0
  1114. package/dist/src/core/credentials/oauth.d.ts +81 -0
  1115. package/dist/src/core/credentials/phone.d.ts +52 -0
  1116. package/dist/src/core/credentials/saml.d.ts +52 -0
  1117. package/dist/src/core/errors.d.ts +328 -0
  1118. package/dist/src/core/index.d.ts +230 -0
  1119. package/dist/src/core/persistence/in_memory.d.ts +35 -0
  1120. package/dist/src/core/persistence/index.d.ts +42 -0
  1121. package/dist/src/core/persistence/persistence_user_manager.d.ts +45 -0
  1122. package/dist/src/core/providers/email.d.ts +83 -0
  1123. package/dist/src/core/providers/facebook.d.ts +93 -0
  1124. package/dist/src/core/providers/federated.d.ts +64 -0
  1125. package/dist/src/core/providers/github.d.ts +89 -0
  1126. package/dist/src/core/providers/google.d.ts +96 -0
  1127. package/dist/src/core/providers/oauth.d.ts +151 -0
  1128. package/dist/src/core/providers/saml.d.ts +62 -0
  1129. package/dist/src/core/providers/twitter.d.ts +103 -0
  1130. package/dist/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  1131. package/dist/src/core/strategies/action_code_settings.d.ts +19 -0
  1132. package/dist/src/core/strategies/anonymous.d.ts +32 -0
  1133. package/dist/src/core/strategies/credential.d.ts +64 -0
  1134. package/dist/src/core/strategies/custom_token.d.ts +37 -0
  1135. package/dist/src/core/strategies/email.d.ts +104 -0
  1136. package/dist/src/core/strategies/email_and_password.d.ts +139 -0
  1137. package/dist/src/core/strategies/email_link.d.ts +107 -0
  1138. package/dist/src/core/strategies/idp.d.ts +32 -0
  1139. package/dist/src/core/strategies/redirect.d.ts +36 -0
  1140. package/dist/src/core/user/account_info.d.ts +68 -0
  1141. package/dist/src/core/user/additional_user_info.d.ts +31 -0
  1142. package/dist/src/core/user/id_token_result.d.ts +48 -0
  1143. package/dist/src/core/user/invalidation.d.ts +18 -0
  1144. package/dist/src/core/user/link_unlink.d.ts +30 -0
  1145. package/dist/src/core/user/proactive_refresh.d.ts +34 -0
  1146. package/dist/src/core/user/reauthenticate.d.ts +20 -0
  1147. package/dist/src/core/user/reload.d.ts +29 -0
  1148. package/dist/src/core/user/token_manager.d.ts +50 -0
  1149. package/dist/src/core/user/user_credential_impl.d.ts +37 -0
  1150. package/dist/src/core/user/user_impl.d.ts +74 -0
  1151. package/dist/src/core/user/user_metadata.d.ts +27 -0
  1152. package/dist/src/core/util/assert.d.ts +94 -0
  1153. package/dist/src/core/util/browser.d.ts +50 -0
  1154. package/dist/src/core/util/delay.d.ts +31 -0
  1155. package/dist/src/core/util/emulator.d.ts +18 -0
  1156. package/dist/src/core/util/event_id.d.ts +17 -0
  1157. package/dist/src/core/util/fetch_provider.d.ts +25 -0
  1158. package/dist/src/core/util/handler.d.ts +20 -0
  1159. package/dist/src/core/util/instantiator.d.ts +28 -0
  1160. package/dist/src/core/util/location.d.ts +19 -0
  1161. package/dist/src/core/util/log.d.ts +23 -0
  1162. package/dist/src/core/util/navigator.d.ts +21 -0
  1163. package/dist/src/core/util/providers.d.ts +23 -0
  1164. package/dist/src/core/util/resolver.d.ts +25 -0
  1165. package/dist/src/core/util/time.d.ts +17 -0
  1166. package/dist/src/core/util/validate_origin.d.ts +18 -0
  1167. package/dist/src/core/util/version.d.ts +31 -0
  1168. package/dist/src/index.d.ts +18 -0
  1169. package/dist/src/mfa/assertions/totp.d.ts +124 -0
  1170. package/dist/src/mfa/index.d.ts +18 -0
  1171. package/dist/src/mfa/mfa_assertion.d.ts +27 -0
  1172. package/dist/src/mfa/mfa_error.d.ts +35 -0
  1173. package/dist/src/mfa/mfa_info.d.ts +36 -0
  1174. package/dist/src/mfa/mfa_resolver.d.ts +41 -0
  1175. package/dist/src/mfa/mfa_session.d.ts +39 -0
  1176. package/dist/src/mfa/mfa_user.d.ts +38 -0
  1177. package/dist/src/model/application_verifier.d.ts +23 -0
  1178. package/dist/src/model/auth.d.ts +90 -0
  1179. package/dist/src/model/enum_maps.d.ts +98 -0
  1180. package/dist/src/model/enums.d.ts +74 -0
  1181. package/dist/src/model/id_token.d.ts +87 -0
  1182. package/dist/src/model/password_policy.d.ts +111 -0
  1183. package/dist/src/model/popup_redirect.d.ts +94 -0
  1184. package/dist/src/model/public_types.d.ts +1291 -0
  1185. package/dist/src/model/user.d.ts +83 -0
  1186. package/dist/src/platform_browser/auth_window.d.ts +37 -0
  1187. package/dist/src/platform_browser/iframe/gapi.d.ts +19 -0
  1188. package/dist/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  1189. package/dist/src/platform_browser/iframe/iframe.d.ts +18 -0
  1190. package/dist/src/platform_browser/index.d.ts +27 -0
  1191. package/dist/src/platform_browser/load_js.d.ts +29 -0
  1192. package/dist/src/platform_browser/messagechannel/index.d.ts +87 -0
  1193. package/dist/src/platform_browser/messagechannel/promise.d.ts +33 -0
  1194. package/dist/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  1195. package/dist/src/platform_browser/messagechannel/sender.d.ts +46 -0
  1196. package/dist/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  1197. package/dist/src/platform_browser/persistence/browser.d.ts +27 -0
  1198. package/dist/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  1199. package/dist/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  1200. package/dist/src/platform_browser/persistence/local_storage.d.ts +25 -0
  1201. package/dist/src/platform_browser/persistence/session_storage.d.ts +24 -0
  1202. package/dist/src/platform_browser/popup_redirect.d.ts +27 -0
  1203. package/dist/src/platform_browser/providers/phone.d.ts +154 -0
  1204. package/dist/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  1205. package/dist/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  1206. package/dist/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  1207. package/dist/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  1208. package/dist/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  1209. package/dist/src/platform_browser/strategies/phone.d.ts +116 -0
  1210. package/dist/src/platform_browser/strategies/popup.d.ts +109 -0
  1211. package/dist/src/platform_browser/strategies/redirect.d.ts +176 -0
  1212. package/dist/src/platform_browser/util/popup.d.ts +24 -0
  1213. package/dist/src/platform_browser/util/worker.d.ts +20 -0
  1214. package/dist/src/platform_cordova/plugins.d.ts +42 -0
  1215. package/dist/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  1216. package/dist/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  1217. package/dist/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  1218. package/dist/src/platform_cordova/strategies/redirect.d.ts +20 -0
  1219. package/dist/src/platform_node/index.d.ts +51 -0
  1220. package/dist/src/platform_react_native/persistence/react_native.d.ts +25 -0
  1221. package/dist/test/helpers/api/helper.d.ts +22 -0
  1222. package/dist/test/helpers/delay.d.ts +20 -0
  1223. package/dist/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  1224. package/dist/test/helpers/fake_service_worker.d.ts +22 -0
  1225. package/dist/test/helpers/id_token_response.d.ts +18 -0
  1226. package/dist/test/helpers/iframe_event.d.ts +19 -0
  1227. package/dist/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  1228. package/dist/test/helpers/integration/helpers.d.ts +32 -0
  1229. package/dist/test/helpers/integration/settings.d.ts +23 -0
  1230. package/dist/test/helpers/jwt.d.ts +17 -0
  1231. package/dist/test/helpers/mock_auth.d.ts +47 -0
  1232. package/dist/test/helpers/mock_auth_credential.d.ts +31 -0
  1233. package/dist/test/helpers/mock_fetch.d.ts +31 -0
  1234. package/dist/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  1235. package/dist/test/helpers/redirect_persistence.d.ts +24 -0
  1236. package/dist/test/helpers/timeout_stub.d.ts +34 -0
  1237. package/dist/test/integration/flows/middleware_test_generator.d.ts +18 -0
  1238. package/dist/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  1239. package/dist/test/integration/webdriver/util/functions.d.ts +81 -0
  1240. package/dist/test/integration/webdriver/util/idp_page.d.ts +31 -0
  1241. package/dist/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  1242. package/dist/test/integration/webdriver/util/test_runner.d.ts +19 -0
  1243. package/dist/test/integration/webdriver/util/test_server.d.ts +27 -0
  1244. package/dist/test/integration/webdriver/util/ui_page.d.ts +33 -0
  1245. package/dist/tsdoc-metadata.json +11 -0
  1246. package/dist/web-extension-cjs/index.cordova.d.ts +32 -0
  1247. package/dist/web-extension-cjs/index.d.ts +38 -0
  1248. package/dist/web-extension-cjs/index.doc.d.ts +24 -0
  1249. package/dist/web-extension-cjs/index.js +113 -0
  1250. package/dist/web-extension-cjs/index.js.map +1 -0
  1251. package/dist/web-extension-cjs/index.node.d.ts +17 -0
  1252. package/dist/web-extension-cjs/index.rn.d.ts +40 -0
  1253. package/dist/web-extension-cjs/index.shared.d.ts +19 -0
  1254. package/dist/web-extension-cjs/index.web-extension.d.ts +31 -0
  1255. package/dist/web-extension-cjs/index.webworker.d.ts +21 -0
  1256. package/dist/web-extension-cjs/internal/index.d.ts +42 -0
  1257. package/dist/web-extension-cjs/internal.js +3569 -0
  1258. package/dist/web-extension-cjs/internal.js.map +1 -0
  1259. package/dist/web-extension-cjs/register-e72afd7b.js +8375 -0
  1260. package/dist/web-extension-cjs/register-e72afd7b.js.map +1 -0
  1261. package/dist/web-extension-cjs/scripts/run_node_tests.d.ts +17 -0
  1262. package/dist/web-extension-cjs/src/api/account_management/account.d.ts +59 -0
  1263. package/dist/web-extension-cjs/src/api/account_management/email_and_password.d.ts +49 -0
  1264. package/dist/web-extension-cjs/src/api/account_management/mfa.d.ts +107 -0
  1265. package/dist/web-extension-cjs/src/api/account_management/profile.d.ts +29 -0
  1266. package/dist/web-extension-cjs/src/api/authentication/create_auth_uri.d.ts +26 -0
  1267. package/dist/web-extension-cjs/src/api/authentication/custom_token.d.ts +26 -0
  1268. package/dist/web-extension-cjs/src/api/authentication/email_and_password.d.ts +86 -0
  1269. package/dist/web-extension-cjs/src/api/authentication/email_link.d.ts +32 -0
  1270. package/dist/web-extension-cjs/src/api/authentication/idp.d.ts +40 -0
  1271. package/dist/web-extension-cjs/src/api/authentication/mfa.d.ts +73 -0
  1272. package/dist/web-extension-cjs/src/api/authentication/recaptcha.d.ts +34 -0
  1273. package/dist/web-extension-cjs/src/api/authentication/sign_up.d.ts +34 -0
  1274. package/dist/web-extension-cjs/src/api/authentication/sms.d.ts +54 -0
  1275. package/dist/web-extension-cjs/src/api/authentication/token.d.ts +37 -0
  1276. package/dist/web-extension-cjs/src/api/errors.d.ts +129 -0
  1277. package/dist/web-extension-cjs/src/api/index.d.ts +101 -0
  1278. package/dist/web-extension-cjs/src/api/password_policy/get_password_policy.d.ts +48 -0
  1279. package/dist/web-extension-cjs/src/api/project_config/get_project_config.d.ts +25 -0
  1280. package/dist/web-extension-cjs/src/core/action_code_url.d.ts +73 -0
  1281. package/dist/web-extension-cjs/src/core/auth/auth_event_manager.d.ts +34 -0
  1282. package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +133 -0
  1283. package/dist/web-extension-cjs/src/core/auth/emulator.d.ts +42 -0
  1284. package/dist/web-extension-cjs/src/core/auth/firebase_internal.d.ts +35 -0
  1285. package/dist/web-extension-cjs/src/core/auth/initialize.d.ts +46 -0
  1286. package/dist/web-extension-cjs/src/core/auth/middleware.d.ts +25 -0
  1287. package/dist/web-extension-cjs/src/core/auth/password_policy_impl.d.ts +59 -0
  1288. package/dist/web-extension-cjs/src/core/auth/register.d.ts +23 -0
  1289. package/dist/web-extension-cjs/src/core/credentials/auth_credential.d.ts +75 -0
  1290. package/dist/web-extension-cjs/src/core/credentials/email.d.ts +60 -0
  1291. package/dist/web-extension-cjs/src/core/credentials/index.d.ts +23 -0
  1292. package/dist/web-extension-cjs/src/core/credentials/oauth.d.ts +81 -0
  1293. package/dist/web-extension-cjs/src/core/credentials/phone.d.ts +52 -0
  1294. package/dist/web-extension-cjs/src/core/credentials/saml.d.ts +52 -0
  1295. package/dist/web-extension-cjs/src/core/errors.d.ts +328 -0
  1296. package/dist/web-extension-cjs/src/core/index.d.ts +230 -0
  1297. package/dist/web-extension-cjs/src/core/persistence/in_memory.d.ts +35 -0
  1298. package/dist/web-extension-cjs/src/core/persistence/index.d.ts +42 -0
  1299. package/dist/web-extension-cjs/src/core/persistence/persistence_user_manager.d.ts +45 -0
  1300. package/dist/web-extension-cjs/src/core/providers/email.d.ts +83 -0
  1301. package/dist/web-extension-cjs/src/core/providers/facebook.d.ts +93 -0
  1302. package/dist/web-extension-cjs/src/core/providers/federated.d.ts +64 -0
  1303. package/dist/web-extension-cjs/src/core/providers/github.d.ts +89 -0
  1304. package/dist/web-extension-cjs/src/core/providers/google.d.ts +96 -0
  1305. package/dist/web-extension-cjs/src/core/providers/oauth.d.ts +151 -0
  1306. package/dist/web-extension-cjs/src/core/providers/saml.d.ts +62 -0
  1307. package/dist/web-extension-cjs/src/core/providers/twitter.d.ts +103 -0
  1308. package/dist/web-extension-cjs/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  1309. package/dist/web-extension-cjs/src/core/strategies/action_code_settings.d.ts +19 -0
  1310. package/dist/web-extension-cjs/src/core/strategies/anonymous.d.ts +32 -0
  1311. package/dist/web-extension-cjs/src/core/strategies/credential.d.ts +64 -0
  1312. package/dist/web-extension-cjs/src/core/strategies/custom_token.d.ts +37 -0
  1313. package/dist/web-extension-cjs/src/core/strategies/email.d.ts +104 -0
  1314. package/dist/web-extension-cjs/src/core/strategies/email_and_password.d.ts +139 -0
  1315. package/dist/web-extension-cjs/src/core/strategies/email_link.d.ts +107 -0
  1316. package/dist/web-extension-cjs/src/core/strategies/idp.d.ts +32 -0
  1317. package/dist/web-extension-cjs/src/core/strategies/redirect.d.ts +36 -0
  1318. package/dist/web-extension-cjs/src/core/user/account_info.d.ts +68 -0
  1319. package/dist/web-extension-cjs/src/core/user/additional_user_info.d.ts +31 -0
  1320. package/dist/web-extension-cjs/src/core/user/id_token_result.d.ts +48 -0
  1321. package/dist/web-extension-cjs/src/core/user/invalidation.d.ts +18 -0
  1322. package/dist/web-extension-cjs/src/core/user/link_unlink.d.ts +30 -0
  1323. package/dist/web-extension-cjs/src/core/user/proactive_refresh.d.ts +34 -0
  1324. package/dist/web-extension-cjs/src/core/user/reauthenticate.d.ts +20 -0
  1325. package/dist/web-extension-cjs/src/core/user/reload.d.ts +29 -0
  1326. package/dist/web-extension-cjs/src/core/user/token_manager.d.ts +50 -0
  1327. package/dist/web-extension-cjs/src/core/user/user_credential_impl.d.ts +37 -0
  1328. package/dist/web-extension-cjs/src/core/user/user_impl.d.ts +74 -0
  1329. package/dist/web-extension-cjs/src/core/user/user_metadata.d.ts +27 -0
  1330. package/dist/web-extension-cjs/src/core/util/assert.d.ts +94 -0
  1331. package/dist/web-extension-cjs/src/core/util/browser.d.ts +50 -0
  1332. package/dist/web-extension-cjs/src/core/util/delay.d.ts +31 -0
  1333. package/dist/web-extension-cjs/src/core/util/emulator.d.ts +18 -0
  1334. package/dist/web-extension-cjs/src/core/util/event_id.d.ts +17 -0
  1335. package/dist/web-extension-cjs/src/core/util/fetch_provider.d.ts +25 -0
  1336. package/dist/web-extension-cjs/src/core/util/handler.d.ts +20 -0
  1337. package/dist/web-extension-cjs/src/core/util/instantiator.d.ts +28 -0
  1338. package/dist/web-extension-cjs/src/core/util/location.d.ts +19 -0
  1339. package/dist/web-extension-cjs/src/core/util/log.d.ts +23 -0
  1340. package/dist/web-extension-cjs/src/core/util/navigator.d.ts +21 -0
  1341. package/dist/web-extension-cjs/src/core/util/providers.d.ts +23 -0
  1342. package/dist/web-extension-cjs/src/core/util/resolver.d.ts +25 -0
  1343. package/dist/web-extension-cjs/src/core/util/time.d.ts +17 -0
  1344. package/dist/web-extension-cjs/src/core/util/validate_origin.d.ts +18 -0
  1345. package/dist/web-extension-cjs/src/core/util/version.d.ts +31 -0
  1346. package/dist/web-extension-cjs/src/index.d.ts +18 -0
  1347. package/dist/web-extension-cjs/src/mfa/assertions/totp.d.ts +124 -0
  1348. package/dist/web-extension-cjs/src/mfa/index.d.ts +18 -0
  1349. package/dist/web-extension-cjs/src/mfa/mfa_assertion.d.ts +27 -0
  1350. package/dist/web-extension-cjs/src/mfa/mfa_error.d.ts +35 -0
  1351. package/dist/web-extension-cjs/src/mfa/mfa_info.d.ts +36 -0
  1352. package/dist/web-extension-cjs/src/mfa/mfa_resolver.d.ts +41 -0
  1353. package/dist/web-extension-cjs/src/mfa/mfa_session.d.ts +39 -0
  1354. package/dist/web-extension-cjs/src/mfa/mfa_user.d.ts +38 -0
  1355. package/dist/web-extension-cjs/src/model/application_verifier.d.ts +23 -0
  1356. package/dist/web-extension-cjs/src/model/auth.d.ts +90 -0
  1357. package/dist/web-extension-cjs/src/model/enum_maps.d.ts +98 -0
  1358. package/dist/web-extension-cjs/src/model/enums.d.ts +74 -0
  1359. package/dist/web-extension-cjs/src/model/id_token.d.ts +87 -0
  1360. package/dist/web-extension-cjs/src/model/password_policy.d.ts +111 -0
  1361. package/dist/web-extension-cjs/src/model/popup_redirect.d.ts +94 -0
  1362. package/dist/web-extension-cjs/src/model/public_types.d.ts +1291 -0
  1363. package/dist/web-extension-cjs/src/model/user.d.ts +83 -0
  1364. package/dist/web-extension-cjs/src/platform_browser/auth_window.d.ts +37 -0
  1365. package/dist/web-extension-cjs/src/platform_browser/iframe/gapi.d.ts +19 -0
  1366. package/dist/web-extension-cjs/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  1367. package/dist/web-extension-cjs/src/platform_browser/iframe/iframe.d.ts +18 -0
  1368. package/dist/web-extension-cjs/src/platform_browser/index.d.ts +27 -0
  1369. package/dist/web-extension-cjs/src/platform_browser/load_js.d.ts +29 -0
  1370. package/dist/web-extension-cjs/src/platform_browser/messagechannel/index.d.ts +87 -0
  1371. package/dist/web-extension-cjs/src/platform_browser/messagechannel/promise.d.ts +33 -0
  1372. package/dist/web-extension-cjs/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  1373. package/dist/web-extension-cjs/src/platform_browser/messagechannel/sender.d.ts +46 -0
  1374. package/dist/web-extension-cjs/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  1375. package/dist/web-extension-cjs/src/platform_browser/persistence/browser.d.ts +27 -0
  1376. package/dist/web-extension-cjs/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  1377. package/dist/web-extension-cjs/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  1378. package/dist/web-extension-cjs/src/platform_browser/persistence/local_storage.d.ts +25 -0
  1379. package/dist/web-extension-cjs/src/platform_browser/persistence/session_storage.d.ts +24 -0
  1380. package/dist/web-extension-cjs/src/platform_browser/popup_redirect.d.ts +27 -0
  1381. package/dist/web-extension-cjs/src/platform_browser/providers/phone.d.ts +154 -0
  1382. package/dist/web-extension-cjs/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  1383. package/dist/web-extension-cjs/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  1384. package/dist/web-extension-cjs/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  1385. package/dist/web-extension-cjs/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  1386. package/dist/web-extension-cjs/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  1387. package/dist/web-extension-cjs/src/platform_browser/strategies/phone.d.ts +116 -0
  1388. package/dist/web-extension-cjs/src/platform_browser/strategies/popup.d.ts +109 -0
  1389. package/dist/web-extension-cjs/src/platform_browser/strategies/redirect.d.ts +176 -0
  1390. package/dist/web-extension-cjs/src/platform_browser/util/popup.d.ts +24 -0
  1391. package/dist/web-extension-cjs/src/platform_browser/util/worker.d.ts +20 -0
  1392. package/dist/web-extension-cjs/src/platform_cordova/plugins.d.ts +42 -0
  1393. package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  1394. package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  1395. package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  1396. package/dist/web-extension-cjs/src/platform_cordova/strategies/redirect.d.ts +20 -0
  1397. package/dist/web-extension-cjs/src/platform_node/index.d.ts +51 -0
  1398. package/dist/web-extension-cjs/src/platform_react_native/persistence/react_native.d.ts +25 -0
  1399. package/dist/web-extension-cjs/test/helpers/api/helper.d.ts +22 -0
  1400. package/dist/web-extension-cjs/test/helpers/delay.d.ts +20 -0
  1401. package/dist/web-extension-cjs/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  1402. package/dist/web-extension-cjs/test/helpers/fake_service_worker.d.ts +22 -0
  1403. package/dist/web-extension-cjs/test/helpers/id_token_response.d.ts +18 -0
  1404. package/dist/web-extension-cjs/test/helpers/iframe_event.d.ts +19 -0
  1405. package/dist/web-extension-cjs/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  1406. package/dist/web-extension-cjs/test/helpers/integration/helpers.d.ts +32 -0
  1407. package/dist/web-extension-cjs/test/helpers/integration/settings.d.ts +23 -0
  1408. package/dist/web-extension-cjs/test/helpers/jwt.d.ts +17 -0
  1409. package/dist/web-extension-cjs/test/helpers/mock_auth.d.ts +47 -0
  1410. package/dist/web-extension-cjs/test/helpers/mock_auth_credential.d.ts +31 -0
  1411. package/dist/web-extension-cjs/test/helpers/mock_fetch.d.ts +31 -0
  1412. package/dist/web-extension-cjs/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  1413. package/dist/web-extension-cjs/test/helpers/redirect_persistence.d.ts +24 -0
  1414. package/dist/web-extension-cjs/test/helpers/timeout_stub.d.ts +34 -0
  1415. package/dist/web-extension-cjs/test/integration/flows/middleware_test_generator.d.ts +18 -0
  1416. package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  1417. package/dist/web-extension-cjs/test/integration/webdriver/util/functions.d.ts +81 -0
  1418. package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +31 -0
  1419. package/dist/web-extension-cjs/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  1420. package/dist/web-extension-cjs/test/integration/webdriver/util/test_runner.d.ts +19 -0
  1421. package/dist/web-extension-cjs/test/integration/webdriver/util/test_server.d.ts +27 -0
  1422. package/dist/web-extension-cjs/test/integration/webdriver/util/ui_page.d.ts +33 -0
  1423. package/dist/web-extension-esm/auth-web-extension-public.d.ts +3210 -0
  1424. package/dist/web-extension-esm/auth-web-extension.d.ts +3763 -0
  1425. package/dist/web-extension-esm/index.cordova.d.ts +32 -0
  1426. package/dist/web-extension-esm/index.d.ts +38 -0
  1427. package/dist/web-extension-esm/index.doc.d.ts +24 -0
  1428. package/dist/web-extension-esm/index.js +49 -0
  1429. package/dist/web-extension-esm/index.js.map +1 -0
  1430. package/dist/web-extension-esm/index.node.d.ts +17 -0
  1431. package/dist/web-extension-esm/index.rn.d.ts +40 -0
  1432. package/dist/web-extension-esm/index.shared.d.ts +19 -0
  1433. package/dist/web-extension-esm/index.web-extension.d.ts +31 -0
  1434. package/dist/web-extension-esm/index.webworker.d.ts +21 -0
  1435. package/dist/web-extension-esm/internal/index.d.ts +42 -0
  1436. package/dist/web-extension-esm/internal.js +3466 -0
  1437. package/dist/web-extension-esm/internal.js.map +1 -0
  1438. package/dist/web-extension-esm/package.json +1 -0
  1439. package/dist/web-extension-esm/register-7238101c.js +8255 -0
  1440. package/dist/web-extension-esm/register-7238101c.js.map +1 -0
  1441. package/dist/web-extension-esm/scripts/run_node_tests.d.ts +17 -0
  1442. package/dist/web-extension-esm/src/api/account_management/account.d.ts +59 -0
  1443. package/dist/web-extension-esm/src/api/account_management/email_and_password.d.ts +49 -0
  1444. package/dist/web-extension-esm/src/api/account_management/mfa.d.ts +107 -0
  1445. package/dist/web-extension-esm/src/api/account_management/profile.d.ts +29 -0
  1446. package/dist/web-extension-esm/src/api/authentication/create_auth_uri.d.ts +26 -0
  1447. package/dist/web-extension-esm/src/api/authentication/custom_token.d.ts +26 -0
  1448. package/dist/web-extension-esm/src/api/authentication/email_and_password.d.ts +86 -0
  1449. package/dist/web-extension-esm/src/api/authentication/email_link.d.ts +32 -0
  1450. package/dist/web-extension-esm/src/api/authentication/idp.d.ts +40 -0
  1451. package/dist/web-extension-esm/src/api/authentication/mfa.d.ts +73 -0
  1452. package/dist/web-extension-esm/src/api/authentication/recaptcha.d.ts +34 -0
  1453. package/dist/web-extension-esm/src/api/authentication/sign_up.d.ts +34 -0
  1454. package/dist/web-extension-esm/src/api/authentication/sms.d.ts +54 -0
  1455. package/dist/web-extension-esm/src/api/authentication/token.d.ts +37 -0
  1456. package/dist/web-extension-esm/src/api/errors.d.ts +129 -0
  1457. package/dist/web-extension-esm/src/api/index.d.ts +101 -0
  1458. package/dist/web-extension-esm/src/api/password_policy/get_password_policy.d.ts +48 -0
  1459. package/dist/web-extension-esm/src/api/project_config/get_project_config.d.ts +25 -0
  1460. package/dist/web-extension-esm/src/core/action_code_url.d.ts +73 -0
  1461. package/dist/web-extension-esm/src/core/auth/auth_event_manager.d.ts +34 -0
  1462. package/dist/web-extension-esm/src/core/auth/auth_impl.d.ts +133 -0
  1463. package/dist/web-extension-esm/src/core/auth/emulator.d.ts +42 -0
  1464. package/dist/web-extension-esm/src/core/auth/firebase_internal.d.ts +35 -0
  1465. package/dist/web-extension-esm/src/core/auth/initialize.d.ts +46 -0
  1466. package/dist/web-extension-esm/src/core/auth/middleware.d.ts +25 -0
  1467. package/dist/web-extension-esm/src/core/auth/password_policy_impl.d.ts +59 -0
  1468. package/dist/web-extension-esm/src/core/auth/register.d.ts +23 -0
  1469. package/dist/web-extension-esm/src/core/credentials/auth_credential.d.ts +75 -0
  1470. package/dist/web-extension-esm/src/core/credentials/email.d.ts +60 -0
  1471. package/dist/web-extension-esm/src/core/credentials/index.d.ts +23 -0
  1472. package/dist/web-extension-esm/src/core/credentials/oauth.d.ts +81 -0
  1473. package/dist/web-extension-esm/src/core/credentials/phone.d.ts +52 -0
  1474. package/dist/web-extension-esm/src/core/credentials/saml.d.ts +52 -0
  1475. package/dist/web-extension-esm/src/core/errors.d.ts +328 -0
  1476. package/dist/web-extension-esm/src/core/index.d.ts +230 -0
  1477. package/dist/web-extension-esm/src/core/persistence/in_memory.d.ts +35 -0
  1478. package/dist/web-extension-esm/src/core/persistence/index.d.ts +42 -0
  1479. package/dist/web-extension-esm/src/core/persistence/persistence_user_manager.d.ts +45 -0
  1480. package/dist/web-extension-esm/src/core/providers/email.d.ts +83 -0
  1481. package/dist/web-extension-esm/src/core/providers/facebook.d.ts +93 -0
  1482. package/dist/web-extension-esm/src/core/providers/federated.d.ts +64 -0
  1483. package/dist/web-extension-esm/src/core/providers/github.d.ts +89 -0
  1484. package/dist/web-extension-esm/src/core/providers/google.d.ts +96 -0
  1485. package/dist/web-extension-esm/src/core/providers/oauth.d.ts +151 -0
  1486. package/dist/web-extension-esm/src/core/providers/saml.d.ts +62 -0
  1487. package/dist/web-extension-esm/src/core/providers/twitter.d.ts +103 -0
  1488. package/dist/web-extension-esm/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  1489. package/dist/web-extension-esm/src/core/strategies/action_code_settings.d.ts +19 -0
  1490. package/dist/web-extension-esm/src/core/strategies/anonymous.d.ts +32 -0
  1491. package/dist/web-extension-esm/src/core/strategies/credential.d.ts +64 -0
  1492. package/dist/web-extension-esm/src/core/strategies/custom_token.d.ts +37 -0
  1493. package/dist/web-extension-esm/src/core/strategies/email.d.ts +104 -0
  1494. package/dist/web-extension-esm/src/core/strategies/email_and_password.d.ts +139 -0
  1495. package/dist/web-extension-esm/src/core/strategies/email_link.d.ts +107 -0
  1496. package/dist/web-extension-esm/src/core/strategies/idp.d.ts +32 -0
  1497. package/dist/web-extension-esm/src/core/strategies/redirect.d.ts +36 -0
  1498. package/dist/web-extension-esm/src/core/user/account_info.d.ts +68 -0
  1499. package/dist/web-extension-esm/src/core/user/additional_user_info.d.ts +31 -0
  1500. package/dist/web-extension-esm/src/core/user/id_token_result.d.ts +48 -0
  1501. package/dist/web-extension-esm/src/core/user/invalidation.d.ts +18 -0
  1502. package/dist/web-extension-esm/src/core/user/link_unlink.d.ts +30 -0
  1503. package/dist/web-extension-esm/src/core/user/proactive_refresh.d.ts +34 -0
  1504. package/dist/web-extension-esm/src/core/user/reauthenticate.d.ts +20 -0
  1505. package/dist/web-extension-esm/src/core/user/reload.d.ts +29 -0
  1506. package/dist/web-extension-esm/src/core/user/token_manager.d.ts +50 -0
  1507. package/dist/web-extension-esm/src/core/user/user_credential_impl.d.ts +37 -0
  1508. package/dist/web-extension-esm/src/core/user/user_impl.d.ts +74 -0
  1509. package/dist/web-extension-esm/src/core/user/user_metadata.d.ts +27 -0
  1510. package/dist/web-extension-esm/src/core/util/assert.d.ts +94 -0
  1511. package/dist/web-extension-esm/src/core/util/browser.d.ts +50 -0
  1512. package/dist/web-extension-esm/src/core/util/delay.d.ts +31 -0
  1513. package/dist/web-extension-esm/src/core/util/emulator.d.ts +18 -0
  1514. package/dist/web-extension-esm/src/core/util/event_id.d.ts +17 -0
  1515. package/dist/web-extension-esm/src/core/util/fetch_provider.d.ts +25 -0
  1516. package/dist/web-extension-esm/src/core/util/handler.d.ts +20 -0
  1517. package/dist/web-extension-esm/src/core/util/instantiator.d.ts +28 -0
  1518. package/dist/web-extension-esm/src/core/util/location.d.ts +19 -0
  1519. package/dist/web-extension-esm/src/core/util/log.d.ts +23 -0
  1520. package/dist/web-extension-esm/src/core/util/navigator.d.ts +21 -0
  1521. package/dist/web-extension-esm/src/core/util/providers.d.ts +23 -0
  1522. package/dist/web-extension-esm/src/core/util/resolver.d.ts +25 -0
  1523. package/dist/web-extension-esm/src/core/util/time.d.ts +17 -0
  1524. package/dist/web-extension-esm/src/core/util/validate_origin.d.ts +18 -0
  1525. package/dist/web-extension-esm/src/core/util/version.d.ts +31 -0
  1526. package/dist/web-extension-esm/src/index.d.ts +18 -0
  1527. package/dist/web-extension-esm/src/mfa/assertions/totp.d.ts +124 -0
  1528. package/dist/web-extension-esm/src/mfa/index.d.ts +18 -0
  1529. package/dist/web-extension-esm/src/mfa/mfa_assertion.d.ts +27 -0
  1530. package/dist/web-extension-esm/src/mfa/mfa_error.d.ts +35 -0
  1531. package/dist/web-extension-esm/src/mfa/mfa_info.d.ts +36 -0
  1532. package/dist/web-extension-esm/src/mfa/mfa_resolver.d.ts +41 -0
  1533. package/dist/web-extension-esm/src/mfa/mfa_session.d.ts +39 -0
  1534. package/dist/web-extension-esm/src/mfa/mfa_user.d.ts +38 -0
  1535. package/dist/web-extension-esm/src/model/application_verifier.d.ts +23 -0
  1536. package/dist/web-extension-esm/src/model/auth.d.ts +90 -0
  1537. package/dist/web-extension-esm/src/model/enum_maps.d.ts +98 -0
  1538. package/dist/web-extension-esm/src/model/enums.d.ts +74 -0
  1539. package/dist/web-extension-esm/src/model/id_token.d.ts +87 -0
  1540. package/dist/web-extension-esm/src/model/password_policy.d.ts +111 -0
  1541. package/dist/web-extension-esm/src/model/popup_redirect.d.ts +94 -0
  1542. package/dist/web-extension-esm/src/model/public_types.d.ts +1291 -0
  1543. package/dist/web-extension-esm/src/model/user.d.ts +83 -0
  1544. package/dist/web-extension-esm/src/platform_browser/auth_window.d.ts +37 -0
  1545. package/dist/web-extension-esm/src/platform_browser/iframe/gapi.d.ts +19 -0
  1546. package/dist/web-extension-esm/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  1547. package/dist/web-extension-esm/src/platform_browser/iframe/iframe.d.ts +18 -0
  1548. package/dist/web-extension-esm/src/platform_browser/index.d.ts +27 -0
  1549. package/dist/web-extension-esm/src/platform_browser/load_js.d.ts +29 -0
  1550. package/dist/web-extension-esm/src/platform_browser/messagechannel/index.d.ts +87 -0
  1551. package/dist/web-extension-esm/src/platform_browser/messagechannel/promise.d.ts +33 -0
  1552. package/dist/web-extension-esm/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  1553. package/dist/web-extension-esm/src/platform_browser/messagechannel/sender.d.ts +46 -0
  1554. package/dist/web-extension-esm/src/platform_browser/mfa/assertions/phone.d.ts +59 -0
  1555. package/dist/web-extension-esm/src/platform_browser/persistence/browser.d.ts +27 -0
  1556. package/dist/web-extension-esm/src/platform_browser/persistence/cookie_storage.d.ts +40 -0
  1557. package/dist/web-extension-esm/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  1558. package/dist/web-extension-esm/src/platform_browser/persistence/local_storage.d.ts +25 -0
  1559. package/dist/web-extension-esm/src/platform_browser/persistence/session_storage.d.ts +24 -0
  1560. package/dist/web-extension-esm/src/platform_browser/popup_redirect.d.ts +27 -0
  1561. package/dist/web-extension-esm/src/platform_browser/providers/phone.d.ts +154 -0
  1562. package/dist/web-extension-esm/src/platform_browser/recaptcha/recaptcha.d.ts +78 -0
  1563. package/dist/web-extension-esm/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +45 -0
  1564. package/dist/web-extension-esm/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  1565. package/dist/web-extension-esm/src/platform_browser/recaptcha/recaptcha_mock.d.ts +66 -0
  1566. package/dist/web-extension-esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +92 -0
  1567. package/dist/web-extension-esm/src/platform_browser/strategies/phone.d.ts +116 -0
  1568. package/dist/web-extension-esm/src/platform_browser/strategies/popup.d.ts +109 -0
  1569. package/dist/web-extension-esm/src/platform_browser/strategies/redirect.d.ts +176 -0
  1570. package/dist/web-extension-esm/src/platform_browser/util/popup.d.ts +24 -0
  1571. package/dist/web-extension-esm/src/platform_browser/util/worker.d.ts +20 -0
  1572. package/dist/web-extension-esm/src/platform_cordova/plugins.d.ts +42 -0
  1573. package/dist/web-extension-esm/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  1574. package/dist/web-extension-esm/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  1575. package/dist/web-extension-esm/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  1576. package/dist/web-extension-esm/src/platform_cordova/strategies/redirect.d.ts +20 -0
  1577. package/dist/web-extension-esm/src/platform_node/index.d.ts +51 -0
  1578. package/dist/web-extension-esm/src/platform_react_native/persistence/react_native.d.ts +25 -0
  1579. package/dist/web-extension-esm/test/helpers/api/helper.d.ts +22 -0
  1580. package/dist/web-extension-esm/test/helpers/delay.d.ts +20 -0
  1581. package/dist/web-extension-esm/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  1582. package/dist/web-extension-esm/test/helpers/fake_service_worker.d.ts +22 -0
  1583. package/dist/web-extension-esm/test/helpers/id_token_response.d.ts +18 -0
  1584. package/dist/web-extension-esm/test/helpers/iframe_event.d.ts +19 -0
  1585. package/dist/web-extension-esm/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  1586. package/dist/web-extension-esm/test/helpers/integration/helpers.d.ts +32 -0
  1587. package/dist/web-extension-esm/test/helpers/integration/settings.d.ts +23 -0
  1588. package/dist/web-extension-esm/test/helpers/jwt.d.ts +17 -0
  1589. package/dist/web-extension-esm/test/helpers/mock_auth.d.ts +47 -0
  1590. package/dist/web-extension-esm/test/helpers/mock_auth_credential.d.ts +31 -0
  1591. package/dist/web-extension-esm/test/helpers/mock_fetch.d.ts +31 -0
  1592. package/dist/web-extension-esm/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  1593. package/dist/web-extension-esm/test/helpers/redirect_persistence.d.ts +24 -0
  1594. package/dist/web-extension-esm/test/helpers/timeout_stub.d.ts +34 -0
  1595. package/dist/web-extension-esm/test/integration/flows/middleware_test_generator.d.ts +18 -0
  1596. package/dist/web-extension-esm/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  1597. package/dist/web-extension-esm/test/integration/webdriver/util/functions.d.ts +81 -0
  1598. package/dist/web-extension-esm/test/integration/webdriver/util/idp_page.d.ts +31 -0
  1599. package/dist/web-extension-esm/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  1600. package/dist/web-extension-esm/test/integration/webdriver/util/test_runner.d.ts +19 -0
  1601. package/dist/web-extension-esm/test/integration/webdriver/util/test_server.d.ts +27 -0
  1602. package/dist/web-extension-esm/test/integration/webdriver/util/ui_page.d.ts +33 -0
  1603. package/dist/web-extension-esm/tsdoc-metadata.json +11 -0
  1604. package/internal/package.json +12 -0
  1605. package/package.json +186 -0
  1606. package/web-extension/package.json +8 -0
@@ -0,0 +1,3397 @@
1
+ import { CompleteFn } from '@firebase/util';
2
+ import { ErrorFactory } from '@firebase/util';
3
+ import { ErrorFn } from '@firebase/util';
4
+ import { FirebaseApp } from '@firebase/app';
5
+ import { FirebaseError } from '@firebase/util';
6
+ import { NextFn } from '@firebase/util';
7
+ import { Observer } from '@firebase/util';
8
+ import { Unsubscribe } from '@firebase/util';
9
+
10
+ /**
11
+ * A response from {@link checkActionCode}.
12
+ *
13
+ * @public
14
+ */
15
+ export declare interface ActionCodeInfo {
16
+ /**
17
+ * The data associated with the action code.
18
+ *
19
+ * @remarks
20
+ * For the {@link ActionCodeOperation}.PASSWORD_RESET, {@link ActionCodeOperation}.VERIFY_EMAIL, and
21
+ * {@link ActionCodeOperation}.RECOVER_EMAIL actions, this object contains an email field with the address
22
+ * the email was sent to.
23
+ *
24
+ * For the {@link ActionCodeOperation}.RECOVER_EMAIL action, which allows a user to undo an email address
25
+ * change, this object also contains a `previousEmail` field with the user account's current
26
+ * email address. After the action completes, the user's email address will revert to the value
27
+ * in the `email` field from the value in `previousEmail` field.
28
+ *
29
+ * For the {@link ActionCodeOperation}.VERIFY_AND_CHANGE_EMAIL action, which allows a user to verify the
30
+ * email before updating it, this object contains a `previousEmail` field with the user account's
31
+ * email address before updating. After the action completes, the user's email address will be
32
+ * updated to the value in the `email` field from the value in `previousEmail` field.
33
+ *
34
+ * For the {@link ActionCodeOperation}.REVERT_SECOND_FACTOR_ADDITION action, which allows a user to
35
+ * unenroll a newly added second factor, this object contains a `multiFactorInfo` field with
36
+ * the information about the second factor. For phone second factor, the `multiFactorInfo`
37
+ * is a {@link MultiFactorInfo} object, which contains the phone number.
38
+ */
39
+ data: {
40
+ email?: string | null;
41
+ multiFactorInfo?: MultiFactorInfo | null;
42
+ previousEmail?: string | null;
43
+ };
44
+ /**
45
+ * The type of operation that generated the action code.
46
+ */
47
+ operation: (typeof ActionCodeOperation)[keyof typeof ActionCodeOperation];
48
+ }
49
+
50
+ /**
51
+ * An enumeration of the possible email action types.
52
+ *
53
+ * @public
54
+ */
55
+ export declare const ActionCodeOperation: {
56
+ /** The email link sign-in action. */
57
+ readonly EMAIL_SIGNIN: "EMAIL_SIGNIN";
58
+ /** The password reset action. */
59
+ readonly PASSWORD_RESET: "PASSWORD_RESET";
60
+ /** The email revocation action. */
61
+ readonly RECOVER_EMAIL: "RECOVER_EMAIL";
62
+ /** The revert second factor addition email action. */
63
+ readonly REVERT_SECOND_FACTOR_ADDITION: "REVERT_SECOND_FACTOR_ADDITION";
64
+ /** The revert second factor addition email action. */
65
+ readonly VERIFY_AND_CHANGE_EMAIL: "VERIFY_AND_CHANGE_EMAIL";
66
+ /** The email verification action. */
67
+ readonly VERIFY_EMAIL: "VERIFY_EMAIL";
68
+ };
69
+
70
+ /**
71
+ * An interface that defines the required continue/state URL with optional Android and iOS
72
+ * bundle identifiers.
73
+ *
74
+ * @public
75
+ */
76
+ export declare interface ActionCodeSettings {
77
+ /**
78
+ * Sets the Android package name.
79
+ *
80
+ * @remarks
81
+ * This will try to open the link in an Android app if it is installed.
82
+ */
83
+ android?: {
84
+ installApp?: boolean;
85
+ minimumVersion?: string;
86
+ packageName: string;
87
+ };
88
+ /**
89
+ * When set to true, the action code link will be be sent as a Universal Link or Android App
90
+ * Link and will be opened by the app if installed.
91
+ *
92
+ * @remarks
93
+ * In the false case, the code will be sent to the web widget first and then on continue will
94
+ * redirect to the app if installed.
95
+ *
96
+ * @defaultValue false
97
+ */
98
+ handleCodeInApp?: boolean;
99
+ /**
100
+ * Sets the iOS bundle ID.
101
+ *
102
+ * @remarks
103
+ * This will try to open the link in an iOS app if it is installed.
104
+ */
105
+ iOS?: {
106
+ bundleId: string;
107
+ };
108
+ /**
109
+ * Sets the link continue/state URL.
110
+ *
111
+ * @remarks
112
+ * This has different meanings in different contexts:
113
+ * - When the link is handled in the web action widgets, this is the deep link in the
114
+ * `continueUrl` query parameter.
115
+ * - When the link is handled in the app directly, this is the `continueUrl` query parameter in
116
+ * the deep link of the Dynamic Link or Hosting link.
117
+ */
118
+ url: string;
119
+ /**
120
+ * When multiple custom dynamic link domains are defined for a project, specify which one to use
121
+ * when the link is to be opened via a specified mobile app (for example, `example.page.link`).
122
+ *
123
+ *
124
+ * @defaultValue The first domain is automatically selected.
125
+ *
126
+ * @deprecated Firebase Dynamic Links is deprecated and will be shut down as early as August
127
+ * 2025. Instead, use {@link ActionCodeSettings.linkDomain} to set a custom domain for mobile
128
+ * links. Learn more in the {@link https://firebase.google.com/support/dynamic-links-faq | Dynamic Links deprecation FAQ}.
129
+ */
130
+ dynamicLinkDomain?: string;
131
+ /**
132
+ * The optional custom Firebase Hosting domain to use when the link is to be opened via
133
+ * a specified mobile app. The domain must be configured in Firebase Hosting and owned
134
+ * by the project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).
135
+ *
136
+ * @defaultValue The default Hosting domain will be used (for example, `example.firebaseapp.com`).
137
+ */
138
+ linkDomain?: string;
139
+ }
140
+
141
+ /**
142
+ * @license
143
+ * Copyright 2020 Google LLC
144
+ *
145
+ * Licensed under the Apache License, Version 2.0 (the "License");
146
+ * you may not use this file except in compliance with the License.
147
+ * You may obtain a copy of the License at
148
+ *
149
+ * http://www.apache.org/licenses/LICENSE-2.0
150
+ *
151
+ * Unless required by applicable law or agreed to in writing, software
152
+ * distributed under the License is distributed on an "AS IS" BASIS,
153
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
154
+ * See the License for the specific language governing permissions and
155
+ * limitations under the License.
156
+ */
157
+ /**
158
+ * A utility class to parse email action URLs such as password reset, email verification,
159
+ * email link sign in, etc.
160
+ *
161
+ * @public
162
+ */
163
+ export declare class ActionCodeURL {
164
+ /**
165
+ * The API key of the email action link.
166
+ */
167
+ readonly apiKey: string;
168
+ /**
169
+ * The action code of the email action link.
170
+ */
171
+ readonly code: string;
172
+ /**
173
+ * The continue URL of the email action link. Null if not provided.
174
+ */
175
+ readonly continueUrl: string | null;
176
+ /**
177
+ * The language code of the email action link. Null if not provided.
178
+ */
179
+ readonly languageCode: string | null;
180
+ /**
181
+ * The action performed by the email action link. It returns from one of the types from
182
+ * {@link ActionCodeInfo}
183
+ */
184
+ readonly operation: string;
185
+ /**
186
+ * The tenant ID of the email action link. Null if the email action is from the parent project.
187
+ */
188
+ readonly tenantId: string | null;
189
+ /* Excluded from this release type: __constructor */
190
+ /**
191
+ * Parses the email action link string and returns an {@link ActionCodeURL} if the link is valid,
192
+ * otherwise returns null.
193
+ *
194
+ * @param link - The email action link string.
195
+ * @returns The {@link ActionCodeURL} object, or null if the link is invalid.
196
+ *
197
+ * @public
198
+ */
199
+ static parseLink(link: string): ActionCodeURL | null;
200
+ }
201
+
202
+ /**
203
+ * A structure containing additional user information from a federated identity provider.
204
+ *
205
+ * @public
206
+ */
207
+ export declare interface AdditionalUserInfo {
208
+ /**
209
+ * Whether the user is new (created via sign-up) or existing (authenticated using sign-in).
210
+ */
211
+ readonly isNewUser: boolean;
212
+ /**
213
+ * Map containing IDP-specific user data.
214
+ */
215
+ readonly profile: Record<string, unknown> | null;
216
+ /**
217
+ * Identifier for the provider used to authenticate this user.
218
+ */
219
+ readonly providerId: string | null;
220
+ /**
221
+ * The username if the provider is GitHub or Twitter.
222
+ */
223
+ readonly username?: string | null;
224
+ }
225
+
226
+ declare interface APIUserInfo {
227
+ localId?: string;
228
+ displayName?: string;
229
+ photoUrl?: string;
230
+ email?: string;
231
+ emailVerified?: boolean;
232
+ phoneNumber?: string;
233
+ lastLoginAt?: number;
234
+ createdAt?: number;
235
+ tenantId?: string;
236
+ passwordHash?: string;
237
+ providerUserInfo?: ProviderUserInfo[];
238
+ mfaInfo?: MfaEnrollment[];
239
+ }
240
+
241
+ /**
242
+ * A verifier for domain verification and abuse prevention.
243
+ *
244
+ * @remarks
245
+ * Currently, the only implementation is {@link RecaptchaVerifier}.
246
+ *
247
+ * @public
248
+ */
249
+ export declare interface ApplicationVerifier {
250
+ /**
251
+ * Identifies the type of application verifier (e.g. "recaptcha").
252
+ */
253
+ readonly type: string;
254
+ /**
255
+ * Executes the verification process.
256
+ *
257
+ * @returns A Promise for a token that can be used to assert the validity of a request.
258
+ */
259
+ verify(): Promise<string>;
260
+ }
261
+
262
+ /**
263
+ * Applies a verification code sent to the user by email or other out-of-band mechanism.
264
+ *
265
+ * @param auth - The {@link Auth} instance.
266
+ * @param oobCode - A verification code sent to the user.
267
+ *
268
+ * @public
269
+ */
270
+ export declare function applyActionCode(auth: Auth, oobCode: string): Promise<void>;
271
+
272
+ declare type AppName = string;
273
+
274
+ /**
275
+ * Interface representing Firebase Auth service.
276
+ *
277
+ * @remarks
278
+ * See {@link https://firebase.google.com/docs/auth/ | Firebase Authentication} for a full guide
279
+ * on how to use the Firebase Auth service.
280
+ *
281
+ * @public
282
+ */
283
+ export declare interface Auth {
284
+ /** The {@link @firebase/app#FirebaseApp} associated with the `Auth` service instance. */
285
+ readonly app: FirebaseApp;
286
+ /** The name of the app associated with the `Auth` service instance. */
287
+ readonly name: string;
288
+ /** The {@link Config} used to initialize this instance. */
289
+ readonly config: Config;
290
+ /**
291
+ * Changes the type of persistence on the `Auth` instance.
292
+ *
293
+ * @remarks
294
+ * This will affect the currently saved Auth session and applies this type of persistence for
295
+ * future sign-in requests, including sign-in with redirect requests.
296
+ *
297
+ * This makes it easy for a user signing in to specify whether their session should be
298
+ * remembered or not. It also makes it easier to never persist the Auth state for applications
299
+ * that are shared by other users or have sensitive data.
300
+ *
301
+ * This method does not work in a Node.js environment.
302
+ *
303
+ * @example
304
+ * ```javascript
305
+ * auth.setPersistence(browserSessionPersistence);
306
+ * ```
307
+ *
308
+ * @param persistence - The {@link Persistence} to use.
309
+ */
310
+ setPersistence(persistence: Persistence): Promise<void>;
311
+ /**
312
+ * The {@link Auth} instance's language code.
313
+ *
314
+ * @remarks
315
+ * This is a readable/writable property. When set to null, the default Firebase Console language
316
+ * setting is applied. The language code will propagate to email action templates (password
317
+ * reset, email verification and email change revocation), SMS templates for phone authentication,
318
+ * reCAPTCHA verifier and OAuth popup/redirect operations provided the specified providers support
319
+ * localization with the language code specified.
320
+ */
321
+ languageCode: string | null;
322
+ /**
323
+ * The {@link Auth} instance's tenant ID.
324
+ *
325
+ * @remarks
326
+ * This is a readable/writable property. When you set the tenant ID of an {@link Auth} instance, all
327
+ * future sign-in/sign-up operations will pass this tenant ID and sign in or sign up users to
328
+ * the specified tenant project. When set to null, users are signed in to the parent project.
329
+ *
330
+ * @example
331
+ * ```javascript
332
+ * // Set the tenant ID on Auth instance.
333
+ * auth.tenantId = 'TENANT_PROJECT_ID';
334
+ *
335
+ * // All future sign-in request now include tenant ID.
336
+ * const result = await signInWithEmailAndPassword(auth, email, password);
337
+ * // result.user.tenantId should be 'TENANT_PROJECT_ID'.
338
+ * ```
339
+ *
340
+ * @defaultValue null
341
+ */
342
+ tenantId: string | null;
343
+ /**
344
+ * The {@link Auth} instance's settings.
345
+ *
346
+ * @remarks
347
+ * This is used to edit/read configuration related options such as app verification mode for
348
+ * phone authentication.
349
+ */
350
+ readonly settings: AuthSettings;
351
+ /**
352
+ * Adds an observer for changes to the user's sign-in state.
353
+ *
354
+ * @remarks
355
+ * To keep the old behavior, see {@link Auth.onIdTokenChanged}.
356
+ *
357
+ * @param nextOrObserver - callback triggered on change.
358
+ * @param error - Deprecated. This callback is never triggered. Errors
359
+ * on signing in/out can be caught in promises returned from
360
+ * sign-in/sign-out functions.
361
+ * @param completed - Deprecated. This callback is never triggered.
362
+ */
363
+ onAuthStateChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
364
+ /**
365
+ * Adds a blocking callback that runs before an auth state change
366
+ * sets a new user.
367
+ *
368
+ * @param callback - callback triggered before new user value is set.
369
+ * If this throws, it blocks the user from being set.
370
+ * @param onAbort - callback triggered if a later `beforeAuthStateChanged()`
371
+ * callback throws, allowing you to undo any side effects.
372
+ */
373
+ beforeAuthStateChanged(callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;
374
+ /**
375
+ * Adds an observer for changes to the signed-in user's ID token.
376
+ *
377
+ * @remarks
378
+ * This includes sign-in, sign-out, and token refresh events.
379
+ *
380
+ * @param nextOrObserver - callback triggered on change.
381
+ * @param error - Deprecated. This callback is never triggered. Errors
382
+ * on signing in/out can be caught in promises returned from
383
+ * sign-in/sign-out functions.
384
+ * @param completed - Deprecated. This callback is never triggered.
385
+ */
386
+ onIdTokenChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
387
+ /**
388
+ * returns a promise that resolves immediately when the initial
389
+ * auth state is settled. When the promise resolves, the current user might be a valid user
390
+ * or `null` if the user signed out.
391
+ */
392
+ authStateReady(): Promise<void>;
393
+ /** The currently signed-in user (or null). */
394
+ readonly currentUser: User | null;
395
+ /** The current emulator configuration (or null). */
396
+ readonly emulatorConfig: EmulatorConfig | null;
397
+ /**
398
+ * Asynchronously sets the provided user as {@link Auth.currentUser} on the {@link Auth} instance.
399
+ *
400
+ * @remarks
401
+ * A new instance copy of the user provided will be made and set as currentUser.
402
+ *
403
+ * This will trigger {@link Auth.onAuthStateChanged} and {@link Auth.onIdTokenChanged} listeners
404
+ * like other sign in methods.
405
+ *
406
+ * The operation fails with an error if the user to be updated belongs to a different Firebase
407
+ * project.
408
+ *
409
+ * @param user - The new {@link User}.
410
+ */
411
+ updateCurrentUser(user: User | null): Promise<void>;
412
+ /**
413
+ * Sets the current language to the default device/browser preference.
414
+ */
415
+ useDeviceLanguage(): void;
416
+ /**
417
+ * Signs out the current user. This does not automatically revoke the user's ID token.
418
+ *
419
+ * @remarks
420
+ * This method is not supported by {@link Auth} instances created with a
421
+ * {@link @firebase/app#FirebaseServerApp}.
422
+ */
423
+ signOut(): Promise<void>;
424
+ }
425
+
426
+ /**
427
+ * Interface that represents the credentials returned by an {@link AuthProvider}.
428
+ *
429
+ * @remarks
430
+ * Implementations specify the details about each auth provider's credential requirements.
431
+ *
432
+ * @public
433
+ */
434
+ export declare class AuthCredential {
435
+ /**
436
+ * The authentication provider ID for the credential.
437
+ *
438
+ * @remarks
439
+ * For example, 'facebook.com', or 'google.com'.
440
+ */
441
+ readonly providerId: string;
442
+ /**
443
+ * The authentication sign in method for the credential.
444
+ *
445
+ * @remarks
446
+ * For example, {@link SignInMethod}.EMAIL_PASSWORD, or
447
+ * {@link SignInMethod}.EMAIL_LINK. This corresponds to the sign-in method
448
+ * identifier as returned in {@link fetchSignInMethodsForEmail}.
449
+ */
450
+ readonly signInMethod: string;
451
+ /* Excluded from this release type: __constructor */
452
+ /**
453
+ * Returns a JSON-serializable representation of this object.
454
+ *
455
+ * @returns a JSON-serializable representation of this object.
456
+ */
457
+ toJSON(): object;
458
+ /* Excluded from this release type: _getIdTokenResponse */
459
+ /* Excluded from this release type: _linkToIdToken */
460
+ /* Excluded from this release type: _getReauthenticationResolver */
461
+ }
462
+
463
+ /**
464
+ * Interface for an `Auth` error.
465
+ *
466
+ * @public
467
+ */
468
+ export declare interface AuthError extends FirebaseError {
469
+ /** Details about the Firebase Auth error. */
470
+ readonly customData: {
471
+ /** The name of the Firebase App which triggered this error. */
472
+ readonly appName: string;
473
+ /** The email address of the user's account, used for sign-in and linking. */
474
+ readonly email?: string;
475
+ /** The phone number of the user's account, used for sign-in and linking. */
476
+ readonly phoneNumber?: string;
477
+ /**
478
+ * The tenant ID being used for sign-in and linking.
479
+ *
480
+ * @remarks
481
+ * If you use {@link signInWithRedirect} to sign in,
482
+ * you have to set the tenant ID on the {@link Auth} instance again as the tenant ID is not persisted
483
+ * after redirection.
484
+ */
485
+ readonly tenantId?: string;
486
+ };
487
+ }
488
+
489
+ /* Excluded from this release type: AuthErrorCode */
490
+
491
+ /**
492
+ * A map of potential `Auth` error codes, for easier comparison with errors
493
+ * thrown by the SDK.
494
+ *
495
+ * @remarks
496
+ * Note that you can't tree-shake individual keys
497
+ * in the map, so by using the map you might substantially increase your
498
+ * bundle size.
499
+ *
500
+ * @public
501
+ */
502
+ export declare const AuthErrorCodes: {
503
+ readonly ADMIN_ONLY_OPERATION: "auth/admin-restricted-operation";
504
+ readonly ARGUMENT_ERROR: "auth/argument-error";
505
+ readonly APP_NOT_AUTHORIZED: "auth/app-not-authorized";
506
+ readonly APP_NOT_INSTALLED: "auth/app-not-installed";
507
+ readonly CAPTCHA_CHECK_FAILED: "auth/captcha-check-failed";
508
+ readonly CODE_EXPIRED: "auth/code-expired";
509
+ readonly CORDOVA_NOT_READY: "auth/cordova-not-ready";
510
+ readonly CORS_UNSUPPORTED: "auth/cors-unsupported";
511
+ readonly CREDENTIAL_ALREADY_IN_USE: "auth/credential-already-in-use";
512
+ readonly CREDENTIAL_MISMATCH: "auth/custom-token-mismatch";
513
+ readonly CREDENTIAL_TOO_OLD_LOGIN_AGAIN: "auth/requires-recent-login";
514
+ readonly DEPENDENT_SDK_INIT_BEFORE_AUTH: "auth/dependent-sdk-initialized-before-auth";
515
+ readonly DYNAMIC_LINK_NOT_ACTIVATED: "auth/dynamic-link-not-activated";
516
+ readonly EMAIL_CHANGE_NEEDS_VERIFICATION: "auth/email-change-needs-verification";
517
+ readonly EMAIL_EXISTS: "auth/email-already-in-use";
518
+ readonly EMULATOR_CONFIG_FAILED: "auth/emulator-config-failed";
519
+ readonly EXPIRED_OOB_CODE: "auth/expired-action-code";
520
+ readonly EXPIRED_POPUP_REQUEST: "auth/cancelled-popup-request";
521
+ readonly INTERNAL_ERROR: "auth/internal-error";
522
+ readonly INVALID_API_KEY: "auth/invalid-api-key";
523
+ readonly INVALID_APP_CREDENTIAL: "auth/invalid-app-credential";
524
+ readonly INVALID_APP_ID: "auth/invalid-app-id";
525
+ readonly INVALID_AUTH: "auth/invalid-user-token";
526
+ readonly INVALID_AUTH_EVENT: "auth/invalid-auth-event";
527
+ readonly INVALID_CERT_HASH: "auth/invalid-cert-hash";
528
+ readonly INVALID_CODE: "auth/invalid-verification-code";
529
+ readonly INVALID_CONTINUE_URI: "auth/invalid-continue-uri";
530
+ readonly INVALID_CORDOVA_CONFIGURATION: "auth/invalid-cordova-configuration";
531
+ readonly INVALID_CUSTOM_TOKEN: "auth/invalid-custom-token";
532
+ readonly INVALID_DYNAMIC_LINK_DOMAIN: "auth/invalid-dynamic-link-domain";
533
+ readonly INVALID_EMAIL: "auth/invalid-email";
534
+ readonly INVALID_EMULATOR_SCHEME: "auth/invalid-emulator-scheme";
535
+ readonly INVALID_IDP_RESPONSE: "auth/invalid-credential";
536
+ readonly INVALID_LOGIN_CREDENTIALS: "auth/invalid-credential";
537
+ readonly INVALID_MESSAGE_PAYLOAD: "auth/invalid-message-payload";
538
+ readonly INVALID_MFA_SESSION: "auth/invalid-multi-factor-session";
539
+ readonly INVALID_OAUTH_CLIENT_ID: "auth/invalid-oauth-client-id";
540
+ readonly INVALID_OAUTH_PROVIDER: "auth/invalid-oauth-provider";
541
+ readonly INVALID_OOB_CODE: "auth/invalid-action-code";
542
+ readonly INVALID_ORIGIN: "auth/unauthorized-domain";
543
+ readonly INVALID_PASSWORD: "auth/wrong-password";
544
+ readonly INVALID_PERSISTENCE: "auth/invalid-persistence-type";
545
+ readonly INVALID_PHONE_NUMBER: "auth/invalid-phone-number";
546
+ readonly INVALID_PROVIDER_ID: "auth/invalid-provider-id";
547
+ readonly INVALID_RECIPIENT_EMAIL: "auth/invalid-recipient-email";
548
+ readonly INVALID_SENDER: "auth/invalid-sender";
549
+ readonly INVALID_SESSION_INFO: "auth/invalid-verification-id";
550
+ readonly INVALID_TENANT_ID: "auth/invalid-tenant-id";
551
+ readonly MFA_INFO_NOT_FOUND: "auth/multi-factor-info-not-found";
552
+ readonly MFA_REQUIRED: "auth/multi-factor-auth-required";
553
+ readonly MISSING_ANDROID_PACKAGE_NAME: "auth/missing-android-pkg-name";
554
+ readonly MISSING_APP_CREDENTIAL: "auth/missing-app-credential";
555
+ readonly MISSING_AUTH_DOMAIN: "auth/auth-domain-config-required";
556
+ readonly MISSING_CODE: "auth/missing-verification-code";
557
+ readonly MISSING_CONTINUE_URI: "auth/missing-continue-uri";
558
+ readonly MISSING_IFRAME_START: "auth/missing-iframe-start";
559
+ readonly MISSING_IOS_BUNDLE_ID: "auth/missing-ios-bundle-id";
560
+ readonly MISSING_OR_INVALID_NONCE: "auth/missing-or-invalid-nonce";
561
+ readonly MISSING_MFA_INFO: "auth/missing-multi-factor-info";
562
+ readonly MISSING_MFA_SESSION: "auth/missing-multi-factor-session";
563
+ readonly MISSING_PHONE_NUMBER: "auth/missing-phone-number";
564
+ readonly MISSING_PASSWORD: "auth/missing-password";
565
+ readonly MISSING_SESSION_INFO: "auth/missing-verification-id";
566
+ readonly MODULE_DESTROYED: "auth/app-deleted";
567
+ readonly NEED_CONFIRMATION: "auth/account-exists-with-different-credential";
568
+ readonly NETWORK_REQUEST_FAILED: "auth/network-request-failed";
569
+ readonly NULL_USER: "auth/null-user";
570
+ readonly NO_AUTH_EVENT: "auth/no-auth-event";
571
+ readonly NO_SUCH_PROVIDER: "auth/no-such-provider";
572
+ readonly OPERATION_NOT_ALLOWED: "auth/operation-not-allowed";
573
+ readonly OPERATION_NOT_SUPPORTED: "auth/operation-not-supported-in-this-environment";
574
+ readonly POPUP_BLOCKED: "auth/popup-blocked";
575
+ readonly POPUP_CLOSED_BY_USER: "auth/popup-closed-by-user";
576
+ readonly PROVIDER_ALREADY_LINKED: "auth/provider-already-linked";
577
+ readonly QUOTA_EXCEEDED: "auth/quota-exceeded";
578
+ readonly REDIRECT_CANCELLED_BY_USER: "auth/redirect-cancelled-by-user";
579
+ readonly REDIRECT_OPERATION_PENDING: "auth/redirect-operation-pending";
580
+ readonly REJECTED_CREDENTIAL: "auth/rejected-credential";
581
+ readonly SECOND_FACTOR_ALREADY_ENROLLED: "auth/second-factor-already-in-use";
582
+ readonly SECOND_FACTOR_LIMIT_EXCEEDED: "auth/maximum-second-factor-count-exceeded";
583
+ readonly TENANT_ID_MISMATCH: "auth/tenant-id-mismatch";
584
+ readonly TIMEOUT: "auth/timeout";
585
+ readonly TOKEN_EXPIRED: "auth/user-token-expired";
586
+ readonly TOO_MANY_ATTEMPTS_TRY_LATER: "auth/too-many-requests";
587
+ readonly UNAUTHORIZED_DOMAIN: "auth/unauthorized-continue-uri";
588
+ readonly UNSUPPORTED_FIRST_FACTOR: "auth/unsupported-first-factor";
589
+ readonly UNSUPPORTED_PERSISTENCE: "auth/unsupported-persistence-type";
590
+ readonly UNSUPPORTED_TENANT_OPERATION: "auth/unsupported-tenant-operation";
591
+ readonly UNVERIFIED_EMAIL: "auth/unverified-email";
592
+ readonly USER_CANCELLED: "auth/user-cancelled";
593
+ readonly USER_DELETED: "auth/user-not-found";
594
+ readonly USER_DISABLED: "auth/user-disabled";
595
+ readonly USER_MISMATCH: "auth/user-mismatch";
596
+ readonly USER_SIGNED_OUT: "auth/user-signed-out";
597
+ readonly WEAK_PASSWORD: "auth/weak-password";
598
+ readonly WEB_STORAGE_UNSUPPORTED: "auth/web-storage-unsupported";
599
+ readonly ALREADY_INITIALIZED: "auth/already-initialized";
600
+ readonly RECAPTCHA_NOT_ENABLED: "auth/recaptcha-not-enabled";
601
+ readonly MISSING_RECAPTCHA_TOKEN: "auth/missing-recaptcha-token";
602
+ readonly INVALID_RECAPTCHA_TOKEN: "auth/invalid-recaptcha-token";
603
+ readonly INVALID_RECAPTCHA_ACTION: "auth/invalid-recaptcha-action";
604
+ readonly MISSING_CLIENT_TYPE: "auth/missing-client-type";
605
+ readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
606
+ readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
607
+ readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
608
+ readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
609
+ };
610
+
611
+ /**
612
+ * A mapping of error codes to error messages.
613
+ *
614
+ * @remarks
615
+ *
616
+ * While error messages are useful for debugging (providing verbose textual
617
+ * context around what went wrong), these strings take up a lot of space in the
618
+ * compiled code. When deploying code in production, using {@link prodErrorMap}
619
+ * will save you roughly 10k compressed/gzipped over {@link debugErrorMap}. You
620
+ * can select the error map during initialization:
621
+ *
622
+ * ```javascript
623
+ * initializeAuth(app, {errorMap: debugErrorMap})
624
+ * ```
625
+ *
626
+ * When initializing Auth, {@link prodErrorMap} is default.
627
+ *
628
+ * @public
629
+ */
630
+ export declare interface AuthErrorMap {
631
+ }
632
+
633
+ /* Excluded from this release type: AuthErrorParams */
634
+
635
+ /* Excluded from this release type: AuthEvent */
636
+
637
+ /* Excluded from this release type: AuthEventConsumer */
638
+
639
+ declare interface AuthEventError extends Error {
640
+ code: string;
641
+ message: string;
642
+ }
643
+
644
+ /* Excluded from this release type: AuthEventType */
645
+
646
+ /* Excluded from this release type: AuthInternal */
647
+
648
+ declare class AuthPopup {
649
+ readonly window: Window | null;
650
+ associatedEvent: string | null;
651
+ constructor(window: Window | null);
652
+ close(): void;
653
+ }
654
+
655
+ /**
656
+ * Interface that represents an auth provider, used to facilitate creating {@link AuthCredential}.
657
+ *
658
+ * @public
659
+ */
660
+ export declare interface AuthProvider {
661
+ /**
662
+ * Provider for which credentials can be constructed.
663
+ */
664
+ readonly providerId: string;
665
+ }
666
+
667
+ /**
668
+ * Interface representing an {@link Auth} instance's settings.
669
+ *
670
+ * @remarks Currently used for enabling/disabling app verification for phone Auth testing.
671
+ *
672
+ * @public
673
+ */
674
+ export declare interface AuthSettings {
675
+ /**
676
+ * When set, this property disables app verification for the purpose of testing phone
677
+ * authentication. For this property to take effect, it needs to be set before rendering a
678
+ * reCAPTCHA app verifier. When this is disabled, a mock reCAPTCHA is rendered instead. This is
679
+ * useful for manual testing during development or for automated integration tests.
680
+ *
681
+ * In order to use this feature, you will need to
682
+ * {@link https://firebase.google.com/docs/auth/web/phone-auth#test-with-whitelisted-phone-numbers | whitelist your phone number}
683
+ * via the Firebase Console.
684
+ *
685
+ * The default value is false (app verification is enabled).
686
+ */
687
+ appVerificationDisabledForTesting: boolean;
688
+ }
689
+
690
+ /**
691
+ * MFA Info as returned by the API.
692
+ */
693
+ declare interface BaseMfaEnrollment {
694
+ mfaEnrollmentId: string;
695
+ enrolledAt: number;
696
+ displayName?: string;
697
+ }
698
+
699
+ /**
700
+ * Common code to all OAuth providers. This is separate from the
701
+ * {@link OAuthProvider} so that child providers (like
702
+ * {@link GoogleAuthProvider}) don't inherit the `credential` instance method.
703
+ * Instead, they rely on a static `credential` method.
704
+ */
705
+ declare abstract class BaseOAuthProvider extends FederatedAuthProvider implements AuthProvider {
706
+ /* Excluded from this release type: scopes */
707
+ /**
708
+ * Add an OAuth scope to the credential.
709
+ *
710
+ * @param scope - Provider OAuth scope to add.
711
+ */
712
+ addScope(scope: string): AuthProvider;
713
+ /**
714
+ * Retrieve the current list of OAuth scopes.
715
+ */
716
+ getScopes(): string[];
717
+ }
718
+
719
+ /**
720
+ * Adds a blocking callback that runs before an auth state change
721
+ * sets a new user.
722
+ *
723
+ * @param auth - The {@link Auth} instance.
724
+ * @param callback - callback triggered before new user value is set.
725
+ * If this throws, it blocks the user from being set.
726
+ * @param onAbort - callback triggered if a later `beforeAuthStateChanged()`
727
+ * callback throws, allowing you to undo any side effects.
728
+ */
729
+ export declare function beforeAuthStateChanged(auth: Auth, callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;
730
+
731
+ /**
732
+ * An implementation of {@link Persistence} of type `LOCAL` using `localStorage`
733
+ * for the underlying storage.
734
+ *
735
+ * @public
736
+ */
737
+ export declare const browserLocalPersistence: Persistence;
738
+
739
+ /**
740
+ * An implementation of {@link Persistence} of `SESSION` using `sessionStorage`
741
+ * for the underlying storage.
742
+ *
743
+ * @public
744
+ */
745
+ export declare const browserSessionPersistence: Persistence;
746
+
747
+ /**
748
+ * Checks a verification code sent to the user by email or other out-of-band mechanism.
749
+ *
750
+ * @returns metadata about the code.
751
+ *
752
+ * @param auth - The {@link Auth} instance.
753
+ * @param oobCode - A verification code sent to the user.
754
+ *
755
+ * @public
756
+ */
757
+ export declare function checkActionCode(auth: Auth, oobCode: string): Promise<ActionCodeInfo>;
758
+
759
+ /* Excluded from this release type: ClientPlatform */
760
+ export { CompleteFn }
761
+
762
+ /**
763
+ * Interface representing the `Auth` config.
764
+ *
765
+ * @public
766
+ */
767
+ export declare interface Config {
768
+ /**
769
+ * The API Key used to communicate with the Firebase Auth backend.
770
+ */
771
+ apiKey: string;
772
+ /**
773
+ * The host at which the Firebase Auth backend is running.
774
+ */
775
+ apiHost: string;
776
+ /**
777
+ * The scheme used to communicate with the Firebase Auth backend.
778
+ */
779
+ apiScheme: string;
780
+ /**
781
+ * The host at which the Secure Token API is running.
782
+ */
783
+ tokenApiHost: string;
784
+ /**
785
+ * The SDK Client Version.
786
+ */
787
+ sdkClientVersion: string;
788
+ /**
789
+ * The domain at which the web widgets are hosted (provided via Firebase Config).
790
+ */
791
+ authDomain?: string;
792
+ }
793
+
794
+ /* Excluded from this release type: ConfigInternal */
795
+
796
+ /**
797
+ * A result from a phone number sign-in, link, or reauthenticate call.
798
+ *
799
+ * @public
800
+ */
801
+ export declare interface ConfirmationResult {
802
+ /**
803
+ * The phone number authentication operation's verification ID.
804
+ *
805
+ * @remarks
806
+ * This can be used along with the verification code to initialize a
807
+ * {@link PhoneAuthCredential}.
808
+ */
809
+ readonly verificationId: string;
810
+ /**
811
+ * Finishes a phone number sign-in, link, or reauthentication.
812
+ *
813
+ * @example
814
+ * ```javascript
815
+ * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);
816
+ * // Obtain verificationCode from the user.
817
+ * const userCredential = await confirmationResult.confirm(verificationCode);
818
+ * ```
819
+ *
820
+ * @param verificationCode - The code that was sent to the user's mobile device.
821
+ */
822
+ confirm(verificationCode: string): Promise<UserCredential>;
823
+ }
824
+
825
+ /**
826
+ * Completes the password reset process, given a confirmation code and new password.
827
+ *
828
+ * @param auth - The {@link Auth} instance.
829
+ * @param oobCode - A confirmation code sent to the user.
830
+ * @param newPassword - The new password.
831
+ *
832
+ * @public
833
+ */
834
+ export declare function confirmPasswordReset(auth: Auth, oobCode: string, newPassword: string): Promise<void>;
835
+
836
+ /**
837
+ * Changes the {@link Auth} instance to communicate with the Firebase Auth Emulator, instead of production
838
+ * Firebase Auth services.
839
+ *
840
+ * @remarks
841
+ * This must be called synchronously immediately following the first call to
842
+ * {@link initializeAuth}. Do not use with production credentials as emulator
843
+ * traffic is not encrypted.
844
+ *
845
+ *
846
+ * @example
847
+ * ```javascript
848
+ * connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true });
849
+ * ```
850
+ *
851
+ * @param auth - The {@link Auth} instance.
852
+ * @param url - The URL at which the emulator is running (eg, 'http://localhost:9099').
853
+ * @param options - Optional. `options.disableWarnings` defaults to `false`. Set it to
854
+ * `true` to disable the warning banner attached to the DOM.
855
+ *
856
+ * @public
857
+ */
858
+ export declare function connectAuthEmulator(auth: Auth, url: string, options?: {
859
+ disableWarnings: boolean;
860
+ }): void;
861
+
862
+ /**
863
+ * An implementation of {@link PopupRedirectResolver} suitable for Cordova
864
+ * based applications.
865
+ *
866
+ * @public
867
+ */
868
+ export declare const cordovaPopupRedirectResolver: PopupRedirectResolver;
869
+
870
+ /**
871
+ * Creates a new user account associated with the specified email address and password.
872
+ *
873
+ * @remarks
874
+ * On successful creation of the user account, this user will also be signed in to your application.
875
+ *
876
+ * User account creation can fail if the account already exists or the password is invalid.
877
+ *
878
+ * This method is not supported on {@link Auth} instances created with a
879
+ * {@link @firebase/app#FirebaseServerApp}.
880
+ *
881
+ * Note: The email address acts as a unique identifier for the user and enables an email-based
882
+ * password reset. This function will create a new user account and set the initial user password.
883
+ *
884
+ * @param auth - The {@link Auth} instance.
885
+ * @param email - The user's email address.
886
+ * @param password - The user's chosen password.
887
+ *
888
+ * @public
889
+ */
890
+ export declare function createUserWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
891
+
892
+ /**
893
+ * Map of OAuth Custom Parameters.
894
+ *
895
+ * @public
896
+ */
897
+ export declare type CustomParameters = Record<string, string>;
898
+
899
+ /**
900
+ * A verbose error map with detailed descriptions for most error codes.
901
+ *
902
+ * See discussion at {@link AuthErrorMap}
903
+ *
904
+ * @public
905
+ */
906
+ export declare const debugErrorMap: AuthErrorMap;
907
+
908
+ /**
909
+ * Deletes and signs out the user.
910
+ *
911
+ * @remarks
912
+ * Important: this is a security-sensitive operation that requires the user to have recently
913
+ * signed in. If this requirement isn't met, ask the user to authenticate again and then call
914
+ * {@link reauthenticateWithCredential}.
915
+ *
916
+ * @param user - The user.
917
+ *
918
+ * @public
919
+ */
920
+ export declare function deleteUser(user: User): Promise<void>;
921
+
922
+ /**
923
+ * The dependencies that can be used to initialize an {@link Auth} instance.
924
+ *
925
+ * @remarks
926
+ *
927
+ * The modular SDK enables tree shaking by allowing explicit declarations of
928
+ * dependencies. For example, a web app does not need to include code that
929
+ * enables Cordova redirect sign in. That functionality is therefore split into
930
+ * {@link browserPopupRedirectResolver} and
931
+ * {@link cordovaPopupRedirectResolver}. The dependencies object is how Auth is
932
+ * configured to reduce bundle sizes.
933
+ *
934
+ * There are two ways to initialize an {@link Auth} instance: {@link getAuth} and
935
+ * {@link initializeAuth}. `getAuth` initializes everything using
936
+ * platform-specific configurations, while `initializeAuth` takes a
937
+ * `Dependencies` object directly, giving you more control over what is used.
938
+ *
939
+ * @public
940
+ */
941
+ export declare interface Dependencies {
942
+ /**
943
+ * Which {@link Persistence} to use. If this is an array, the first
944
+ * `Persistence` that the device supports is used. The SDK searches for an
945
+ * existing account in order and, if one is found in a secondary
946
+ * `Persistence`, the account is moved to the primary `Persistence`.
947
+ *
948
+ * If no persistence is provided, the SDK falls back on
949
+ * {@link inMemoryPersistence}.
950
+ */
951
+ persistence?: Persistence | Persistence[];
952
+ /**
953
+ * The {@link PopupRedirectResolver} to use. This value depends on the
954
+ * platform. Options are {@link browserPopupRedirectResolver} and
955
+ * {@link cordovaPopupRedirectResolver}. This field is optional if neither
956
+ * {@link signInWithPopup} or {@link signInWithRedirect} are being used.
957
+ */
958
+ popupRedirectResolver?: PopupRedirectResolver;
959
+ /**
960
+ * Which {@link AuthErrorMap} to use.
961
+ */
962
+ errorMap?: AuthErrorMap;
963
+ }
964
+
965
+ /**
966
+ * Interface that represents the credentials returned by {@link EmailAuthProvider} for
967
+ * {@link ProviderId}.PASSWORD
968
+ *
969
+ * @remarks
970
+ * Covers both {@link SignInMethod}.EMAIL_PASSWORD and
971
+ * {@link SignInMethod}.EMAIL_LINK.
972
+ *
973
+ * @public
974
+ */
975
+ export declare class EmailAuthCredential extends AuthCredential {
976
+ /* Excluded from this release type: _email */
977
+ /* Excluded from this release type: _password */
978
+ /* Excluded from this release type: _tenantId */
979
+ /* Excluded from this release type: __constructor */
980
+ /* Excluded from this release type: _fromEmailAndPassword */
981
+ /* Excluded from this release type: _fromEmailAndCode */
982
+ /** {@inheritdoc AuthCredential.toJSON} */
983
+ toJSON(): object;
984
+ /**
985
+ * Static method to deserialize a JSON representation of an object into an {@link AuthCredential}.
986
+ *
987
+ * @param json - Either `object` or the stringified representation of the object. When string is
988
+ * provided, `JSON.parse` would be called first.
989
+ *
990
+ * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
991
+ */
992
+ static fromJSON(json: object | string): EmailAuthCredential | null;
993
+ /* Excluded from this release type: _getIdTokenResponse */
994
+ /* Excluded from this release type: _linkToIdToken */
995
+ /* Excluded from this release type: _getReauthenticationResolver */
996
+ }
997
+
998
+ /**
999
+ * Provider for generating {@link EmailAuthCredential}.
1000
+ *
1001
+ * @public
1002
+ */
1003
+ export declare class EmailAuthProvider implements AuthProvider {
1004
+ /**
1005
+ * Always set to {@link ProviderId}.PASSWORD, even for email link.
1006
+ */
1007
+ static readonly PROVIDER_ID: 'password';
1008
+ /**
1009
+ * Always set to {@link SignInMethod}.EMAIL_PASSWORD.
1010
+ */
1011
+ static readonly EMAIL_PASSWORD_SIGN_IN_METHOD: 'password';
1012
+ /**
1013
+ * Always set to {@link SignInMethod}.EMAIL_LINK.
1014
+ */
1015
+ static readonly EMAIL_LINK_SIGN_IN_METHOD: 'emailLink';
1016
+ /**
1017
+ * Always set to {@link ProviderId}.PASSWORD, even for email link.
1018
+ */
1019
+ readonly providerId: "password";
1020
+ /**
1021
+ * Initialize an {@link AuthCredential} using an email and password.
1022
+ *
1023
+ * @example
1024
+ * ```javascript
1025
+ * const authCredential = EmailAuthProvider.credential(email, password);
1026
+ * const userCredential = await signInWithCredential(auth, authCredential);
1027
+ * ```
1028
+ *
1029
+ * @example
1030
+ * ```javascript
1031
+ * const userCredential = await signInWithEmailAndPassword(auth, email, password);
1032
+ * ```
1033
+ *
1034
+ * @param email - Email address.
1035
+ * @param password - User account password.
1036
+ * @returns The auth provider credential.
1037
+ */
1038
+ static credential(email: string, password: string): EmailAuthCredential;
1039
+ /**
1040
+ * Initialize an {@link AuthCredential} using an email and an email link after a sign in with
1041
+ * email link operation.
1042
+ *
1043
+ * @example
1044
+ * ```javascript
1045
+ * const authCredential = EmailAuthProvider.credentialWithLink(auth, email, emailLink);
1046
+ * const userCredential = await signInWithCredential(auth, authCredential);
1047
+ * ```
1048
+ *
1049
+ * @example
1050
+ * ```javascript
1051
+ * await sendSignInLinkToEmail(auth, email);
1052
+ * // Obtain emailLink from user.
1053
+ * const userCredential = await signInWithEmailLink(auth, email, emailLink);
1054
+ * ```
1055
+ *
1056
+ * @param auth - The {@link Auth} instance used to verify the link.
1057
+ * @param email - Email address.
1058
+ * @param emailLink - Sign-in email link.
1059
+ * @returns - The auth provider credential.
1060
+ */
1061
+ static credentialWithLink(email: string, emailLink: string): EmailAuthCredential;
1062
+ }
1063
+
1064
+ /**
1065
+ * Configuration of Firebase Authentication Emulator.
1066
+ * @public
1067
+ */
1068
+ export declare interface EmulatorConfig {
1069
+ /**
1070
+ * The protocol used to communicate with the emulator ("http"/"https").
1071
+ */
1072
+ readonly protocol: string;
1073
+ /**
1074
+ * The hostname of the emulator, which may be a domain ("localhost"), IPv4 address ("127.0.0.1")
1075
+ * or quoted IPv6 address ("[::1]").
1076
+ */
1077
+ readonly host: string;
1078
+ /**
1079
+ * The port of the emulator, or null if port isn't specified (i.e. protocol default).
1080
+ */
1081
+ readonly port: number | null;
1082
+ /**
1083
+ * The emulator-specific options.
1084
+ */
1085
+ readonly options: {
1086
+ /**
1087
+ * Whether the warning banner attached to the DOM was disabled.
1088
+ */
1089
+ readonly disableWarnings: boolean;
1090
+ };
1091
+ }
1092
+
1093
+ declare const enum EnforcementState {
1094
+ ENFORCE = "ENFORCE",
1095
+ AUDIT = "AUDIT",
1096
+ OFF = "OFF",
1097
+ ENFORCEMENT_STATE_UNSPECIFIED = "ENFORCEMENT_STATE_UNSPECIFIED"
1098
+ }
1099
+ export { ErrorFn }
1100
+
1101
+ /* Excluded from this release type: EventManager */
1102
+
1103
+ /**
1104
+ * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.FACEBOOK.
1105
+ *
1106
+ * @example
1107
+ * ```javascript
1108
+ * // Sign in using a redirect.
1109
+ * const provider = new FacebookAuthProvider();
1110
+ * // Start a sign in process for an unauthenticated user.
1111
+ * provider.addScope('user_birthday');
1112
+ * await signInWithRedirect(auth, provider);
1113
+ * // This will trigger a full page redirect away from your app
1114
+ *
1115
+ * // After returning from the redirect when your app initializes you can obtain the result
1116
+ * const result = await getRedirectResult(auth);
1117
+ * if (result) {
1118
+ * // This is the signed-in user
1119
+ * const user = result.user;
1120
+ * // This gives you a Facebook Access Token.
1121
+ * const credential = FacebookAuthProvider.credentialFromResult(result);
1122
+ * const token = credential.accessToken;
1123
+ * }
1124
+ * ```
1125
+ *
1126
+ * @example
1127
+ * ```javascript
1128
+ * // Sign in using a popup.
1129
+ * const provider = new FacebookAuthProvider();
1130
+ * provider.addScope('user_birthday');
1131
+ * const result = await signInWithPopup(auth, provider);
1132
+ *
1133
+ * // The signed-in user info.
1134
+ * const user = result.user;
1135
+ * // This gives you a Facebook Access Token.
1136
+ * const credential = FacebookAuthProvider.credentialFromResult(result);
1137
+ * const token = credential.accessToken;
1138
+ * ```
1139
+ *
1140
+ * @public
1141
+ */
1142
+ export declare class FacebookAuthProvider extends BaseOAuthProvider {
1143
+ /** Always set to {@link SignInMethod}.FACEBOOK. */
1144
+ static readonly FACEBOOK_SIGN_IN_METHOD: 'facebook.com';
1145
+ /** Always set to {@link ProviderId}.FACEBOOK. */
1146
+ static readonly PROVIDER_ID: 'facebook.com';
1147
+ constructor();
1148
+ /**
1149
+ * Creates a credential for Facebook.
1150
+ *
1151
+ * @example
1152
+ * ```javascript
1153
+ * // `event` from the Facebook auth.authResponseChange callback.
1154
+ * const credential = FacebookAuthProvider.credential(event.authResponse.accessToken);
1155
+ * const result = await signInWithCredential(credential);
1156
+ * ```
1157
+ *
1158
+ * @param accessToken - Facebook access token.
1159
+ */
1160
+ static credential(accessToken: string): OAuthCredential;
1161
+ /**
1162
+ * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.
1163
+ *
1164
+ * @param userCredential - The user credential.
1165
+ */
1166
+ static credentialFromResult(userCredential: UserCredential): OAuthCredential | null;
1167
+ /**
1168
+ * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
1169
+ * thrown during a sign-in, link, or reauthenticate operation.
1170
+ *
1171
+ * @param userCredential - The user credential.
1172
+ */
1173
+ static credentialFromError(error: FirebaseError): OAuthCredential | null;
1174
+ private static credentialFromTaggedObject;
1175
+ }
1176
+
1177
+ /**
1178
+ * An enum of factors that may be used for multifactor authentication.
1179
+ *
1180
+ * @public
1181
+ */
1182
+ export declare const FactorId: {
1183
+ /** Phone as second factor */
1184
+ readonly PHONE: "phone";
1185
+ readonly TOTP: "totp";
1186
+ };
1187
+
1188
+ /**
1189
+ * The base class for all Federated providers (OAuth (including OIDC), SAML).
1190
+ *
1191
+ * This class is not meant to be instantiated directly.
1192
+ *
1193
+ * @public
1194
+ */
1195
+ declare abstract class FederatedAuthProvider implements AuthProvider {
1196
+ readonly providerId: string;
1197
+ /* Excluded from this release type: defaultLanguageCode */
1198
+ /* Excluded from this release type: customParameters */
1199
+ /**
1200
+ * Constructor for generic OAuth providers.
1201
+ *
1202
+ * @param providerId - Provider for which credentials should be generated.
1203
+ */
1204
+ constructor(providerId: string);
1205
+ /**
1206
+ * Set the language gode.
1207
+ *
1208
+ * @param languageCode - language code
1209
+ */
1210
+ setDefaultLanguage(languageCode: string | null): void;
1211
+ /**
1212
+ * Sets the OAuth custom parameters to pass in an OAuth request for popup and redirect sign-in
1213
+ * operations.
1214
+ *
1215
+ * @remarks
1216
+ * For a detailed list, check the reserved required OAuth 2.0 parameters such as `client_id`,
1217
+ * `redirect_uri`, `scope`, `response_type`, and `state` are not allowed and will be ignored.
1218
+ *
1219
+ * @param customOAuthParameters - The custom OAuth parameters to pass in the OAuth request.
1220
+ */
1221
+ setCustomParameters(customOAuthParameters: CustomParameters): AuthProvider;
1222
+ /**
1223
+ * Retrieve the current list of {@link CustomParameters}.
1224
+ */
1225
+ getCustomParameters(): CustomParameters;
1226
+ }
1227
+
1228
+ /**
1229
+ * Gets the list of possible sign in methods for the given email address. This method returns an
1230
+ * empty list when
1231
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
1232
+ * is enabled, irrespective of the number of authentication methods available for the given email.
1233
+ *
1234
+ * @remarks
1235
+ * This is useful to differentiate methods of sign-in for the same provider, eg.
1236
+ * {@link EmailAuthProvider} which has 2 methods of sign-in,
1237
+ * {@link SignInMethod}.EMAIL_PASSWORD and
1238
+ * {@link SignInMethod}.EMAIL_LINK.
1239
+ *
1240
+ * @param auth - The {@link Auth} instance.
1241
+ * @param email - The user's email address.
1242
+ *
1243
+ * Deprecated. Migrating off of this method is recommended as a security best-practice.
1244
+ * Learn more in the Identity Platform documentation for
1245
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}.
1246
+ * @public
1247
+ */
1248
+ export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;
1249
+
1250
+ declare interface FinalizeMfaResponse {
1251
+ idToken: string;
1252
+ refreshToken: string;
1253
+ }
1254
+
1255
+ /* Excluded from this release type: GenericAuthErrorParams */
1256
+
1257
+ /**
1258
+ * Extracts provider specific {@link AdditionalUserInfo} for the given credential.
1259
+ *
1260
+ * @param userCredential - The user credential.
1261
+ *
1262
+ * @public
1263
+ */
1264
+ export declare function getAdditionalUserInfo(userCredential: UserCredential): AdditionalUserInfo | null;
1265
+
1266
+ export declare function getAuth(app?: FirebaseApp): Auth;
1267
+
1268
+ /**
1269
+ * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.
1270
+ *
1271
+ * @remarks
1272
+ * Returns the current token if it has not expired or if it will not expire in the next five
1273
+ * minutes. Otherwise, this will refresh the token and return a new one.
1274
+ *
1275
+ * @param user - The user.
1276
+ * @param forceRefresh - Force refresh regardless of token expiration.
1277
+ *
1278
+ * @public
1279
+ */
1280
+ export declare function getIdToken(user: User, forceRefresh?: boolean): Promise<string>;
1281
+
1282
+ /**
1283
+ * Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service.
1284
+ *
1285
+ * @remarks
1286
+ * Returns the current token if it has not expired or if it will not expire in the next five
1287
+ * minutes. Otherwise, this will refresh the token and return a new one.
1288
+ *
1289
+ * @param user - The user.
1290
+ * @param forceRefresh - Force refresh regardless of token expiration.
1291
+ *
1292
+ * @public
1293
+ */
1294
+ export declare function getIdTokenResult(user: User, forceRefresh?: boolean): Promise<IdTokenResult>;
1295
+
1296
+ /**
1297
+ * Provides a {@link MultiFactorResolver} suitable for completion of a
1298
+ * multi-factor flow.
1299
+ *
1300
+ * @param auth - The {@link Auth} instance.
1301
+ * @param error - The {@link MultiFactorError} raised during a sign-in, or
1302
+ * reauthentication operation.
1303
+ *
1304
+ * @public
1305
+ */
1306
+ export declare function getMultiFactorResolver(auth: Auth, error: MultiFactorError): MultiFactorResolver;
1307
+
1308
+ declare interface GetRecaptchaConfigResponse {
1309
+ recaptchaKey: string;
1310
+ recaptchaEnforcementState: RecaptchaEnforcementProviderState[];
1311
+ }
1312
+
1313
+ /**
1314
+ * Returns a {@link UserCredential} from the redirect-based sign-in flow.
1315
+ *
1316
+ * @remarks
1317
+ * If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an
1318
+ * error. If no redirect operation was called, returns `null`.
1319
+ *
1320
+ * This method does not work in a Node.js environment or with {@link Auth} instances created with a
1321
+ * {@link @firebase/app#FirebaseServerApp}.
1322
+ *
1323
+ * @example
1324
+ * ```javascript
1325
+ * // Sign in using a redirect.
1326
+ * const provider = new FacebookAuthProvider();
1327
+ * // You can add additional scopes to the provider:
1328
+ * provider.addScope('user_birthday');
1329
+ * // Start a sign in process for an unauthenticated user.
1330
+ * await signInWithRedirect(auth, provider);
1331
+ * // This will trigger a full page redirect away from your app
1332
+ *
1333
+ * // After returning from the redirect when your app initializes you can obtain the result
1334
+ * const result = await getRedirectResult(auth);
1335
+ * if (result) {
1336
+ * // This is the signed-in user
1337
+ * const user = result.user;
1338
+ * // This gives you a Facebook Access Token.
1339
+ * const credential = provider.credentialFromResult(auth, result);
1340
+ * const token = credential.accessToken;
1341
+ * }
1342
+ * // As this API can be used for sign-in, linking and reauthentication,
1343
+ * // check the operationType to determine what triggered this redirect
1344
+ * // operation.
1345
+ * const operationType = result.operationType;
1346
+ * ```
1347
+ *
1348
+ * @param auth - The {@link Auth} instance.
1349
+ * @param resolver - An instance of {@link PopupRedirectResolver}, optional
1350
+ * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.
1351
+ *
1352
+ * @public
1353
+ */
1354
+ export declare function getRedirectResult(auth: Auth, resolver?: PopupRedirectResolver): Promise<UserCredential | null>;
1355
+
1356
+ /**
1357
+ * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.GITHUB.
1358
+ *
1359
+ * @remarks
1360
+ * GitHub requires an OAuth 2.0 redirect, so you can either handle the redirect directly, or use
1361
+ * the {@link signInWithPopup} handler:
1362
+ *
1363
+ * @example
1364
+ * ```javascript
1365
+ * // Sign in using a redirect.
1366
+ * const provider = new GithubAuthProvider();
1367
+ * // Start a sign in process for an unauthenticated user.
1368
+ * provider.addScope('repo');
1369
+ * await signInWithRedirect(auth, provider);
1370
+ * // This will trigger a full page redirect away from your app
1371
+ *
1372
+ * // After returning from the redirect when your app initializes you can obtain the result
1373
+ * const result = await getRedirectResult(auth);
1374
+ * if (result) {
1375
+ * // This is the signed-in user
1376
+ * const user = result.user;
1377
+ * // This gives you a GitHub Access Token.
1378
+ * const credential = GithubAuthProvider.credentialFromResult(result);
1379
+ * const token = credential.accessToken;
1380
+ * }
1381
+ * ```
1382
+ *
1383
+ * @example
1384
+ * ```javascript
1385
+ * // Sign in using a popup.
1386
+ * const provider = new GithubAuthProvider();
1387
+ * provider.addScope('repo');
1388
+ * const result = await signInWithPopup(auth, provider);
1389
+ *
1390
+ * // The signed-in user info.
1391
+ * const user = result.user;
1392
+ * // This gives you a GitHub Access Token.
1393
+ * const credential = GithubAuthProvider.credentialFromResult(result);
1394
+ * const token = credential.accessToken;
1395
+ * ```
1396
+ * @public
1397
+ */
1398
+ export declare class GithubAuthProvider extends BaseOAuthProvider {
1399
+ /** Always set to {@link SignInMethod}.GITHUB. */
1400
+ static readonly GITHUB_SIGN_IN_METHOD: 'github.com';
1401
+ /** Always set to {@link ProviderId}.GITHUB. */
1402
+ static readonly PROVIDER_ID: 'github.com';
1403
+ constructor();
1404
+ /**
1405
+ * Creates a credential for GitHub.
1406
+ *
1407
+ * @param accessToken - GitHub access token.
1408
+ */
1409
+ static credential(accessToken: string): OAuthCredential;
1410
+ /**
1411
+ * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.
1412
+ *
1413
+ * @param userCredential - The user credential.
1414
+ */
1415
+ static credentialFromResult(userCredential: UserCredential): OAuthCredential | null;
1416
+ /**
1417
+ * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
1418
+ * thrown during a sign-in, link, or reauthenticate operation.
1419
+ *
1420
+ * @param userCredential - The user credential.
1421
+ */
1422
+ static credentialFromError(error: FirebaseError): OAuthCredential | null;
1423
+ private static credentialFromTaggedObject;
1424
+ }
1425
+
1426
+ /**
1427
+ * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.GOOGLE.
1428
+ *
1429
+ * @example
1430
+ * ```javascript
1431
+ * // Sign in using a redirect.
1432
+ * const provider = new GoogleAuthProvider();
1433
+ * // Start a sign in process for an unauthenticated user.
1434
+ * provider.addScope('profile');
1435
+ * provider.addScope('email');
1436
+ * await signInWithRedirect(auth, provider);
1437
+ * // This will trigger a full page redirect away from your app
1438
+ *
1439
+ * // After returning from the redirect when your app initializes you can obtain the result
1440
+ * const result = await getRedirectResult(auth);
1441
+ * if (result) {
1442
+ * // This is the signed-in user
1443
+ * const user = result.user;
1444
+ * // This gives you a Google Access Token.
1445
+ * const credential = GoogleAuthProvider.credentialFromResult(result);
1446
+ * const token = credential.accessToken;
1447
+ * }
1448
+ * ```
1449
+ *
1450
+ * @example
1451
+ * ```javascript
1452
+ * // Sign in using a popup.
1453
+ * const provider = new GoogleAuthProvider();
1454
+ * provider.addScope('profile');
1455
+ * provider.addScope('email');
1456
+ * const result = await signInWithPopup(auth, provider);
1457
+ *
1458
+ * // The signed-in user info.
1459
+ * const user = result.user;
1460
+ * // This gives you a Google Access Token.
1461
+ * const credential = GoogleAuthProvider.credentialFromResult(result);
1462
+ * const token = credential.accessToken;
1463
+ * ```
1464
+ *
1465
+ * @public
1466
+ */
1467
+ export declare class GoogleAuthProvider extends BaseOAuthProvider {
1468
+ /** Always set to {@link SignInMethod}.GOOGLE. */
1469
+ static readonly GOOGLE_SIGN_IN_METHOD: 'google.com';
1470
+ /** Always set to {@link ProviderId}.GOOGLE. */
1471
+ static readonly PROVIDER_ID: 'google.com';
1472
+ constructor();
1473
+ /**
1474
+ * Creates a credential for Google. At least one of ID token and access token is required.
1475
+ *
1476
+ * @example
1477
+ * ```javascript
1478
+ * // \`googleUser\` from the onsuccess Google Sign In callback.
1479
+ * const credential = GoogleAuthProvider.credential(googleUser.getAuthResponse().id_token);
1480
+ * const result = await signInWithCredential(credential);
1481
+ * ```
1482
+ *
1483
+ * @param idToken - Google ID token.
1484
+ * @param accessToken - Google access token.
1485
+ */
1486
+ static credential(idToken?: string | null, accessToken?: string | null): OAuthCredential;
1487
+ /**
1488
+ * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.
1489
+ *
1490
+ * @param userCredential - The user credential.
1491
+ */
1492
+ static credentialFromResult(userCredential: UserCredential): OAuthCredential | null;
1493
+ /**
1494
+ * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
1495
+ * thrown during a sign-in, link, or reauthenticate operation.
1496
+ *
1497
+ * @param userCredential - The user credential.
1498
+ */
1499
+ static credentialFromError(error: FirebaseError): OAuthCredential | null;
1500
+ private static credentialFromTaggedObject;
1501
+ }
1502
+
1503
+ /**
1504
+ * Raw encoded JWT
1505
+ *
1506
+ */
1507
+ declare type IdToken = string;
1508
+
1509
+ /* Excluded from this release type: IdTokenMfaResponse */
1510
+
1511
+ /* Excluded from this release type: IdTokenResponse */
1512
+
1513
+ /* Excluded from this release type: IdTokenResponseKind */
1514
+
1515
+ /**
1516
+ * Interface representing ID token result obtained from {@link User.getIdTokenResult}.
1517
+ *
1518
+ * @remarks
1519
+ * `IdTokenResult` contains the ID token JWT string and other helper properties for getting different data
1520
+ * associated with the token as well as all the decoded payload claims.
1521
+ *
1522
+ * Note that these claims are not to be trusted as they are parsed client side. Only server side
1523
+ * verification can guarantee the integrity of the token claims.
1524
+ *
1525
+ * @public
1526
+ */
1527
+ export declare interface IdTokenResult {
1528
+ /**
1529
+ * The authentication time formatted as a UTC string.
1530
+ *
1531
+ * @remarks
1532
+ * This is the time the user authenticated (signed in) and not the time the token was refreshed.
1533
+ */
1534
+ authTime: string;
1535
+ /** The ID token expiration time formatted as a UTC string. */
1536
+ expirationTime: string;
1537
+ /** The ID token issuance time formatted as a UTC string. */
1538
+ issuedAtTime: string;
1539
+ /**
1540
+ * The sign-in provider through which the ID token was obtained (anonymous, custom, phone,
1541
+ * password, etc).
1542
+ *
1543
+ * @remarks
1544
+ * Note, this does not map to provider IDs.
1545
+ */
1546
+ signInProvider: string | null;
1547
+ /**
1548
+ * The type of second factor associated with this session, provided the user was multi-factor
1549
+ * authenticated (eg. phone, etc).
1550
+ */
1551
+ signInSecondFactor: string | null;
1552
+ /** The Firebase Auth ID token JWT string. */
1553
+ token: string;
1554
+ /**
1555
+ * The entire payload claims of the ID token including the standard reserved claims as well as
1556
+ * the custom claims.
1557
+ */
1558
+ claims: ParsedToken;
1559
+ }
1560
+
1561
+ /**
1562
+ * An implementation of {@link Persistence} of type `LOCAL` using `indexedDB`
1563
+ * for the underlying storage.
1564
+ *
1565
+ * @public
1566
+ */
1567
+ export declare const indexedDBLocalPersistence: Persistence;
1568
+
1569
+ /**
1570
+ * Initializes an {@link Auth} instance with fine-grained control over
1571
+ * {@link Dependencies}.
1572
+ *
1573
+ * @remarks
1574
+ *
1575
+ * This function allows more control over the {@link Auth} instance than
1576
+ * {@link getAuth}. `getAuth` uses platform-specific defaults to supply
1577
+ * the {@link Dependencies}. In general, `getAuth` is the easiest way to
1578
+ * initialize Auth and works for most use cases. Use `initializeAuth` if you
1579
+ * need control over which persistence layer is used, or to minimize bundle
1580
+ * size if you're not using either `signInWithPopup` or `signInWithRedirect`.
1581
+ *
1582
+ * For example, if your app only uses anonymous accounts and you only want
1583
+ * accounts saved for the current session, initialize `Auth` with:
1584
+ *
1585
+ * ```js
1586
+ * const auth = initializeAuth(app, {
1587
+ * persistence: browserSessionPersistence,
1588
+ * popupRedirectResolver: undefined,
1589
+ * });
1590
+ * ```
1591
+ *
1592
+ * @public
1593
+ */
1594
+ export declare function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth;
1595
+
1596
+ /**
1597
+ * Loads the reCAPTCHA configuration into the `Auth` instance.
1598
+ *
1599
+ * @remarks
1600
+ * This will load the reCAPTCHA config, which indicates whether the reCAPTCHA
1601
+ * verification flow should be triggered for each auth provider, into the
1602
+ * current Auth session.
1603
+ *
1604
+ * If initializeRecaptchaConfig() is not invoked, the auth flow will always start
1605
+ * without reCAPTCHA verification. If the provider is configured to require reCAPTCHA
1606
+ * verification, the SDK will transparently load the reCAPTCHA config and restart the
1607
+ * auth flows.
1608
+ *
1609
+ * Thus, by calling this optional method, you will reduce the latency of future auth flows.
1610
+ * Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.
1611
+ *
1612
+ * This method does not work in a Node.js environment.
1613
+ *
1614
+ * @example
1615
+ * ```javascript
1616
+ * initializeRecaptchaConfig(auth);
1617
+ * ```
1618
+ *
1619
+ * @param auth - The {@link Auth} instance.
1620
+ *
1621
+ * @public
1622
+ */
1623
+ export declare function initializeRecaptchaConfig(auth: Auth): Promise<void>;
1624
+
1625
+ /**
1626
+ * An implementation of {@link Persistence} of type 'NONE'.
1627
+ *
1628
+ * @public
1629
+ */
1630
+ export declare const inMemoryPersistence: Persistence;
1631
+
1632
+ /**
1633
+ * Checks if an incoming link is a sign-in with email link suitable for {@link signInWithEmailLink}.
1634
+ *
1635
+ * @param auth - The {@link Auth} instance.
1636
+ * @param emailLink - The link sent to the user's email address.
1637
+ *
1638
+ * @public
1639
+ */
1640
+ export declare function isSignInWithEmailLink(auth: Auth, emailLink: string): boolean;
1641
+
1642
+ /**
1643
+ * Links the user account with the given credentials.
1644
+ *
1645
+ * @remarks
1646
+ * An {@link AuthProvider} can be used to generate the credential.
1647
+ *
1648
+ * @param user - The user.
1649
+ * @param credential - The auth credential.
1650
+ *
1651
+ * @public
1652
+ */
1653
+ export declare function linkWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
1654
+
1655
+ export declare function linkWithRedirect(user: User, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<void>;
1656
+
1657
+ /**
1658
+ * MfaEnrollment can be any subtype of BaseMfaEnrollment, currently only PhoneMfaEnrollment and TotpMfaEnrollment are supported.
1659
+ */
1660
+ declare type MfaEnrollment = PhoneMfaEnrollment | TotpMfaEnrollment;
1661
+
1662
+ /**
1663
+ * The {@link MultiFactorUser} corresponding to the user.
1664
+ *
1665
+ * @remarks
1666
+ * This is used to access all multi-factor properties and operations related to the user.
1667
+ *
1668
+ * @param user - The user.
1669
+ *
1670
+ * @public
1671
+ */
1672
+ export declare function multiFactor(user: User): MultiFactorUser;
1673
+
1674
+ /**
1675
+ * The base class for asserting ownership of a second factor.
1676
+ *
1677
+ * @remarks
1678
+ * This is used to facilitate enrollment of a second factor on an existing user or sign-in of a
1679
+ * user who already verified the first factor.
1680
+ *
1681
+ * @public
1682
+ */
1683
+ export declare interface MultiFactorAssertion {
1684
+ /** The identifier of the second factor. */
1685
+ readonly factorId: (typeof FactorId)[keyof typeof FactorId];
1686
+ }
1687
+
1688
+ /**
1689
+ * The error thrown when the user needs to provide a second factor to sign in successfully.
1690
+ *
1691
+ * @remarks
1692
+ * The error code for this error is `auth/multi-factor-auth-required`.
1693
+ *
1694
+ * @example
1695
+ * ```javascript
1696
+ * let resolver;
1697
+ * let multiFactorHints;
1698
+ *
1699
+ * signInWithEmailAndPassword(auth, email, password)
1700
+ * .then((result) => {
1701
+ * // User signed in. No 2nd factor challenge is needed.
1702
+ * })
1703
+ * .catch((error) => {
1704
+ * if (error.code == 'auth/multi-factor-auth-required') {
1705
+ * resolver = getMultiFactorResolver(auth, error);
1706
+ * multiFactorHints = resolver.hints;
1707
+ * } else {
1708
+ * // Handle other errors.
1709
+ * }
1710
+ * });
1711
+ *
1712
+ * // Obtain a multiFactorAssertion by verifying the second factor.
1713
+ *
1714
+ * const userCredential = await resolver.resolveSignIn(multiFactorAssertion);
1715
+ * ```
1716
+ *
1717
+ * @public
1718
+ */
1719
+ export declare interface MultiFactorError extends AuthError {
1720
+ /** Details about the MultiFactorError. */
1721
+ readonly customData: AuthError['customData'] & {
1722
+ /**
1723
+ * The type of operation (sign-in, linking, or re-authentication) that raised the error.
1724
+ */
1725
+ readonly operationType: (typeof OperationType)[keyof typeof OperationType];
1726
+ };
1727
+ }
1728
+
1729
+ /**
1730
+ * A structure containing the information of a second factor entity.
1731
+ *
1732
+ * @public
1733
+ */
1734
+ export declare interface MultiFactorInfo {
1735
+ /** The multi-factor enrollment ID. */
1736
+ readonly uid: string;
1737
+ /** The user friendly name of the current second factor. */
1738
+ readonly displayName?: string | null;
1739
+ /** The enrollment date of the second factor formatted as a UTC string. */
1740
+ readonly enrollmentTime: string;
1741
+ /** The identifier of the second factor. */
1742
+ readonly factorId: (typeof FactorId)[keyof typeof FactorId];
1743
+ }
1744
+
1745
+ /**
1746
+ * The class used to facilitate recovery from {@link MultiFactorError} when a user needs to
1747
+ * provide a second factor to sign in.
1748
+ *
1749
+ * @example
1750
+ * ```javascript
1751
+ * let resolver;
1752
+ * let multiFactorHints;
1753
+ *
1754
+ * signInWithEmailAndPassword(auth, email, password)
1755
+ * .then((result) => {
1756
+ * // User signed in. No 2nd factor challenge is needed.
1757
+ * })
1758
+ * .catch((error) => {
1759
+ * if (error.code == 'auth/multi-factor-auth-required') {
1760
+ * resolver = getMultiFactorResolver(auth, error);
1761
+ * // Show UI to let user select second factor.
1762
+ * multiFactorHints = resolver.hints;
1763
+ * } else {
1764
+ * // Handle other errors.
1765
+ * }
1766
+ * });
1767
+ *
1768
+ * // The enrolled second factors that can be used to complete
1769
+ * // sign-in are returned in the `MultiFactorResolver.hints` list.
1770
+ * // UI needs to be presented to allow the user to select a second factor
1771
+ * // from that list.
1772
+ *
1773
+ * const selectedHint = // ; selected from multiFactorHints
1774
+ * const phoneAuthProvider = new PhoneAuthProvider(auth);
1775
+ * const phoneInfoOptions = {
1776
+ * multiFactorHint: selectedHint,
1777
+ * session: resolver.session
1778
+ * };
1779
+ * const verificationId = phoneAuthProvider.verifyPhoneNumber(phoneInfoOptions, appVerifier);
1780
+ * // Store `verificationId` and show UI to let user enter verification code.
1781
+ *
1782
+ * // UI to enter verification code and continue.
1783
+ * // Continue button click handler
1784
+ * const phoneAuthCredential = PhoneAuthProvider.credential(verificationId, verificationCode);
1785
+ * const multiFactorAssertion = PhoneMultiFactorGenerator.assertion(phoneAuthCredential);
1786
+ * const userCredential = await resolver.resolveSignIn(multiFactorAssertion);
1787
+ * ```
1788
+ *
1789
+ * @public
1790
+ */
1791
+ export declare interface MultiFactorResolver {
1792
+ /**
1793
+ * The list of hints for the second factors needed to complete the sign-in for the current
1794
+ * session.
1795
+ */
1796
+ readonly hints: MultiFactorInfo[];
1797
+ /**
1798
+ * The session identifier for the current sign-in flow, which can be used to complete the second
1799
+ * factor sign-in.
1800
+ */
1801
+ readonly session: MultiFactorSession;
1802
+ /**
1803
+ * A helper function to help users complete sign in with a second factor using an
1804
+ * {@link MultiFactorAssertion} confirming the user successfully completed the second factor
1805
+ * challenge.
1806
+ *
1807
+ * @example
1808
+ * ```javascript
1809
+ * const phoneAuthCredential = PhoneAuthProvider.credential(verificationId, verificationCode);
1810
+ * const multiFactorAssertion = PhoneMultiFactorGenerator.assertion(phoneAuthCredential);
1811
+ * const userCredential = await resolver.resolveSignIn(multiFactorAssertion);
1812
+ * ```
1813
+ *
1814
+ * @param assertion - The multi-factor assertion to resolve sign-in with.
1815
+ * @returns The promise that resolves with the user credential object.
1816
+ */
1817
+ resolveSignIn(assertion: MultiFactorAssertion): Promise<UserCredential>;
1818
+ }
1819
+
1820
+ /**
1821
+ * An interface defining the multi-factor session object used for enrolling a second factor on a
1822
+ * user or helping sign in an enrolled user with a second factor.
1823
+ *
1824
+ * @public
1825
+ */
1826
+ export declare interface MultiFactorSession {
1827
+ }
1828
+
1829
+ /**
1830
+ * An interface that defines the multi-factor related properties and operations pertaining
1831
+ * to a {@link User}.
1832
+ *
1833
+ * @public
1834
+ */
1835
+ export declare interface MultiFactorUser {
1836
+ /** Returns a list of the user's enrolled second factors. */
1837
+ readonly enrolledFactors: MultiFactorInfo[];
1838
+ /**
1839
+ * Returns the session identifier for a second factor enrollment operation. This is used to
1840
+ * identify the user trying to enroll a second factor.
1841
+ *
1842
+ * @example
1843
+ * ```javascript
1844
+ * const multiFactorUser = multiFactor(auth.currentUser);
1845
+ * const multiFactorSession = await multiFactorUser.getSession();
1846
+ *
1847
+ * // Send verification code.
1848
+ * const phoneAuthProvider = new PhoneAuthProvider(auth);
1849
+ * const phoneInfoOptions = {
1850
+ * phoneNumber: phoneNumber,
1851
+ * session: multiFactorSession
1852
+ * };
1853
+ * const verificationId = await phoneAuthProvider.verifyPhoneNumber(phoneInfoOptions, appVerifier);
1854
+ *
1855
+ * // Obtain verification code from user.
1856
+ * const phoneAuthCredential = PhoneAuthProvider.credential(verificationId, verificationCode);
1857
+ * const multiFactorAssertion = PhoneMultiFactorGenerator.assertion(phoneAuthCredential);
1858
+ * await multiFactorUser.enroll(multiFactorAssertion);
1859
+ * ```
1860
+ *
1861
+ * @returns The promise that resolves with the {@link MultiFactorSession}.
1862
+ */
1863
+ getSession(): Promise<MultiFactorSession>;
1864
+ /**
1865
+ *
1866
+ * Enrolls a second factor as identified by the {@link MultiFactorAssertion} for the
1867
+ * user.
1868
+ *
1869
+ * @remarks
1870
+ * On resolution, the user tokens are updated to reflect the change in the JWT payload.
1871
+ * Accepts an additional display name parameter used to identify the second factor to the end
1872
+ * user. Recent re-authentication is required for this operation to succeed. On successful
1873
+ * enrollment, existing Firebase sessions (refresh tokens) are revoked. When a new factor is
1874
+ * enrolled, an email notification is sent to the user’s email.
1875
+ *
1876
+ * @example
1877
+ * ```javascript
1878
+ * const multiFactorUser = multiFactor(auth.currentUser);
1879
+ * const multiFactorSession = await multiFactorUser.getSession();
1880
+ *
1881
+ * // Send verification code.
1882
+ * const phoneAuthProvider = new PhoneAuthProvider(auth);
1883
+ * const phoneInfoOptions = {
1884
+ * phoneNumber: phoneNumber,
1885
+ * session: multiFactorSession
1886
+ * };
1887
+ * const verificationId = await phoneAuthProvider.verifyPhoneNumber(phoneInfoOptions, appVerifier);
1888
+ *
1889
+ * // Obtain verification code from user.
1890
+ * const phoneAuthCredential = PhoneAuthProvider.credential(verificationId, verificationCode);
1891
+ * const multiFactorAssertion = PhoneMultiFactorGenerator.assertion(phoneAuthCredential);
1892
+ * await multiFactorUser.enroll(multiFactorAssertion);
1893
+ * // Second factor enrolled.
1894
+ * ```
1895
+ *
1896
+ * @param assertion - The multi-factor assertion to enroll with.
1897
+ * @param displayName - The display name of the second factor.
1898
+ */
1899
+ enroll(assertion: MultiFactorAssertion, displayName?: string | null): Promise<void>;
1900
+ /**
1901
+ * Unenrolls the specified second factor.
1902
+ *
1903
+ * @remarks
1904
+ * To specify the factor to remove, pass a {@link MultiFactorInfo} object (retrieved from
1905
+ * {@link MultiFactorUser.enrolledFactors}) or the
1906
+ * factor's UID string. Sessions are not revoked when the account is unenrolled. An email
1907
+ * notification is likely to be sent to the user notifying them of the change. Recent
1908
+ * re-authentication is required for this operation to succeed. When an existing factor is
1909
+ * unenrolled, an email notification is sent to the user’s email.
1910
+ *
1911
+ * @example
1912
+ * ```javascript
1913
+ * const multiFactorUser = multiFactor(auth.currentUser);
1914
+ * // Present user the option to choose which factor to unenroll.
1915
+ * await multiFactorUser.unenroll(multiFactorUser.enrolledFactors[i])
1916
+ * ```
1917
+ *
1918
+ * @param option - The multi-factor option to unenroll.
1919
+ * @returns - A `Promise` which resolves when the unenroll operation is complete.
1920
+ */
1921
+ unenroll(option: MultiFactorInfo | string): Promise<void>;
1922
+ }
1923
+
1924
+ declare type MutableUserInfo = {
1925
+ -readonly [K in keyof UserInfo]: UserInfo[K];
1926
+ };
1927
+ export { NextFn }
1928
+
1929
+ /**
1930
+ * Type definition for an event callback.
1931
+ *
1932
+ * @privateRemarks TODO(avolkovi): should we consolidate with Subscribe<T> since we're changing the API anyway?
1933
+ *
1934
+ * @public
1935
+ */
1936
+ export declare type NextOrObserver<T> = NextFn<T | null> | Observer<T | null>;
1937
+
1938
+ /**
1939
+ * Represents the OAuth credentials returned by an {@link OAuthProvider}.
1940
+ *
1941
+ * @remarks
1942
+ * Implementations specify the details about each auth provider's credential requirements.
1943
+ *
1944
+ * @public
1945
+ */
1946
+ export declare class OAuthCredential extends AuthCredential {
1947
+ /**
1948
+ * The OAuth ID token associated with the credential if it belongs to an OIDC provider,
1949
+ * such as `google.com`.
1950
+ * @readonly
1951
+ */
1952
+ idToken?: string;
1953
+ /**
1954
+ * The OAuth access token associated with the credential if it belongs to an
1955
+ * {@link OAuthProvider}, such as `facebook.com`, `twitter.com`, etc.
1956
+ * @readonly
1957
+ */
1958
+ accessToken?: string;
1959
+ /**
1960
+ * The OAuth access token secret associated with the credential if it belongs to an OAuth 1.0
1961
+ * provider, such as `twitter.com`.
1962
+ * @readonly
1963
+ */
1964
+ secret?: string;
1965
+ private nonce?;
1966
+ private pendingToken;
1967
+ /* Excluded from this release type: _fromParams */
1968
+ /** {@inheritdoc AuthCredential.toJSON} */
1969
+ toJSON(): object;
1970
+ /**
1971
+ * Static method to deserialize a JSON representation of an object into an
1972
+ * {@link AuthCredential}.
1973
+ *
1974
+ * @param json - Input can be either Object or the stringified representation of the object.
1975
+ * When string is provided, JSON.parse would be called first.
1976
+ *
1977
+ * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
1978
+ */
1979
+ static fromJSON(json: string | object): OAuthCredential | null;
1980
+ /* Excluded from this release type: _getIdTokenResponse */
1981
+ /* Excluded from this release type: _linkToIdToken */
1982
+ /* Excluded from this release type: _getReauthenticationResolver */
1983
+ private buildRequest;
1984
+ }
1985
+
1986
+ /**
1987
+ * Defines the options for initializing an {@link OAuthCredential}.
1988
+ *
1989
+ * @remarks
1990
+ * For ID tokens with nonce claim, the raw nonce has to also be provided.
1991
+ *
1992
+ * @public
1993
+ */
1994
+ export declare interface OAuthCredentialOptions {
1995
+ /**
1996
+ * The OAuth ID token used to initialize the {@link OAuthCredential}.
1997
+ */
1998
+ idToken?: string;
1999
+ /**
2000
+ * The OAuth access token used to initialize the {@link OAuthCredential}.
2001
+ */
2002
+ accessToken?: string;
2003
+ /**
2004
+ * The raw nonce associated with the ID token.
2005
+ *
2006
+ * @remarks
2007
+ * It is required when an ID token with a nonce field is provided. The SHA-256 hash of the
2008
+ * raw nonce must match the nonce field in the ID token.
2009
+ */
2010
+ rawNonce?: string;
2011
+ }
2012
+
2013
+ declare interface OAuthCredentialParams {
2014
+ idToken?: string | null;
2015
+ accessToken?: string | null;
2016
+ oauthToken?: string;
2017
+ secret?: string;
2018
+ oauthTokenSecret?: string;
2019
+ nonce?: string;
2020
+ pendingToken?: string;
2021
+ providerId: string;
2022
+ signInMethod: string;
2023
+ }
2024
+
2025
+ /**
2026
+ * Provider for generating generic {@link OAuthCredential}.
2027
+ *
2028
+ * @example
2029
+ * ```javascript
2030
+ * // Sign in using a redirect.
2031
+ * const provider = new OAuthProvider('google.com');
2032
+ * // Start a sign in process for an unauthenticated user.
2033
+ * provider.addScope('profile');
2034
+ * provider.addScope('email');
2035
+ * await signInWithRedirect(auth, provider);
2036
+ * // This will trigger a full page redirect away from your app
2037
+ *
2038
+ * // After returning from the redirect when your app initializes you can obtain the result
2039
+ * const result = await getRedirectResult(auth);
2040
+ * if (result) {
2041
+ * // This is the signed-in user
2042
+ * const user = result.user;
2043
+ * // This gives you a OAuth Access Token for the provider.
2044
+ * const credential = provider.credentialFromResult(auth, result);
2045
+ * const token = credential.accessToken;
2046
+ * }
2047
+ * ```
2048
+ *
2049
+ * @example
2050
+ * ```javascript
2051
+ * // Sign in using a popup.
2052
+ * const provider = new OAuthProvider('google.com');
2053
+ * provider.addScope('profile');
2054
+ * provider.addScope('email');
2055
+ * const result = await signInWithPopup(auth, provider);
2056
+ *
2057
+ * // The signed-in user info.
2058
+ * const user = result.user;
2059
+ * // This gives you a OAuth Access Token for the provider.
2060
+ * const credential = provider.credentialFromResult(auth, result);
2061
+ * const token = credential.accessToken;
2062
+ * ```
2063
+ * @public
2064
+ */
2065
+ export declare class OAuthProvider extends BaseOAuthProvider {
2066
+ /**
2067
+ * Creates an {@link OAuthCredential} from a JSON string or a plain object.
2068
+ * @param json - A plain object or a JSON string
2069
+ */
2070
+ static credentialFromJSON(json: object | string): OAuthCredential;
2071
+ /**
2072
+ * Creates a {@link OAuthCredential} from a generic OAuth provider's access token or ID token.
2073
+ *
2074
+ * @remarks
2075
+ * The raw nonce is required when an ID token with a nonce field is provided. The SHA-256 hash of
2076
+ * the raw nonce must match the nonce field in the ID token.
2077
+ *
2078
+ * @example
2079
+ * ```javascript
2080
+ * // `googleUser` from the onsuccess Google Sign In callback.
2081
+ * // Initialize a generate OAuth provider with a `google.com` providerId.
2082
+ * const provider = new OAuthProvider('google.com');
2083
+ * const credential = provider.credential({
2084
+ * idToken: googleUser.getAuthResponse().id_token,
2085
+ * });
2086
+ * const result = await signInWithCredential(credential);
2087
+ * ```
2088
+ *
2089
+ * @param params - Either the options object containing the ID token, access token and raw nonce
2090
+ * or the ID token string.
2091
+ */
2092
+ credential(params: OAuthCredentialOptions): OAuthCredential;
2093
+ /** An internal credential method that accepts more permissive options */
2094
+ private _credential;
2095
+ /**
2096
+ * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.
2097
+ *
2098
+ * @param userCredential - The user credential.
2099
+ */
2100
+ static credentialFromResult(userCredential: UserCredential): OAuthCredential | null;
2101
+ /**
2102
+ * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
2103
+ * thrown during a sign-in, link, or reauthenticate operation.
2104
+ *
2105
+ * @param userCredential - The user credential.
2106
+ */
2107
+ static credentialFromError(error: FirebaseError): OAuthCredential | null;
2108
+ private static oauthCredentialFromTaggedObject;
2109
+ }
2110
+
2111
+ /**
2112
+ * Adds an observer for changes to the user's sign-in state.
2113
+ *
2114
+ * @remarks
2115
+ * To keep the old behavior, see {@link onIdTokenChanged}.
2116
+ *
2117
+ * @param auth - The {@link Auth} instance.
2118
+ * @param nextOrObserver - callback triggered on change.
2119
+ * @param error - Deprecated. This callback is never triggered. Errors
2120
+ * on signing in/out can be caught in promises returned from
2121
+ * sign-in/sign-out functions.
2122
+ * @param completed - Deprecated. This callback is never triggered.
2123
+ *
2124
+ * @public
2125
+ */
2126
+ export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObserver<User>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
2127
+
2128
+ /**
2129
+ * Adds an observer for changes to the signed-in user's ID token.
2130
+ *
2131
+ * @remarks
2132
+ * This includes sign-in, sign-out, and token refresh events.
2133
+ * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
2134
+ *
2135
+ * @param auth - The {@link Auth} instance.
2136
+ * @param nextOrObserver - callback triggered on change.
2137
+ * @param error - Deprecated. This callback is never triggered. Errors
2138
+ * on signing in/out can be caught in promises returned from
2139
+ * sign-in/sign-out functions.
2140
+ * @param completed - Deprecated. This callback is never triggered.
2141
+ *
2142
+ * @public
2143
+ */
2144
+ export declare function onIdTokenChanged(auth: Auth, nextOrObserver: NextOrObserver<User>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
2145
+
2146
+ /**
2147
+ * Enumeration of supported operation types.
2148
+ *
2149
+ * @public
2150
+ */
2151
+ export declare const OperationType: {
2152
+ /** Operation involving linking an additional provider to an already signed-in user. */
2153
+ readonly LINK: "link";
2154
+ /** Operation involving using a provider to reauthenticate an already signed-in user. */
2155
+ readonly REAUTHENTICATE: "reauthenticate";
2156
+ /** Operation involving signing in a user. */
2157
+ readonly SIGN_IN: "signIn";
2158
+ };
2159
+
2160
+ /**
2161
+ * Parses the email action link string and returns an {@link ActionCodeURL} if
2162
+ * the link is valid, otherwise returns null.
2163
+ *
2164
+ * @public
2165
+ */
2166
+ export declare function parseActionCodeURL(link: string): ActionCodeURL | null;
2167
+
2168
+ /**
2169
+ * Interface representing a parsed ID token.
2170
+ *
2171
+ * @privateRemarks TODO(avolkovi): consolidate with parsed_token in implementation.
2172
+ *
2173
+ * @public
2174
+ */
2175
+ export declare interface ParsedToken {
2176
+ /** Expiration time of the token. */
2177
+ 'exp'?: string;
2178
+ /** UID of the user. */
2179
+ 'sub'?: string;
2180
+ /** Time at which authentication was performed. */
2181
+ 'auth_time'?: string;
2182
+ /** Issuance time of the token. */
2183
+ 'iat'?: string;
2184
+ /** Firebase specific claims, containing the provider(s) used to authenticate the user. */
2185
+ 'firebase'?: {
2186
+ 'sign_in_provider'?: string;
2187
+ 'sign_in_second_factor'?: string;
2188
+ 'identities'?: Record<string, string>;
2189
+ };
2190
+ /** Map of any additional custom claims. */
2191
+ [key: string]: unknown;
2192
+ }
2193
+
2194
+ /**
2195
+ * A structure specifying password policy requirements.
2196
+ *
2197
+ * @public
2198
+ */
2199
+ export declare interface PasswordPolicy {
2200
+ /**
2201
+ * Requirements enforced by this password policy.
2202
+ */
2203
+ readonly customStrengthOptions: {
2204
+ /**
2205
+ * Minimum password length, or undefined if not configured.
2206
+ */
2207
+ readonly minPasswordLength?: number;
2208
+ /**
2209
+ * Maximum password length, or undefined if not configured.
2210
+ */
2211
+ readonly maxPasswordLength?: number;
2212
+ /**
2213
+ * Whether the password should contain a lowercase letter, or undefined if not configured.
2214
+ */
2215
+ readonly containsLowercaseLetter?: boolean;
2216
+ /**
2217
+ * Whether the password should contain an uppercase letter, or undefined if not configured.
2218
+ */
2219
+ readonly containsUppercaseLetter?: boolean;
2220
+ /**
2221
+ * Whether the password should contain a numeric character, or undefined if not configured.
2222
+ */
2223
+ readonly containsNumericCharacter?: boolean;
2224
+ /**
2225
+ * Whether the password should contain a non-alphanumeric character, or undefined if not configured.
2226
+ */
2227
+ readonly containsNonAlphanumericCharacter?: boolean;
2228
+ };
2229
+ /**
2230
+ * List of characters that are considered non-alphanumeric during validation.
2231
+ */
2232
+ readonly allowedNonAlphanumericCharacters: string;
2233
+ /**
2234
+ * The enforcement state of the policy. Can be 'OFF' or 'ENFORCE'.
2235
+ */
2236
+ readonly enforcementState: string;
2237
+ /**
2238
+ * Whether existing passwords must meet the policy.
2239
+ */
2240
+ readonly forceUpgradeOnSignin: boolean;
2241
+ }
2242
+
2243
+ /* Excluded from this release type: PasswordPolicyCustomStrengthOptions */
2244
+
2245
+ /* Excluded from this release type: PasswordPolicyInternal */
2246
+
2247
+ /**
2248
+ * A structure indicating which password policy requirements were met or violated and what the
2249
+ * requirements are.
2250
+ *
2251
+ * @public
2252
+ */
2253
+ export declare interface PasswordValidationStatus {
2254
+ /**
2255
+ * Whether the password meets all requirements.
2256
+ */
2257
+ readonly isValid: boolean;
2258
+ /**
2259
+ * Whether the password meets the minimum password length, or undefined if not required.
2260
+ */
2261
+ readonly meetsMinPasswordLength?: boolean;
2262
+ /**
2263
+ * Whether the password meets the maximum password length, or undefined if not required.
2264
+ */
2265
+ readonly meetsMaxPasswordLength?: boolean;
2266
+ /**
2267
+ * Whether the password contains a lowercase letter, or undefined if not required.
2268
+ */
2269
+ readonly containsLowercaseLetter?: boolean;
2270
+ /**
2271
+ * Whether the password contains an uppercase letter, or undefined if not required.
2272
+ */
2273
+ readonly containsUppercaseLetter?: boolean;
2274
+ /**
2275
+ * Whether the password contains a numeric character, or undefined if not required.
2276
+ */
2277
+ readonly containsNumericCharacter?: boolean;
2278
+ /**
2279
+ * Whether the password contains a non-alphanumeric character, or undefined if not required.
2280
+ */
2281
+ readonly containsNonAlphanumericCharacter?: boolean;
2282
+ /**
2283
+ * The policy used to validate the password.
2284
+ */
2285
+ readonly passwordPolicy: PasswordPolicy;
2286
+ }
2287
+
2288
+ declare type PersistedBlob = Record<string, unknown>;
2289
+
2290
+ /**
2291
+ * An interface covering the possible persistence mechanism types.
2292
+ *
2293
+ * @public
2294
+ */
2295
+ export declare interface Persistence {
2296
+ /**
2297
+ * Type of Persistence.
2298
+ * - 'SESSION' is used for temporary persistence such as `sessionStorage`.
2299
+ * - 'LOCAL' is used for long term persistence such as `localStorage` or `IndexedDB`.
2300
+ * - 'NONE' is used for in-memory, or no persistence.
2301
+ * - 'COOKIE' is used for cookie persistence, useful for server-side rendering.
2302
+ */
2303
+ readonly type: 'SESSION' | 'LOCAL' | 'NONE' | 'COOKIE';
2304
+ }
2305
+
2306
+ declare interface PersistenceInternal extends Persistence {
2307
+ type: PersistenceType;
2308
+ _isAvailable(): Promise<boolean>;
2309
+ _set(key: string, value: PersistenceValue): Promise<void>;
2310
+ _get<T extends PersistenceValue>(key: string): Promise<T | null>;
2311
+ _remove(key: string): Promise<void>;
2312
+ _addListener(key: string, listener: StorageEventListener): void;
2313
+ _removeListener(key: string, listener: StorageEventListener): void;
2314
+ _shouldAllowMigration?: boolean;
2315
+ }
2316
+
2317
+ declare const enum PersistenceType {
2318
+ SESSION = "SESSION",
2319
+ LOCAL = "LOCAL",
2320
+ NONE = "NONE",
2321
+ COOKIE = "COOKIE"
2322
+ }
2323
+
2324
+ declare type PersistenceValue = PersistedBlob | string;
2325
+
2326
+ /**
2327
+ * Represents the credentials returned by {@link PhoneAuthProvider}.
2328
+ *
2329
+ * @public
2330
+ */
2331
+ export declare class PhoneAuthCredential extends AuthCredential {
2332
+ private readonly params;
2333
+ private constructor();
2334
+ /* Excluded from this release type: _fromVerification */
2335
+ /* Excluded from this release type: _fromTokenResponse */
2336
+ /* Excluded from this release type: _getIdTokenResponse */
2337
+ /* Excluded from this release type: _linkToIdToken */
2338
+ /* Excluded from this release type: _getReauthenticationResolver */
2339
+ /* Excluded from this release type: _makeVerificationRequest */
2340
+ /** {@inheritdoc AuthCredential.toJSON} */
2341
+ toJSON(): object;
2342
+ /** Generates a phone credential based on a plain object or a JSON string. */
2343
+ static fromJSON(json: object | string): PhoneAuthCredential | null;
2344
+ }
2345
+
2346
+ /**
2347
+ * The information required to verify the ownership of a phone number.
2348
+ *
2349
+ * @remarks
2350
+ * The information that's required depends on whether you are doing single-factor sign-in,
2351
+ * multi-factor enrollment or multi-factor sign-in.
2352
+ *
2353
+ * @public
2354
+ */
2355
+ export declare type PhoneInfoOptions = PhoneSingleFactorInfoOptions | PhoneMultiFactorEnrollInfoOptions | PhoneMultiFactorSignInInfoOptions;
2356
+
2357
+ /**
2358
+ * An MFA provided by SMS verification.
2359
+ */
2360
+ declare interface PhoneMfaEnrollment extends BaseMfaEnrollment {
2361
+ phoneInfo: string;
2362
+ }
2363
+
2364
+ /**
2365
+ * The class for asserting ownership of a phone second factor. Provided by
2366
+ * {@link PhoneMultiFactorGenerator.assertion}.
2367
+ *
2368
+ * @public
2369
+ */
2370
+ export declare interface PhoneMultiFactorAssertion extends MultiFactorAssertion {
2371
+ }
2372
+
2373
+ /**
2374
+ * Options used for enrolling a second factor.
2375
+ *
2376
+ * @public
2377
+ */
2378
+ export declare interface PhoneMultiFactorEnrollInfoOptions {
2379
+ /** Phone number to send a verification code to. */
2380
+ phoneNumber: string;
2381
+ /** The {@link MultiFactorSession} obtained via {@link MultiFactorUser.getSession}. */
2382
+ session: MultiFactorSession;
2383
+ }
2384
+
2385
+ /**
2386
+ * The subclass of the {@link MultiFactorInfo} interface for phone number
2387
+ * second factors. The `factorId` of this second factor is {@link FactorId}.PHONE.
2388
+ * @public
2389
+ */
2390
+ export declare interface PhoneMultiFactorInfo extends MultiFactorInfo {
2391
+ /** The phone number associated with the current second factor. */
2392
+ readonly phoneNumber: string;
2393
+ }
2394
+
2395
+ /**
2396
+ * Options used for signing in with a second factor.
2397
+ *
2398
+ * @public
2399
+ */
2400
+ export declare interface PhoneMultiFactorSignInInfoOptions {
2401
+ /**
2402
+ * The {@link MultiFactorInfo} obtained via {@link MultiFactorResolver.hints}.
2403
+ *
2404
+ * One of `multiFactorHint` or `multiFactorUid` is required.
2405
+ */
2406
+ multiFactorHint?: MultiFactorInfo;
2407
+ /**
2408
+ * The uid of the second factor.
2409
+ *
2410
+ * One of `multiFactorHint` or `multiFactorUid` is required.
2411
+ */
2412
+ multiFactorUid?: string;
2413
+ /** The {@link MultiFactorSession} obtained via {@link MultiFactorResolver.session}. */
2414
+ session: MultiFactorSession;
2415
+ }
2416
+
2417
+ /* Excluded from this release type: PhoneOrOauthTokenResponse */
2418
+
2419
+ /**
2420
+ * Options used for single-factor sign-in.
2421
+ *
2422
+ * @public
2423
+ */
2424
+ export declare interface PhoneSingleFactorInfoOptions {
2425
+ /** Phone number to send a verification code to. */
2426
+ phoneNumber: string;
2427
+ }
2428
+
2429
+ /**
2430
+ * A resolver used for handling DOM specific operations like {@link signInWithPopup}
2431
+ * or {@link signInWithRedirect}.
2432
+ *
2433
+ * @public
2434
+ */
2435
+ export declare interface PopupRedirectResolver {
2436
+ }
2437
+
2438
+ /* Excluded from this release type: PopupRedirectResolverInternal */
2439
+
2440
+ /**
2441
+ * A minimal error map with all verbose error messages stripped.
2442
+ *
2443
+ * See discussion at {@link AuthErrorMap}
2444
+ *
2445
+ * @public
2446
+ */
2447
+ export declare const prodErrorMap: AuthErrorMap;
2448
+
2449
+ /**
2450
+ * Enumeration of supported providers.
2451
+ *
2452
+ * @public
2453
+ */
2454
+ export declare const ProviderId: {
2455
+ /** Facebook provider ID */
2456
+ readonly FACEBOOK: "facebook.com";
2457
+ /** GitHub provider ID */
2458
+ readonly GITHUB: "github.com";
2459
+ /** Google provider ID */
2460
+ readonly GOOGLE: "google.com";
2461
+ /** Password provider */
2462
+ readonly PASSWORD: "password";
2463
+ /** Phone provider */
2464
+ readonly PHONE: "phone";
2465
+ /** Twitter provider ID */
2466
+ readonly TWITTER: "twitter.com";
2467
+ };
2468
+
2469
+ /* Excluded from this release type: ProviderId_2 */
2470
+
2471
+ declare interface ProviderUserInfo {
2472
+ providerId: string;
2473
+ rawId?: string;
2474
+ email?: string;
2475
+ displayName?: string;
2476
+ photoUrl?: string;
2477
+ phoneNumber?: string;
2478
+ }
2479
+
2480
+ /**
2481
+ * Interface for a supplied `AsyncStorage`.
2482
+ *
2483
+ * @public
2484
+ */
2485
+ export declare interface ReactNativeAsyncStorage {
2486
+ /**
2487
+ * Persist an item in storage.
2488
+ *
2489
+ * @param key - storage key.
2490
+ * @param value - storage value.
2491
+ */
2492
+ setItem(key: string, value: string): Promise<void>;
2493
+ /**
2494
+ * Retrieve an item from storage.
2495
+ *
2496
+ * @param key - storage key.
2497
+ */
2498
+ getItem(key: string): Promise<string | null>;
2499
+ /**
2500
+ * Remove an item from storage.
2501
+ *
2502
+ * @param key - storage key.
2503
+ */
2504
+ removeItem(key: string): Promise<void>;
2505
+ }
2506
+
2507
+ /**
2508
+ * Re-authenticates a user using a fresh credential.
2509
+ *
2510
+ * @remarks
2511
+ * Use before operations such as {@link updatePassword} that require tokens from recent sign-in
2512
+ * attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error
2513
+ * or a `TOKEN_EXPIRED` error.
2514
+ *
2515
+ * This method is not supported on any {@link User} signed in by {@link Auth} instances
2516
+ * created with a {@link @firebase/app#FirebaseServerApp}.
2517
+ *
2518
+ * @param user - The user.
2519
+ * @param credential - The auth credential.
2520
+ *
2521
+ * @public
2522
+ */
2523
+ export declare function reauthenticateWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
2524
+
2525
+ export declare function reauthenticateWithRedirect(user: User, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<void>;
2526
+
2527
+ declare class RecaptchaConfig {
2528
+ /**
2529
+ * The reCAPTCHA site key.
2530
+ */
2531
+ siteKey: string;
2532
+ /**
2533
+ * The list of providers and their enablement status for reCAPTCHA Enterprise.
2534
+ */
2535
+ recaptchaEnforcementState: RecaptchaEnforcementProviderState[];
2536
+ constructor(response: GetRecaptchaConfigResponse);
2537
+ /**
2538
+ * Returns the reCAPTCHA Enterprise enforcement state for the given provider.
2539
+ *
2540
+ * @param providerStr - The provider whose enforcement state is to be returned.
2541
+ * @returns The reCAPTCHA Enterprise enforcement state for the given provider.
2542
+ */
2543
+ getProviderEnforcementState(providerStr: string): EnforcementState | null;
2544
+ /**
2545
+ * Returns true if the reCAPTCHA Enterprise enforcement state for the provider is set to ENFORCE or AUDIT.
2546
+ *
2547
+ * @param providerStr - The provider whose enablement state is to be returned.
2548
+ * @returns Whether or not reCAPTCHA Enterprise protection is enabled for the given provider.
2549
+ */
2550
+ isProviderEnabled(providerStr: string): boolean;
2551
+ /**
2552
+ * Returns true if reCAPTCHA Enterprise protection is enabled in at least one provider, otherwise
2553
+ * returns false.
2554
+ *
2555
+ * @returns Whether or not reCAPTCHA Enterprise protection is enabled for at least one provider.
2556
+ */
2557
+ isAnyProviderEnabled(): boolean;
2558
+ }
2559
+
2560
+ declare interface RecaptchaEnforcementProviderState {
2561
+ provider: string;
2562
+ enforcementState: string;
2563
+ }
2564
+
2565
+ /**
2566
+ * Interface representing reCAPTCHA parameters.
2567
+ *
2568
+ * See the {@link https://developers.google.com/recaptcha/docs/display#render_param | reCAPTCHA docs}
2569
+ * for the list of accepted parameters. All parameters are accepted except for `sitekey`: Firebase Auth
2570
+ * provisions a reCAPTCHA for each project and will configure the site key upon rendering.
2571
+ *
2572
+ * For an invisible reCAPTCHA, set the `size` key to `invisible`.
2573
+ *
2574
+ * @public
2575
+ */
2576
+ export declare interface RecaptchaParameters {
2577
+ [key: string]: any;
2578
+ }
2579
+
2580
+ /**
2581
+ * Reloads user account data, if signed in.
2582
+ *
2583
+ * @param user - The user.
2584
+ *
2585
+ * @public
2586
+ */
2587
+ export declare function reload(user: User): Promise<void>;
2588
+
2589
+ /**
2590
+ * Revokes the given access token. Currently only supports Apple OAuth access tokens.
2591
+ *
2592
+ * @param auth - The {@link Auth} instance.
2593
+ * @param token - The Apple OAuth access token.
2594
+ *
2595
+ * @public
2596
+ */
2597
+ export declare function revokeAccessToken(auth: Auth, token: string): Promise<void>;
2598
+
2599
+ /**
2600
+ * An {@link AuthProvider} for SAML.
2601
+ *
2602
+ * @public
2603
+ */
2604
+ export declare class SAMLAuthProvider extends FederatedAuthProvider {
2605
+ /**
2606
+ * Constructor. The providerId must start with "saml."
2607
+ * @param providerId - SAML provider ID.
2608
+ */
2609
+ constructor(providerId: string);
2610
+ /**
2611
+ * Generates an {@link AuthCredential} from a {@link UserCredential} after a
2612
+ * successful SAML flow completes.
2613
+ *
2614
+ * @remarks
2615
+ *
2616
+ * For example, to get an {@link AuthCredential}, you could write the
2617
+ * following code:
2618
+ *
2619
+ * ```js
2620
+ * const userCredential = await signInWithPopup(auth, samlProvider);
2621
+ * const credential = SAMLAuthProvider.credentialFromResult(userCredential);
2622
+ * ```
2623
+ *
2624
+ * @param userCredential - The user credential.
2625
+ */
2626
+ static credentialFromResult(userCredential: UserCredential): AuthCredential | null;
2627
+ /**
2628
+ * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
2629
+ * thrown during a sign-in, link, or reauthenticate operation.
2630
+ *
2631
+ * @param userCredential - The user credential.
2632
+ */
2633
+ static credentialFromError(error: FirebaseError): AuthCredential | null;
2634
+ /**
2635
+ * Creates an {@link AuthCredential} from a JSON string or a plain object.
2636
+ * @param json - A plain object or a JSON string
2637
+ */
2638
+ static credentialFromJSON(json: string | object): AuthCredential;
2639
+ private static samlCredentialFromTaggedObject;
2640
+ }
2641
+
2642
+ /**
2643
+ * Sends a verification email to a user.
2644
+ *
2645
+ * @remarks
2646
+ * The verification process is completed by calling {@link applyActionCode}.
2647
+ *
2648
+ * @example
2649
+ * ```javascript
2650
+ * const actionCodeSettings = {
2651
+ * url: 'https://www.example.com/?email=user@example.com',
2652
+ * iOS: {
2653
+ * bundleId: 'com.example.ios'
2654
+ * },
2655
+ * android: {
2656
+ * packageName: 'com.example.android',
2657
+ * installApp: true,
2658
+ * minimumVersion: '12'
2659
+ * },
2660
+ * handleCodeInApp: true
2661
+ * };
2662
+ * await sendEmailVerification(user, actionCodeSettings);
2663
+ * // Obtain code from the user.
2664
+ * await applyActionCode(auth, code);
2665
+ * ```
2666
+ *
2667
+ * @param user - The user.
2668
+ * @param actionCodeSettings - The {@link ActionCodeSettings}.
2669
+ *
2670
+ * @public
2671
+ */
2672
+ export declare function sendEmailVerification(user: User, actionCodeSettings?: ActionCodeSettings | null): Promise<void>;
2673
+
2674
+ /**
2675
+ * Sends a password reset email to the given email address. This method does not throw an error when
2676
+ * there's no user account with the given email address and
2677
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
2678
+ * is enabled.
2679
+ *
2680
+ * @remarks
2681
+ * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
2682
+ * the email sent to the user, along with the new password specified by the user.
2683
+ *
2684
+ * @example
2685
+ * ```javascript
2686
+ * const actionCodeSettings = {
2687
+ * url: 'https://www.example.com/?email=user@example.com',
2688
+ * iOS: {
2689
+ * bundleId: 'com.example.ios'
2690
+ * },
2691
+ * android: {
2692
+ * packageName: 'com.example.android',
2693
+ * installApp: true,
2694
+ * minimumVersion: '12'
2695
+ * },
2696
+ * handleCodeInApp: true
2697
+ * };
2698
+ * await sendPasswordResetEmail(auth, 'user@example.com', actionCodeSettings);
2699
+ * // Obtain code from user.
2700
+ * await confirmPasswordReset('user@example.com', code);
2701
+ * ```
2702
+ *
2703
+ * @param auth - The {@link Auth} instance.
2704
+ * @param email - The user's email address.
2705
+ * @param actionCodeSettings - The {@link ActionCodeSettings}.
2706
+ *
2707
+ * @public
2708
+ */
2709
+ export declare function sendPasswordResetEmail(auth: Auth, email: string, actionCodeSettings?: ActionCodeSettings): Promise<void>;
2710
+
2711
+ /**
2712
+ * Sends a sign-in email link to the user with the specified email.
2713
+ *
2714
+ * @remarks
2715
+ * The sign-in operation has to always be completed in the app unlike other out of band email
2716
+ * actions (password reset and email verifications). This is because, at the end of the flow,
2717
+ * the user is expected to be signed in and their Auth state persisted within the app.
2718
+ *
2719
+ * To complete sign in with the email link, call {@link signInWithEmailLink} with the email
2720
+ * address and the email link supplied in the email sent to the user.
2721
+ *
2722
+ * @example
2723
+ * ```javascript
2724
+ * const actionCodeSettings = {
2725
+ * url: 'https://www.example.com/?email=user@example.com',
2726
+ * iOS: {
2727
+ * bundleId: 'com.example.ios'
2728
+ * },
2729
+ * android: {
2730
+ * packageName: 'com.example.android',
2731
+ * installApp: true,
2732
+ * minimumVersion: '12'
2733
+ * },
2734
+ * handleCodeInApp: true
2735
+ * };
2736
+ * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);
2737
+ * // Obtain emailLink from the user.
2738
+ * if(isSignInWithEmailLink(auth, emailLink)) {
2739
+ * await signInWithEmailLink(auth, 'user@example.com', emailLink);
2740
+ * }
2741
+ * ```
2742
+ *
2743
+ * @param authInternal - The {@link Auth} instance.
2744
+ * @param email - The user's email address.
2745
+ * @param actionCodeSettings - The {@link ActionCodeSettings}.
2746
+ *
2747
+ * @public
2748
+ */
2749
+ export declare function sendSignInLinkToEmail(auth: Auth, email: string, actionCodeSettings: ActionCodeSettings): Promise<void>;
2750
+
2751
+ /**
2752
+ * Changes the type of persistence on the {@link Auth} instance for the currently saved
2753
+ * `Auth` session and applies this type of persistence for future sign-in requests, including
2754
+ * sign-in with redirect requests.
2755
+ *
2756
+ * @remarks
2757
+ * This makes it easy for a user signing in to specify whether their session should be
2758
+ * remembered or not. It also makes it easier to never persist the `Auth` state for applications
2759
+ * that are shared by other users or have sensitive data.
2760
+ *
2761
+ * This method does not work in a Node.js environment or with {@link Auth} instances created with a
2762
+ * {@link @firebase/app#FirebaseServerApp}.
2763
+ *
2764
+ * @example
2765
+ * ```javascript
2766
+ * setPersistence(auth, browserSessionPersistence);
2767
+ * ```
2768
+ *
2769
+ * @param auth - The {@link Auth} instance.
2770
+ * @param persistence - The {@link Persistence} to use.
2771
+ * @returns A `Promise` that resolves once the persistence change has completed
2772
+ *
2773
+ * @public
2774
+ */
2775
+ export declare function setPersistence(auth: Auth, persistence: Persistence): Promise<void>;
2776
+
2777
+ /**
2778
+ * Asynchronously signs in as an anonymous user.
2779
+ *
2780
+ * @remarks
2781
+ * If there is already an anonymous user signed in, that user will be returned; otherwise, a
2782
+ * new anonymous user identity will be created and returned.
2783
+ *
2784
+ * This method is not supported by {@link Auth} instances created with a
2785
+ * {@link @firebase/app#FirebaseServerApp}.
2786
+ *
2787
+ * @param auth - The {@link Auth} instance.
2788
+ *
2789
+ * @public
2790
+ */
2791
+ export declare function signInAnonymously(auth: Auth): Promise<UserCredential>;
2792
+
2793
+ /**
2794
+ * Enumeration of supported sign-in methods.
2795
+ *
2796
+ * @public
2797
+ */
2798
+ export declare const SignInMethod: {
2799
+ /** Email link sign in method */
2800
+ readonly EMAIL_LINK: "emailLink";
2801
+ /** Email/password sign in method */
2802
+ readonly EMAIL_PASSWORD: "password";
2803
+ /** Facebook sign in method */
2804
+ readonly FACEBOOK: "facebook.com";
2805
+ /** GitHub sign in method */
2806
+ readonly GITHUB: "github.com";
2807
+ /** Google sign in method */
2808
+ readonly GOOGLE: "google.com";
2809
+ /** Phone sign in method */
2810
+ readonly PHONE: "phone";
2811
+ /** Twitter sign in method */
2812
+ readonly TWITTER: "twitter.com";
2813
+ };
2814
+
2815
+ /**
2816
+ * Asynchronously signs in with the given credentials.
2817
+ *
2818
+ * @remarks
2819
+ * An {@link AuthProvider} can be used to generate the credential.
2820
+ *
2821
+ * This method is not supported by {@link Auth} instances created with a
2822
+ * {@link @firebase/app#FirebaseServerApp}.
2823
+ *
2824
+ * @param auth - The {@link Auth} instance.
2825
+ * @param credential - The auth credential.
2826
+ *
2827
+ * @public
2828
+ */
2829
+ export declare function signInWithCredential(auth: Auth, credential: AuthCredential): Promise<UserCredential>;
2830
+
2831
+ /**
2832
+ * Asynchronously signs in using a custom token.
2833
+ *
2834
+ * @remarks
2835
+ * Custom tokens are used to integrate Firebase Auth with existing auth systems, and must
2836
+ * be generated by an auth backend using the
2837
+ * {@link https://firebase.google.com/docs/reference/admin/node/admin.auth.Auth#createcustomtoken | createCustomToken}
2838
+ * method in the {@link https://firebase.google.com/docs/auth/admin | Admin SDK} .
2839
+ *
2840
+ * Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.
2841
+ *
2842
+ * This method is not supported by {@link Auth} instances created with a
2843
+ * {@link @firebase/app#FirebaseServerApp}.
2844
+ *
2845
+ * @param auth - The {@link Auth} instance.
2846
+ * @param customToken - The custom token to sign in with.
2847
+ *
2848
+ * @public
2849
+ */
2850
+ export declare function signInWithCustomToken(auth: Auth, customToken: string): Promise<UserCredential>;
2851
+
2852
+ /**
2853
+ * Asynchronously signs in using an email and password.
2854
+ *
2855
+ * @remarks
2856
+ * Fails with an error if the email address and password do not match. When
2857
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
2858
+ * is enabled, this method fails with "auth/invalid-credential" in case of an invalid
2859
+ * email/password.
2860
+ *
2861
+ * This method is not supported on {@link Auth} instances created with a
2862
+ * {@link @firebase/app#FirebaseServerApp}.
2863
+ *
2864
+ * Note: The user's password is NOT the password used to access the user's email account. The
2865
+ * email address serves as a unique identifier for the user, and the password is used to access
2866
+ * the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.
2867
+ *
2868
+ *
2869
+ * @param auth - The {@link Auth} instance.
2870
+ * @param email - The users email address.
2871
+ * @param password - The users password.
2872
+ *
2873
+ * @public
2874
+ */
2875
+ export declare function signInWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
2876
+
2877
+ /**
2878
+ * Asynchronously signs in using an email and sign-in email link.
2879
+ *
2880
+ * @remarks
2881
+ * If no link is passed, the link is inferred from the current URL.
2882
+ *
2883
+ * Fails with an error if the email address is invalid or OTP in email link expires.
2884
+ *
2885
+ * This method is not supported by {@link Auth} instances created with a
2886
+ * {@link @firebase/app#FirebaseServerApp}.
2887
+ *
2888
+ * Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.
2889
+ *
2890
+ * @example
2891
+ * ```javascript
2892
+ * const actionCodeSettings = {
2893
+ * url: 'https://www.example.com/?email=user@example.com',
2894
+ * iOS: {
2895
+ * bundleId: 'com.example.ios'
2896
+ * },
2897
+ * android: {
2898
+ * packageName: 'com.example.android',
2899
+ * installApp: true,
2900
+ * minimumVersion: '12'
2901
+ * },
2902
+ * handleCodeInApp: true
2903
+ * };
2904
+ * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);
2905
+ * // Obtain emailLink from the user.
2906
+ * if(isSignInWithEmailLink(auth, emailLink)) {
2907
+ * await signInWithEmailLink(auth, 'user@example.com', emailLink);
2908
+ * }
2909
+ * ```
2910
+ *
2911
+ *
2912
+ * @param auth - The {@link Auth} instance.
2913
+ * @param email - The user's email address.
2914
+ * @param emailLink - The link sent to the user's email address.
2915
+ *
2916
+ * @public
2917
+ */
2918
+ export declare function signInWithEmailLink(auth: Auth, email: string, emailLink?: string): Promise<UserCredential>;
2919
+
2920
+ /* Excluded from this release type: SignInWithIdpResponse */
2921
+
2922
+ /* Excluded from this release type: SignInWithPhoneNumberRequest */
2923
+
2924
+ /* Excluded from this release type: SignInWithPhoneNumberResponse */
2925
+
2926
+ export declare function signInWithRedirect(auth: Auth, provider: AuthProvider, resolver?: PopupRedirectResolver): Promise<void>;
2927
+
2928
+ /**
2929
+ * Signs out the current user.
2930
+ *
2931
+ * @remarks
2932
+ * This method is not supported by {@link Auth} instances created with a
2933
+ * {@link @firebase/app#FirebaseServerApp}.
2934
+ *
2935
+ * @param auth - The {@link Auth} instance.
2936
+ *
2937
+ * @public
2938
+ */
2939
+ export declare function signOut(auth: Auth): Promise<void>;
2940
+
2941
+ declare interface StorageEventListener {
2942
+ (value: PersistenceValue | null): void;
2943
+ }
2944
+
2945
+ /* Excluded from this release type: StsTokenManager */
2946
+
2947
+ /* Excluded from this release type: TaggedWithTokenResponse */
2948
+
2949
+ /**
2950
+ * An MFA provided by TOTP (Time-based One Time Password).
2951
+ */
2952
+ declare interface TotpMfaEnrollment extends BaseMfaEnrollment {
2953
+ }
2954
+
2955
+ /**
2956
+ * The class for asserting ownership of a TOTP second factor. Provided by
2957
+ * {@link TotpMultiFactorGenerator.assertionForEnrollment} and
2958
+ * {@link TotpMultiFactorGenerator.assertionForSignIn}.
2959
+ *
2960
+ * @public
2961
+ */
2962
+ export declare interface TotpMultiFactorAssertion extends MultiFactorAssertion {
2963
+ }
2964
+
2965
+ /**
2966
+ * The subclass of the {@link MultiFactorInfo} interface for TOTP
2967
+ * second factors. The `factorId` of this second factor is {@link FactorId}.TOTP.
2968
+ * @public
2969
+ */
2970
+ export declare interface TotpMultiFactorInfo extends MultiFactorInfo {
2971
+ }
2972
+
2973
+ /**
2974
+ * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.TWITTER.
2975
+ *
2976
+ * @example
2977
+ * ```javascript
2978
+ * // Sign in using a redirect.
2979
+ * const provider = new TwitterAuthProvider();
2980
+ * // Start a sign in process for an unauthenticated user.
2981
+ * await signInWithRedirect(auth, provider);
2982
+ * // This will trigger a full page redirect away from your app
2983
+ *
2984
+ * // After returning from the redirect when your app initializes you can obtain the result
2985
+ * const result = await getRedirectResult(auth);
2986
+ * if (result) {
2987
+ * // This is the signed-in user
2988
+ * const user = result.user;
2989
+ * // This gives you a Twitter Access Token and Secret.
2990
+ * const credential = TwitterAuthProvider.credentialFromResult(result);
2991
+ * const token = credential.accessToken;
2992
+ * const secret = credential.secret;
2993
+ * }
2994
+ * ```
2995
+ *
2996
+ * @example
2997
+ * ```javascript
2998
+ * // Sign in using a popup.
2999
+ * const provider = new TwitterAuthProvider();
3000
+ * const result = await signInWithPopup(auth, provider);
3001
+ *
3002
+ * // The signed-in user info.
3003
+ * const user = result.user;
3004
+ * // This gives you a Twitter Access Token and Secret.
3005
+ * const credential = TwitterAuthProvider.credentialFromResult(result);
3006
+ * const token = credential.accessToken;
3007
+ * const secret = credential.secret;
3008
+ * ```
3009
+ *
3010
+ * @public
3011
+ */
3012
+ export declare class TwitterAuthProvider extends BaseOAuthProvider {
3013
+ /** Always set to {@link SignInMethod}.TWITTER. */
3014
+ static readonly TWITTER_SIGN_IN_METHOD: 'twitter.com';
3015
+ /** Always set to {@link ProviderId}.TWITTER. */
3016
+ static readonly PROVIDER_ID: 'twitter.com';
3017
+ constructor();
3018
+ /**
3019
+ * Creates a credential for Twitter.
3020
+ *
3021
+ * @param token - Twitter access token.
3022
+ * @param secret - Twitter secret.
3023
+ */
3024
+ static credential(token: string, secret: string): OAuthCredential;
3025
+ /**
3026
+ * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.
3027
+ *
3028
+ * @param userCredential - The user credential.
3029
+ */
3030
+ static credentialFromResult(userCredential: UserCredential): OAuthCredential | null;
3031
+ /**
3032
+ * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
3033
+ * thrown during a sign-in, link, or reauthenticate operation.
3034
+ *
3035
+ * @param userCredential - The user credential.
3036
+ */
3037
+ static credentialFromError(error: FirebaseError): OAuthCredential | null;
3038
+ private static credentialFromTaggedObject;
3039
+ }
3040
+
3041
+ /**
3042
+ * Unlinks a provider from a user account.
3043
+ *
3044
+ * @param user - The user.
3045
+ * @param providerId - The provider to unlink.
3046
+ *
3047
+ * @public
3048
+ */
3049
+ export declare function unlink(user: User, providerId: string): Promise<User>;
3050
+ export { Unsubscribe }
3051
+
3052
+ /**
3053
+ * Asynchronously sets the provided user as {@link Auth.currentUser} on the
3054
+ * {@link Auth} instance.
3055
+ *
3056
+ * @remarks
3057
+ * A new instance copy of the user provided will be made and set as currentUser.
3058
+ *
3059
+ * This will trigger {@link onAuthStateChanged} and {@link onIdTokenChanged} listeners
3060
+ * like other sign in methods.
3061
+ *
3062
+ * The operation fails with an error if the user to be updated belongs to a different Firebase
3063
+ * project.
3064
+ *
3065
+ * This method is not supported by {@link Auth} instances created with a
3066
+ * {@link @firebase/app#FirebaseServerApp}.
3067
+ *
3068
+ * @param auth - The {@link Auth} instance.
3069
+ * @param user - The new {@link User}.
3070
+ *
3071
+ * @public
3072
+ */
3073
+ export declare function updateCurrentUser(auth: Auth, user: User | null): Promise<void>;
3074
+
3075
+ /**
3076
+ * Updates the user's email address.
3077
+ *
3078
+ * @remarks
3079
+ * An email will be sent to the original email address (if it was set) that allows to revoke the
3080
+ * email address change, in order to protect them from account hijacking.
3081
+ *
3082
+ * This method is not supported on any {@link User} signed in by {@link Auth} instances
3083
+ * created with a {@link @firebase/app#FirebaseServerApp}.
3084
+ *
3085
+ * Important: this is a security sensitive operation that requires the user to have recently signed
3086
+ * in. If this requirement isn't met, ask the user to authenticate again and then call
3087
+ * {@link reauthenticateWithCredential}.
3088
+ *
3089
+ * @param user - The user.
3090
+ * @param newEmail - The new email address.
3091
+ *
3092
+ * Throws "auth/operation-not-allowed" error when
3093
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
3094
+ * is enabled.
3095
+ * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
3096
+ *
3097
+ * @public
3098
+ */
3099
+ export declare function updateEmail(user: User, newEmail: string): Promise<void>;
3100
+
3101
+ /**
3102
+ * Updates the user's password.
3103
+ *
3104
+ * @remarks
3105
+ * Important: this is a security sensitive operation that requires the user to have recently signed
3106
+ * in. If this requirement isn't met, ask the user to authenticate again and then call
3107
+ * {@link reauthenticateWithCredential}.
3108
+ *
3109
+ * @param user - The user.
3110
+ * @param newPassword - The new password.
3111
+ *
3112
+ * @public
3113
+ */
3114
+ export declare function updatePassword(user: User, newPassword: string): Promise<void>;
3115
+
3116
+ /**
3117
+ * Updates a user's profile data.
3118
+ *
3119
+ * @param user - The user.
3120
+ * @param profile - The profile's `displayName` and `photoURL` to update.
3121
+ *
3122
+ * @public
3123
+ */
3124
+ export declare function updateProfile(user: User, { displayName, photoURL: photoUrl }: {
3125
+ displayName?: string | null;
3126
+ photoURL?: string | null;
3127
+ }): Promise<void>;
3128
+
3129
+ /**
3130
+ * Sets the current language to the default device/browser preference.
3131
+ *
3132
+ * @param auth - The {@link Auth} instance.
3133
+ *
3134
+ * @public
3135
+ */
3136
+ export declare function useDeviceLanguage(auth: Auth): void;
3137
+
3138
+ /**
3139
+ * A user account.
3140
+ *
3141
+ * @public
3142
+ */
3143
+ export declare interface User extends UserInfo {
3144
+ /**
3145
+ * Whether the email has been verified with {@link sendEmailVerification} and
3146
+ * {@link applyActionCode}.
3147
+ */
3148
+ readonly emailVerified: boolean;
3149
+ /**
3150
+ * Whether the user is authenticated using the {@link ProviderId}.ANONYMOUS provider.
3151
+ */
3152
+ readonly isAnonymous: boolean;
3153
+ /**
3154
+ * Additional metadata around user creation and sign-in times.
3155
+ */
3156
+ readonly metadata: UserMetadata;
3157
+ /**
3158
+ * Additional per provider such as displayName and profile information.
3159
+ */
3160
+ readonly providerData: UserInfo[];
3161
+ /**
3162
+ * Refresh token used to reauthenticate the user. Avoid using this directly and prefer
3163
+ * {@link User.getIdToken} to refresh the ID token instead.
3164
+ */
3165
+ readonly refreshToken: string;
3166
+ /**
3167
+ * The user's tenant ID.
3168
+ *
3169
+ * @remarks
3170
+ * This is a read-only property, which indicates the tenant ID
3171
+ * used to sign in the user. This is null if the user is signed in from the parent
3172
+ * project.
3173
+ *
3174
+ * @example
3175
+ * ```javascript
3176
+ * // Set the tenant ID on Auth instance.
3177
+ * auth.tenantId = 'TENANT_PROJECT_ID';
3178
+ *
3179
+ * // All future sign-in request now include tenant ID.
3180
+ * const result = await signInWithEmailAndPassword(auth, email, password);
3181
+ * // result.user.tenantId should be 'TENANT_PROJECT_ID'.
3182
+ * ```
3183
+ */
3184
+ readonly tenantId: string | null;
3185
+ /**
3186
+ * Deletes and signs out the user.
3187
+ *
3188
+ * @remarks
3189
+ * Important: this is a security-sensitive operation that requires the user to have recently
3190
+ * signed in. If this requirement isn't met, ask the user to authenticate again and then call
3191
+ * one of the reauthentication methods like {@link reauthenticateWithCredential}.
3192
+ *
3193
+ * This method is not supported on any {@link User} signed in by {@link Auth} instances
3194
+ * created with a {@link @firebase/app#FirebaseServerApp}.
3195
+ */
3196
+ delete(): Promise<void>;
3197
+ /**
3198
+ * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.
3199
+ *
3200
+ * @remarks
3201
+ * Returns the current token if it has not expired or if it will not expire in the next five
3202
+ * minutes. Otherwise, this will refresh the token and return a new one.
3203
+ *
3204
+ * @param forceRefresh - Force refresh regardless of token expiration.
3205
+ */
3206
+ getIdToken(forceRefresh?: boolean): Promise<string>;
3207
+ /**
3208
+ * Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service.
3209
+ *
3210
+ * @remarks
3211
+ * Returns the current token if it has not expired or if it will not expire in the next five
3212
+ * minutes. Otherwise, this will refresh the token and return a new one.
3213
+ *
3214
+ * @param forceRefresh - Force refresh regardless of token expiration.
3215
+ */
3216
+ getIdTokenResult(forceRefresh?: boolean): Promise<IdTokenResult>;
3217
+ /**
3218
+ * Refreshes the user, if signed in.
3219
+ */
3220
+ reload(): Promise<void>;
3221
+ /**
3222
+ * Returns a JSON-serializable representation of this object.
3223
+ *
3224
+ * @returns A JSON-serializable representation of this object.
3225
+ */
3226
+ toJSON(): object;
3227
+ }
3228
+
3229
+ /**
3230
+ * A structure containing a {@link User}, the {@link OperationType}, and the provider ID.
3231
+ *
3232
+ * @remarks
3233
+ * `operationType` could be {@link OperationType}.SIGN_IN for a sign-in operation,
3234
+ * {@link OperationType}.LINK for a linking operation and {@link OperationType}.REAUTHENTICATE for
3235
+ * a reauthentication operation.
3236
+ *
3237
+ * @public
3238
+ */
3239
+ export declare interface UserCredential {
3240
+ /**
3241
+ * The user authenticated by this credential.
3242
+ */
3243
+ user: User;
3244
+ /**
3245
+ * The provider which was used to authenticate the user.
3246
+ */
3247
+ providerId: string | null;
3248
+ /**
3249
+ * The type of operation which was used to authenticate the user (such as sign-in or link).
3250
+ */
3251
+ operationType: (typeof OperationType)[keyof typeof OperationType];
3252
+ }
3253
+
3254
+ /* Excluded from this release type: UserCredentialInternal */
3255
+
3256
+ /**
3257
+ * User profile information, visible only to the Firebase project's apps.
3258
+ *
3259
+ * @public
3260
+ */
3261
+ export declare interface UserInfo {
3262
+ /**
3263
+ * The display name of the user.
3264
+ */
3265
+ readonly displayName: string | null;
3266
+ /**
3267
+ * The email of the user.
3268
+ */
3269
+ readonly email: string | null;
3270
+ /**
3271
+ * The phone number normalized based on the E.164 standard (e.g. +16505550101) for the
3272
+ * user.
3273
+ *
3274
+ * @remarks
3275
+ * This is null if the user has no phone credential linked to the account.
3276
+ */
3277
+ readonly phoneNumber: string | null;
3278
+ /**
3279
+ * The profile photo URL of the user.
3280
+ */
3281
+ readonly photoURL: string | null;
3282
+ /**
3283
+ * The provider used to authenticate the user.
3284
+ */
3285
+ readonly providerId: string;
3286
+ /**
3287
+ * The user's unique ID, scoped to the project.
3288
+ */
3289
+ readonly uid: string;
3290
+ }
3291
+
3292
+ /* Excluded from this release type: UserInternal */
3293
+
3294
+ /**
3295
+ * Interface representing a user's metadata.
3296
+ *
3297
+ * @public
3298
+ */
3299
+ export declare interface UserMetadata {
3300
+ /** Time the user was created. */
3301
+ readonly creationTime?: string;
3302
+ /** Time the user last signed in. */
3303
+ readonly lastSignInTime?: string;
3304
+ }
3305
+
3306
+ declare class UserMetadata_2 implements UserMetadata {
3307
+ private createdAt?;
3308
+ private lastLoginAt?;
3309
+ creationTime?: string;
3310
+ lastSignInTime?: string;
3311
+ constructor(createdAt?: (string | number) | undefined, lastLoginAt?: (string | number) | undefined);
3312
+ private _initializeTime;
3313
+ _copy(metadata: UserMetadata_2): void;
3314
+ toJSON(): object;
3315
+ }
3316
+
3317
+ /**
3318
+ * User profile used in {@link AdditionalUserInfo}.
3319
+ *
3320
+ * @public
3321
+ */
3322
+ export declare type UserProfile = Record<string, unknown>;
3323
+
3324
+ /**
3325
+ * Validates the password against the password policy configured for the project or tenant.
3326
+ *
3327
+ * @remarks
3328
+ * If no tenant ID is set on the `Auth` instance, then this method will use the password
3329
+ * policy configured for the project. Otherwise, this method will use the policy configured
3330
+ * for the tenant. If a password policy has not been configured, then the default policy
3331
+ * configured for all projects will be used.
3332
+ *
3333
+ * If an auth flow fails because a submitted password does not meet the password policy
3334
+ * requirements and this method has previously been called, then this method will use the
3335
+ * most recent policy available when called again.
3336
+ *
3337
+ * @example
3338
+ * ```javascript
3339
+ * validatePassword(auth, 'some-password');
3340
+ * ```
3341
+ *
3342
+ * @param auth The {@link Auth} instance.
3343
+ * @param password The password to validate.
3344
+ *
3345
+ * @public
3346
+ */
3347
+ export declare function validatePassword(auth: Auth, password: string): Promise<PasswordValidationStatus>;
3348
+
3349
+ /**
3350
+ * Sends a verification email to a new email address.
3351
+ *
3352
+ * @remarks
3353
+ * The user's email will be updated to the new one after being verified.
3354
+ *
3355
+ * If you have a custom email action handler, you can complete the verification process by calling
3356
+ * {@link applyActionCode}.
3357
+ *
3358
+ * @example
3359
+ * ```javascript
3360
+ * const actionCodeSettings = {
3361
+ * url: 'https://www.example.com/?email=user@example.com',
3362
+ * iOS: {
3363
+ * bundleId: 'com.example.ios'
3364
+ * },
3365
+ * android: {
3366
+ * packageName: 'com.example.android',
3367
+ * installApp: true,
3368
+ * minimumVersion: '12'
3369
+ * },
3370
+ * handleCodeInApp: true
3371
+ * };
3372
+ * await verifyBeforeUpdateEmail(user, 'newemail@example.com', actionCodeSettings);
3373
+ * // Obtain code from the user.
3374
+ * await applyActionCode(auth, code);
3375
+ * ```
3376
+ *
3377
+ * @param user - The user.
3378
+ * @param newEmail - The new email address to be verified before update.
3379
+ * @param actionCodeSettings - The {@link ActionCodeSettings}.
3380
+ *
3381
+ * @public
3382
+ */
3383
+ export declare function verifyBeforeUpdateEmail(user: User, newEmail: string, actionCodeSettings?: ActionCodeSettings | null): Promise<void>;
3384
+
3385
+ /**
3386
+ * Checks a password reset code sent to the user by email or other out-of-band mechanism.
3387
+ *
3388
+ * @returns the user's email address if valid.
3389
+ *
3390
+ * @param auth - The {@link Auth} instance.
3391
+ * @param code - A verification code sent to the user.
3392
+ *
3393
+ * @public
3394
+ */
3395
+ export declare function verifyPasswordResetCode(auth: Auth, code: string): Promise<string>;
3396
+
3397
+ export { }