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