@firebase/auth 0.21.1 → 0.21.2-20230201003102

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 (329) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/auth-public.d.ts +8 -4
  3. package/dist/auth.d.ts +8 -4
  4. package/dist/browser-cjs/index-09687647.js +9642 -0
  5. package/dist/browser-cjs/index-09687647.js.map +1 -0
  6. package/dist/browser-cjs/index.cordova.d.ts +32 -0
  7. package/dist/browser-cjs/index.d.ts +36 -0
  8. package/dist/browser-cjs/index.doc.d.ts +24 -0
  9. package/dist/browser-cjs/index.js +93 -0
  10. package/dist/browser-cjs/index.js.map +1 -0
  11. package/dist/browser-cjs/index.node.d.ts +17 -0
  12. package/dist/browser-cjs/index.rn.d.ts +32 -0
  13. package/dist/browser-cjs/index.shared.d.ts +19 -0
  14. package/dist/browser-cjs/index.webworker.d.ts +21 -0
  15. package/dist/browser-cjs/internal/index.d.ts +42 -0
  16. package/dist/browser-cjs/internal.js +667 -0
  17. package/dist/browser-cjs/internal.js.map +1 -0
  18. package/dist/browser-cjs/scripts/run_node_tests.d.ts +17 -0
  19. package/dist/browser-cjs/src/api/account_management/account.d.ts +59 -0
  20. package/dist/browser-cjs/src/api/account_management/account.test.d.ts +17 -0
  21. package/dist/browser-cjs/src/api/account_management/email_and_password.d.ts +47 -0
  22. package/dist/browser-cjs/src/api/account_management/email_and_password.test.d.ts +17 -0
  23. package/dist/browser-cjs/src/api/account_management/mfa.d.ts +69 -0
  24. package/dist/browser-cjs/src/api/account_management/mfa.test.d.ts +17 -0
  25. package/dist/browser-cjs/src/api/account_management/profile.d.ts +29 -0
  26. package/dist/browser-cjs/src/api/account_management/profile.test.d.ts +17 -0
  27. package/dist/browser-cjs/src/api/authentication/create_auth_uri.d.ts +26 -0
  28. package/dist/browser-cjs/src/api/authentication/create_auth_uri.test.d.ts +17 -0
  29. package/dist/browser-cjs/src/api/authentication/custom_token.d.ts +26 -0
  30. package/dist/browser-cjs/src/api/authentication/custom_token.test.d.ts +17 -0
  31. package/dist/browser-cjs/src/api/authentication/email_and_password.d.ts +76 -0
  32. package/dist/browser-cjs/src/api/authentication/email_and_password.test.d.ts +17 -0
  33. package/dist/browser-cjs/src/api/authentication/email_link.d.ts +32 -0
  34. package/dist/browser-cjs/src/api/authentication/email_link.test.d.ts +17 -0
  35. package/dist/browser-cjs/src/api/authentication/idp.d.ts +40 -0
  36. package/dist/browser-cjs/src/api/authentication/idp.test.d.ts +17 -0
  37. package/dist/browser-cjs/src/api/authentication/mfa.d.ts +58 -0
  38. package/dist/browser-cjs/src/api/authentication/mfa.test.d.ts +17 -0
  39. package/dist/browser-cjs/src/api/authentication/recaptcha.d.ts +18 -0
  40. package/dist/browser-cjs/src/api/authentication/recaptcha.test.d.ts +17 -0
  41. package/dist/browser-cjs/src/api/authentication/sign_up.d.ts +29 -0
  42. package/dist/browser-cjs/src/api/authentication/sign_up.test.d.ts +17 -0
  43. package/dist/browser-cjs/src/api/authentication/sms.d.ts +50 -0
  44. package/dist/browser-cjs/src/api/authentication/sms.test.d.ts +17 -0
  45. package/dist/browser-cjs/src/api/authentication/token.d.ts +26 -0
  46. package/dist/browser-cjs/src/api/authentication/token.test.d.ts +17 -0
  47. package/dist/browser-cjs/src/api/errors.d.ts +118 -0
  48. package/dist/browser-cjs/src/api/index.d.ts +69 -0
  49. package/dist/browser-cjs/src/api/index.test.d.ts +17 -0
  50. package/dist/browser-cjs/src/api/project_config/get_project_config.d.ts +25 -0
  51. package/dist/browser-cjs/src/api/project_config/get_project_config.test.d.ts +17 -0
  52. package/dist/browser-cjs/src/core/action_code_url.d.ts +73 -0
  53. package/dist/browser-cjs/src/core/action_code_url.test.d.ts +17 -0
  54. package/dist/browser-cjs/src/core/auth/auth_event_manager.d.ts +34 -0
  55. package/dist/browser-cjs/src/core/auth/auth_event_manager.test.d.ts +17 -0
  56. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +110 -0
  57. package/dist/browser-cjs/src/core/auth/auth_impl.test.d.ts +17 -0
  58. package/dist/browser-cjs/src/core/auth/emulator.d.ts +42 -0
  59. package/dist/browser-cjs/src/core/auth/emulator.test.d.ts +17 -0
  60. package/dist/browser-cjs/src/core/auth/firebase_internal.d.ts +35 -0
  61. package/dist/browser-cjs/src/core/auth/firebase_internal.test.d.ts +17 -0
  62. package/dist/browser-cjs/src/core/auth/initialize.d.ts +46 -0
  63. package/dist/browser-cjs/src/core/auth/initialize.test.d.ts +17 -0
  64. package/dist/browser-cjs/src/core/auth/middleware.d.ts +25 -0
  65. package/dist/browser-cjs/src/core/auth/middleware.test.d.ts +17 -0
  66. package/dist/browser-cjs/src/core/auth/register.d.ts +23 -0
  67. package/dist/browser-cjs/src/core/credentials/auth_credential.d.ts +75 -0
  68. package/dist/browser-cjs/src/core/credentials/email.d.ts +60 -0
  69. package/dist/browser-cjs/src/core/credentials/email.test.d.ts +17 -0
  70. package/dist/browser-cjs/src/core/credentials/index.d.ts +23 -0
  71. package/dist/browser-cjs/src/core/credentials/oauth.d.ts +81 -0
  72. package/dist/browser-cjs/src/core/credentials/oauth.test.d.ts +17 -0
  73. package/dist/browser-cjs/src/core/credentials/phone.d.ts +52 -0
  74. package/dist/browser-cjs/src/core/credentials/phone.test.d.ts +17 -0
  75. package/dist/browser-cjs/src/core/credentials/saml.d.ts +52 -0
  76. package/dist/browser-cjs/src/core/credentials/saml.test.d.ts +17 -0
  77. package/dist/browser-cjs/src/core/errors.d.ts +305 -0
  78. package/dist/browser-cjs/src/core/errors.test.d.ts +17 -0
  79. package/dist/browser-cjs/src/core/index.d.ts +158 -0
  80. package/dist/browser-cjs/src/core/persistence/in_memory.d.ts +35 -0
  81. package/dist/browser-cjs/src/core/persistence/in_memory.test.d.ts +17 -0
  82. package/dist/browser-cjs/src/core/persistence/index.d.ts +41 -0
  83. package/dist/browser-cjs/src/core/persistence/persistence_user_manager.d.ts +45 -0
  84. package/dist/browser-cjs/src/core/persistence/persistence_user_manager.test.d.ts +17 -0
  85. package/dist/browser-cjs/src/core/providers/email.d.ts +83 -0
  86. package/dist/browser-cjs/src/core/providers/email.test.d.ts +17 -0
  87. package/dist/browser-cjs/src/core/providers/facebook.d.ts +93 -0
  88. package/dist/browser-cjs/src/core/providers/facebook.test.d.ts +17 -0
  89. package/dist/browser-cjs/src/core/providers/federated.d.ts +64 -0
  90. package/dist/browser-cjs/src/core/providers/federated.test.d.ts +17 -0
  91. package/dist/browser-cjs/src/core/providers/github.d.ts +89 -0
  92. package/dist/browser-cjs/src/core/providers/github.test.d.ts +17 -0
  93. package/dist/browser-cjs/src/core/providers/google.d.ts +96 -0
  94. package/dist/browser-cjs/src/core/providers/google.test.d.ts +17 -0
  95. package/dist/browser-cjs/src/core/providers/oauth.d.ts +151 -0
  96. package/dist/browser-cjs/src/core/providers/oauth.test.d.ts +17 -0
  97. package/dist/browser-cjs/src/core/providers/saml.d.ts +62 -0
  98. package/dist/browser-cjs/src/core/providers/saml.test.d.ts +17 -0
  99. package/dist/browser-cjs/src/core/providers/twitter.d.ts +103 -0
  100. package/dist/browser-cjs/src/core/providers/twitter.test.d.ts +17 -0
  101. package/dist/browser-cjs/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
  102. package/dist/browser-cjs/src/core/strategies/abstract_popup_redirect_operation.test.d.ts +17 -0
  103. package/dist/browser-cjs/src/core/strategies/action_code_settings.d.ts +19 -0
  104. package/dist/browser-cjs/src/core/strategies/action_code_settings.test.d.ts +17 -0
  105. package/dist/browser-cjs/src/core/strategies/anonymous.d.ts +29 -0
  106. package/dist/browser-cjs/src/core/strategies/anonymous.test.d.ts +17 -0
  107. package/dist/browser-cjs/src/core/strategies/credential.d.ts +58 -0
  108. package/dist/browser-cjs/src/core/strategies/credential.test.d.ts +17 -0
  109. package/dist/browser-cjs/src/core/strategies/custom_token.d.ts +34 -0
  110. package/dist/browser-cjs/src/core/strategies/custom_token.test.d.ts +17 -0
  111. package/dist/browser-cjs/src/core/strategies/email.d.ts +98 -0
  112. package/dist/browser-cjs/src/core/strategies/email.test.d.ts +17 -0
  113. package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +126 -0
  114. package/dist/browser-cjs/src/core/strategies/email_and_password.test.d.ts +17 -0
  115. package/dist/browser-cjs/src/core/strategies/email_link.d.ts +103 -0
  116. package/dist/browser-cjs/src/core/strategies/email_link.test.d.ts +17 -0
  117. package/dist/browser-cjs/src/core/strategies/idp.d.ts +32 -0
  118. package/dist/browser-cjs/src/core/strategies/idp.test.d.ts +17 -0
  119. package/dist/browser-cjs/src/core/strategies/redirect.d.ts +36 -0
  120. package/dist/browser-cjs/src/core/strategies/redirect.test.d.ts +17 -0
  121. package/dist/browser-cjs/src/core/user/account_info.d.ts +60 -0
  122. package/dist/browser-cjs/src/core/user/account_info.test.d.ts +17 -0
  123. package/dist/browser-cjs/src/core/user/additional_user_info.d.ts +31 -0
  124. package/dist/browser-cjs/src/core/user/additional_user_info.test.d.ts +17 -0
  125. package/dist/browser-cjs/src/core/user/id_token_result.d.ts +48 -0
  126. package/dist/browser-cjs/src/core/user/id_token_result.test.d.ts +17 -0
  127. package/dist/browser-cjs/src/core/user/invalidation.d.ts +18 -0
  128. package/dist/browser-cjs/src/core/user/invalidation.test.d.ts +17 -0
  129. package/dist/browser-cjs/src/core/user/link_unlink.d.ts +30 -0
  130. package/dist/browser-cjs/src/core/user/link_unlink.test.d.ts +17 -0
  131. package/dist/browser-cjs/src/core/user/proactive_refresh.d.ts +34 -0
  132. package/dist/browser-cjs/src/core/user/proactive_refresh.test.d.ts +17 -0
  133. package/dist/browser-cjs/src/core/user/reauthenticate.d.ts +20 -0
  134. package/dist/browser-cjs/src/core/user/reauthenticate.test.d.ts +17 -0
  135. package/dist/browser-cjs/src/core/user/reload.d.ts +27 -0
  136. package/dist/browser-cjs/src/core/user/reload.test.d.ts +17 -0
  137. package/dist/browser-cjs/src/core/user/token_manager.d.ts +49 -0
  138. package/dist/browser-cjs/src/core/user/token_manager.test.d.ts +17 -0
  139. package/dist/browser-cjs/src/core/user/user_credential_impl.d.ts +37 -0
  140. package/dist/browser-cjs/src/core/user/user_credential_impl.test.d.ts +17 -0
  141. package/dist/browser-cjs/src/core/user/user_impl.d.ts +68 -0
  142. package/dist/browser-cjs/src/core/user/user_impl.test.d.ts +17 -0
  143. package/dist/browser-cjs/src/core/user/user_metadata.d.ts +27 -0
  144. package/dist/browser-cjs/src/core/util/assert.d.ts +93 -0
  145. package/dist/browser-cjs/src/core/util/assert.test.d.ts +17 -0
  146. package/dist/browser-cjs/src/core/util/browser.d.ts +50 -0
  147. package/dist/browser-cjs/src/core/util/browser.test.d.ts +17 -0
  148. package/dist/browser-cjs/src/core/util/delay.d.ts +31 -0
  149. package/dist/browser-cjs/src/core/util/delay.test.d.ts +17 -0
  150. package/dist/browser-cjs/src/core/util/emulator.d.ts +18 -0
  151. package/dist/browser-cjs/src/core/util/emulator.test.d.ts +17 -0
  152. package/dist/browser-cjs/src/core/util/event_id.d.ts +17 -0
  153. package/dist/browser-cjs/src/core/util/event_id.test.d.ts +17 -0
  154. package/dist/browser-cjs/src/core/util/fetch_provider.d.ts +25 -0
  155. package/dist/browser-cjs/src/core/util/handler.d.ts +20 -0
  156. package/dist/browser-cjs/src/core/util/instantiator.d.ts +28 -0
  157. package/dist/browser-cjs/src/core/util/instantiator.test.d.ts +17 -0
  158. package/dist/browser-cjs/src/core/util/location.d.ts +19 -0
  159. package/dist/browser-cjs/src/core/util/log.d.ts +22 -0
  160. package/dist/browser-cjs/src/core/util/navigator.d.ts +21 -0
  161. package/dist/browser-cjs/src/core/util/providers.d.ts +23 -0
  162. package/dist/browser-cjs/src/core/util/resolver.d.ts +25 -0
  163. package/dist/browser-cjs/src/core/util/time.d.ts +17 -0
  164. package/dist/browser-cjs/src/core/util/validate_origin.d.ts +18 -0
  165. package/dist/browser-cjs/src/core/util/validate_origin.test.d.ts +17 -0
  166. package/dist/browser-cjs/src/core/util/version.d.ts +30 -0
  167. package/dist/browser-cjs/src/core/util/version.test.d.ts +17 -0
  168. package/dist/browser-cjs/src/index.d.ts +18 -0
  169. package/dist/browser-cjs/src/mfa/index.d.ts +18 -0
  170. package/dist/browser-cjs/src/mfa/mfa_assertion.d.ts +27 -0
  171. package/dist/browser-cjs/src/mfa/mfa_error.d.ts +35 -0
  172. package/dist/browser-cjs/src/mfa/mfa_info.d.ts +32 -0
  173. package/dist/browser-cjs/src/mfa/mfa_info.test.d.ts +17 -0
  174. package/dist/browser-cjs/src/mfa/mfa_resolver.d.ts +41 -0
  175. package/dist/browser-cjs/src/mfa/mfa_resolver.test.d.ts +17 -0
  176. package/dist/browser-cjs/src/mfa/mfa_session.d.ts +39 -0
  177. package/dist/browser-cjs/src/mfa/mfa_session.test.d.ts +17 -0
  178. package/dist/browser-cjs/src/mfa/mfa_user.d.ts +38 -0
  179. package/dist/browser-cjs/src/mfa/mfa_user.test.d.ts +17 -0
  180. package/dist/browser-cjs/src/model/application_verifier.d.ts +23 -0
  181. package/dist/browser-cjs/src/model/auth.d.ts +75 -0
  182. package/dist/browser-cjs/src/model/enum_maps.d.ts +97 -0
  183. package/dist/browser-cjs/src/model/enums.d.ts +74 -0
  184. package/dist/browser-cjs/src/model/id_token.d.ts +87 -0
  185. package/dist/browser-cjs/src/model/popup_redirect.d.ts +94 -0
  186. package/dist/browser-cjs/src/model/public_types.d.ts +1162 -0
  187. package/dist/browser-cjs/src/model/user.d.ts +83 -0
  188. package/dist/browser-cjs/src/platform_browser/auth.test.d.ts +17 -0
  189. package/dist/browser-cjs/src/platform_browser/auth_window.d.ts +37 -0
  190. package/dist/browser-cjs/src/platform_browser/iframe/gapi.d.ts +19 -0
  191. package/dist/browser-cjs/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
  192. package/dist/browser-cjs/src/platform_browser/iframe/gapi.test.d.ts +17 -0
  193. package/dist/browser-cjs/src/platform_browser/iframe/iframe.d.ts +18 -0
  194. package/dist/browser-cjs/src/platform_browser/iframe/iframe.test.d.ts +17 -0
  195. package/dist/browser-cjs/src/platform_browser/index.d.ts +27 -0
  196. package/dist/browser-cjs/src/platform_browser/load_js.d.ts +18 -0
  197. package/dist/browser-cjs/src/platform_browser/load_js.test.d.ts +17 -0
  198. package/dist/browser-cjs/src/platform_browser/messagechannel/index.d.ts +87 -0
  199. package/dist/browser-cjs/src/platform_browser/messagechannel/promise.d.ts +33 -0
  200. package/dist/browser-cjs/src/platform_browser/messagechannel/promise.test.d.ts +17 -0
  201. package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +63 -0
  202. package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.test.d.ts +17 -0
  203. package/dist/browser-cjs/src/platform_browser/messagechannel/sender.d.ts +46 -0
  204. package/dist/browser-cjs/src/platform_browser/messagechannel/sender.test.d.ts +17 -0
  205. package/dist/browser-cjs/src/platform_browser/mfa/assertions/phone.d.ts +56 -0
  206. package/dist/browser-cjs/src/platform_browser/mfa/assertions/phone.test.d.ts +17 -0
  207. package/dist/browser-cjs/src/platform_browser/persistence/browser.d.ts +27 -0
  208. package/dist/browser-cjs/src/platform_browser/persistence/browser.test.d.ts +17 -0
  209. package/dist/browser-cjs/src/platform_browser/persistence/indexed_db.d.ts +33 -0
  210. package/dist/browser-cjs/src/platform_browser/persistence/indexed_db.test.d.ts +17 -0
  211. package/dist/browser-cjs/src/platform_browser/persistence/local_storage.d.ts +25 -0
  212. package/dist/browser-cjs/src/platform_browser/persistence/local_storage.test.d.ts +17 -0
  213. package/dist/browser-cjs/src/platform_browser/persistence/session_storage.d.ts +24 -0
  214. package/dist/browser-cjs/src/platform_browser/persistence/session_storage.test.d.ts +17 -0
  215. package/dist/browser-cjs/src/platform_browser/popup_redirect.d.ts +24 -0
  216. package/dist/browser-cjs/src/platform_browser/popup_redirect.test.d.ts +17 -0
  217. package/dist/browser-cjs/src/platform_browser/providers/phone.d.ts +149 -0
  218. package/dist/browser-cjs/src/platform_browser/providers/phone.test.d.ts +17 -0
  219. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha.d.ts +23 -0
  220. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
  221. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_loader.test.d.ts +17 -0
  222. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_mock.d.ts +51 -0
  223. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_mock.test.d.ts +17 -0
  224. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +90 -0
  225. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.test.d.ts +17 -0
  226. package/dist/browser-cjs/src/platform_browser/strategies/phone.d.ts +98 -0
  227. package/dist/browser-cjs/src/platform_browser/strategies/phone.test.d.ts +17 -0
  228. package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +103 -0
  229. package/dist/browser-cjs/src/platform_browser/strategies/popup.test.d.ts +17 -0
  230. package/dist/browser-cjs/src/platform_browser/strategies/redirect.d.ts +165 -0
  231. package/dist/browser-cjs/src/platform_browser/strategies/redirect.test.d.ts +17 -0
  232. package/dist/browser-cjs/src/platform_browser/util/popup.d.ts +24 -0
  233. package/dist/browser-cjs/src/platform_browser/util/popup.test.d.ts +17 -0
  234. package/dist/browser-cjs/src/platform_browser/util/worker.d.ts +20 -0
  235. package/dist/browser-cjs/src/platform_cordova/plugins.d.ts +42 -0
  236. package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +39 -0
  237. package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.test.d.ts +17 -0
  238. package/dist/browser-cjs/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
  239. package/dist/browser-cjs/src/platform_cordova/popup_redirect/popup_redirect.test.d.ts +17 -0
  240. package/dist/browser-cjs/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
  241. package/dist/browser-cjs/src/platform_cordova/popup_redirect/utils.test.d.ts +17 -0
  242. package/dist/browser-cjs/src/platform_cordova/strategies/redirect.d.ts +20 -0
  243. package/dist/browser-cjs/src/platform_node/index.d.ts +49 -0
  244. package/dist/browser-cjs/src/platform_react_native/persistence/react_native.d.ts +25 -0
  245. package/dist/browser-cjs/src/platform_react_native/persistence/react_native.test.d.ts +17 -0
  246. package/dist/browser-cjs/test/helpers/api/helper.d.ts +20 -0
  247. package/dist/browser-cjs/test/helpers/delay.d.ts +20 -0
  248. package/dist/browser-cjs/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
  249. package/dist/browser-cjs/test/helpers/fake_service_worker.d.ts +22 -0
  250. package/dist/browser-cjs/test/helpers/id_token_response.d.ts +18 -0
  251. package/dist/browser-cjs/test/helpers/iframe_event.d.ts +19 -0
  252. package/dist/browser-cjs/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
  253. package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +20 -0
  254. package/dist/browser-cjs/test/helpers/integration/settings.d.ts +23 -0
  255. package/dist/browser-cjs/test/helpers/jwt.d.ts +17 -0
  256. package/dist/browser-cjs/test/helpers/mock_auth.d.ts +42 -0
  257. package/dist/browser-cjs/test/helpers/mock_auth_credential.d.ts +31 -0
  258. package/dist/browser-cjs/test/helpers/mock_fetch.d.ts +30 -0
  259. package/dist/browser-cjs/test/helpers/mock_fetch.test.d.ts +17 -0
  260. package/dist/browser-cjs/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
  261. package/dist/browser-cjs/test/helpers/redirect_persistence.d.ts +24 -0
  262. package/dist/browser-cjs/test/helpers/timeout_stub.d.ts +34 -0
  263. package/dist/browser-cjs/test/integration/flows/anonymous.test.d.ts +17 -0
  264. package/dist/browser-cjs/test/integration/flows/custom.local.test.d.ts +17 -0
  265. package/dist/browser-cjs/test/integration/flows/email.test.d.ts +17 -0
  266. package/dist/browser-cjs/test/integration/flows/idp.local.test.d.ts +17 -0
  267. package/dist/browser-cjs/test/integration/flows/middleware_test_generator.d.ts +18 -0
  268. package/dist/browser-cjs/test/integration/flows/oob.local.test.d.ts +17 -0
  269. package/dist/browser-cjs/test/integration/flows/phone.test.d.ts +17 -0
  270. package/dist/browser-cjs/test/integration/webdriver/anonymous.test.d.ts +17 -0
  271. package/dist/browser-cjs/test/integration/webdriver/compat/firebaseui.test.d.ts +17 -0
  272. package/dist/browser-cjs/test/integration/webdriver/persistence.test.d.ts +17 -0
  273. package/dist/browser-cjs/test/integration/webdriver/popup.test.d.ts +17 -0
  274. package/dist/browser-cjs/test/integration/webdriver/redirect.test.d.ts +17 -0
  275. package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +46 -0
  276. package/dist/browser-cjs/test/integration/webdriver/util/functions.d.ts +81 -0
  277. package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +31 -0
  278. package/dist/browser-cjs/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
  279. package/dist/browser-cjs/test/integration/webdriver/util/test_runner.d.ts +19 -0
  280. package/dist/browser-cjs/test/integration/webdriver/util/test_server.d.ts +27 -0
  281. package/dist/browser-cjs/test/integration/webdriver/util/ui_page.d.ts +33 -0
  282. package/dist/cordova/index.js +2 -2
  283. package/dist/cordova/internal.js +2 -2
  284. package/dist/cordova/{popup_redirect-f2a91123.js → popup_redirect-25d75288.js} +16 -15
  285. package/dist/cordova/popup_redirect-25d75288.js.map +1 -0
  286. package/dist/cordova/src/core/strategies/credential.d.ts +2 -1
  287. package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +6 -3
  288. package/dist/esm2017/{index-e5b3cc81.js → index-b10e00ad.js} +22 -20
  289. package/dist/esm2017/index-b10e00ad.js.map +1 -0
  290. package/dist/esm2017/index.js +1 -1
  291. package/dist/esm2017/internal.js +2 -2
  292. package/dist/esm2017/src/core/strategies/credential.d.ts +2 -1
  293. package/dist/esm2017/src/platform_browser/strategies/redirect.d.ts +6 -3
  294. package/dist/esm5/{index-624a9c08.js → index-c2c7ec8a.js} +16 -15
  295. package/dist/esm5/index-c2c7ec8a.js.map +1 -0
  296. package/dist/esm5/index.js +1 -1
  297. package/dist/esm5/internal.js +2 -2
  298. package/dist/esm5/src/core/strategies/credential.d.ts +2 -1
  299. package/dist/esm5/src/platform_browser/strategies/redirect.d.ts +6 -3
  300. package/dist/index.webworker.esm5.js +9 -11
  301. package/dist/index.webworker.esm5.js.map +1 -1
  302. package/dist/node/{index-69e083b1.js → index-173e1445.js} +10 -12
  303. package/dist/node/{index-69e083b1.js.map → index-173e1445.js.map} +1 -1
  304. package/dist/node/index.js +1 -1
  305. package/dist/node/internal.js +1 -1
  306. package/dist/node/internal.js.map +1 -1
  307. package/dist/node/src/core/strategies/credential.d.ts +2 -1
  308. package/dist/node/src/platform_browser/strategies/redirect.d.ts +6 -3
  309. package/dist/node-esm/{index-67ff6dfa.js → index-d3f6ac28.js} +16 -17
  310. package/dist/node-esm/{index-67ff6dfa.js.map → index-d3f6ac28.js.map} +1 -1
  311. package/dist/node-esm/index.js +1 -1
  312. package/dist/node-esm/internal.js +2 -2
  313. package/dist/node-esm/internal.js.map +1 -1
  314. package/dist/node-esm/src/core/strategies/credential.d.ts +2 -1
  315. package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +6 -3
  316. package/dist/rn/index.js +1 -1
  317. package/dist/rn/internal.js +7 -4
  318. package/dist/rn/internal.js.map +1 -1
  319. package/dist/rn/{phone-ec5655af.js → phone-d07e6704.js} +10 -12
  320. package/dist/rn/phone-d07e6704.js.map +1 -0
  321. package/dist/rn/src/core/strategies/credential.d.ts +2 -1
  322. package/dist/rn/src/platform_browser/strategies/redirect.d.ts +6 -3
  323. package/dist/src/core/strategies/credential.d.ts +2 -1
  324. package/dist/src/platform_browser/strategies/redirect.d.ts +6 -3
  325. package/package.json +15 -7
  326. package/dist/cordova/popup_redirect-f2a91123.js.map +0 -1
  327. package/dist/esm2017/index-e5b3cc81.js.map +0 -1
  328. package/dist/esm5/index-624a9c08.js.map +0 -1
  329. package/dist/rn/phone-ec5655af.js.map +0 -1
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { UserMetadata as UserMetadataType } from '../../model/public_types';
18
+ export declare class UserMetadata implements UserMetadataType {
19
+ private createdAt?;
20
+ private lastLoginAt?;
21
+ creationTime?: string;
22
+ lastSignInTime?: string;
23
+ constructor(createdAt?: string | number | undefined, lastLoginAt?: string | number | undefined);
24
+ private _initializeTime;
25
+ _copy(metadata: UserMetadata): void;
26
+ toJSON(): object;
27
+ }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { Auth } from '../../model/public_types';
18
+ import { FirebaseError } from '@firebase/util';
19
+ import { AuthErrorCode, AuthErrorParams } from '../errors';
20
+ declare type LessAppName<K extends AuthErrorCode> = Omit<AuthErrorParams[K], 'appName'>;
21
+ /**
22
+ * Unconditionally fails, throwing a developer facing INTERNAL_ERROR
23
+ *
24
+ * @example
25
+ * ```javascript
26
+ * fail(auth, AuthErrorCode.MFA_REQUIRED); // Error: the MFA_REQUIRED error needs more params than appName
27
+ * fail(auth, AuthErrorCode.MFA_REQUIRED, {serverResponse}); // Compiles
28
+ * fail(AuthErrorCode.INTERNAL_ERROR); // Compiles; internal error does not need appName
29
+ * fail(AuthErrorCode.USER_DELETED); // Error: USER_DELETED requires app name
30
+ * fail(auth, AuthErrorCode.USER_DELETED); // Compiles; USER_DELETED _only_ needs app name
31
+ * ```
32
+ *
33
+ * @param appName App name for tagging the error
34
+ * @throws FirebaseError
35
+ */
36
+ export declare function _fail<K extends AuthErrorCode>(code: K, ...data: {} extends AuthErrorParams[K] ? [AuthErrorParams[K]?] : [AuthErrorParams[K]]): never;
37
+ export declare function _fail<K extends AuthErrorCode>(auth: Auth, code: K, ...data: {} extends LessAppName<K> ? [LessAppName<K>?] : [LessAppName<K>]): never;
38
+ export declare function _createError<K extends AuthErrorCode>(code: K, ...data: {} extends AuthErrorParams[K] ? [AuthErrorParams[K]?] : [AuthErrorParams[K]]): FirebaseError;
39
+ export declare function _createError<K extends AuthErrorCode>(auth: Auth, code: K, ...data: {} extends LessAppName<K> ? [LessAppName<K>?] : [LessAppName<K>]): FirebaseError;
40
+ export declare function _errorWithCustomMessage(auth: Auth, code: AuthErrorCode, message: string): FirebaseError;
41
+ export declare function _assertInstanceOf(auth: Auth, object: object, instance: unknown): void;
42
+ export declare function _assert<K extends AuthErrorCode>(assertion: unknown, code: K, ...data: {} extends AuthErrorParams[K] ? [AuthErrorParams[K]?] : [AuthErrorParams[K]]): asserts assertion;
43
+ export declare function _assert<K extends AuthErrorCode>(assertion: unknown, auth: Auth, code: K, ...data: {} extends LessAppName<K> ? [LessAppName<K>?] : [LessAppName<K>]): asserts assertion;
44
+ declare type TypeExpectation = Function | string | MapType;
45
+ interface MapType extends Record<string, TypeExpectation | Optional> {
46
+ }
47
+ declare class Optional {
48
+ readonly type: TypeExpectation;
49
+ constructor(type: TypeExpectation);
50
+ }
51
+ export declare function opt(type: TypeExpectation): Optional;
52
+ /**
53
+ * Asserts the runtime types of arguments. The 'expected' field can be one of
54
+ * a class, a string (representing a "typeof" call), or a record map of name
55
+ * to type. Furthermore, the opt() function can be used to mark a field as
56
+ * optional. For example:
57
+ *
58
+ * function foo(auth: Auth, profile: {displayName?: string}, update = false) {
59
+ * assertTypes(arguments, [AuthImpl, {displayName: opt('string')}, opt('boolean')]);
60
+ * }
61
+ *
62
+ * opt() can be used for any type:
63
+ * function foo(auth?: Auth) {
64
+ * assertTypes(arguments, [opt(AuthImpl)]);
65
+ * }
66
+ *
67
+ * The string types can be or'd together, and you can use "null" as well (note
68
+ * that typeof null === 'object'; this is an edge case). For example:
69
+ *
70
+ * function foo(profile: {displayName?: string | null}) {
71
+ * assertTypes(arguments, [{displayName: opt('string|null')}]);
72
+ * }
73
+ *
74
+ * @param args
75
+ * @param expected
76
+ */
77
+ export declare function assertTypes(args: Omit<IArguments, 'callee'>, ...expected: Array<TypeExpectation | Optional>): void;
78
+ /**
79
+ * Unconditionally fails, throwing an internal error with the given message.
80
+ *
81
+ * @param failure type of failure encountered
82
+ * @throws Error
83
+ */
84
+ export declare function debugFail(failure: string): never;
85
+ /**
86
+ * Fails if the given assertion condition is false, throwing an Error with the
87
+ * given message if it did.
88
+ *
89
+ * @param assertion
90
+ * @param message
91
+ */
92
+ export declare function debugAssert(assertion: unknown, message: string): asserts assertion;
93
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Enums for Browser name.
19
+ */
20
+ export declare const enum BrowserName {
21
+ ANDROID = "Android",
22
+ BLACKBERRY = "Blackberry",
23
+ EDGE = "Edge",
24
+ FIREFOX = "Firefox",
25
+ IE = "IE",
26
+ IEMOBILE = "IEMobile",
27
+ OPERA = "Opera",
28
+ OTHER = "Other",
29
+ CHROME = "Chrome",
30
+ SAFARI = "Safari",
31
+ SILK = "Silk",
32
+ WEBOS = "Webos"
33
+ }
34
+ /**
35
+ * Determine the browser for the purposes of reporting usage to the API
36
+ */
37
+ export declare function _getBrowserName(userAgent: string): BrowserName | string;
38
+ export declare function _isFirefox(ua?: string): boolean;
39
+ export declare function _isSafari(userAgent?: string): boolean;
40
+ export declare function _isChromeIOS(ua?: string): boolean;
41
+ export declare function _isIEMobile(ua?: string): boolean;
42
+ export declare function _isAndroid(ua?: string): boolean;
43
+ export declare function _isBlackBerry(ua?: string): boolean;
44
+ export declare function _isWebOS(ua?: string): boolean;
45
+ export declare function _isIOS(ua?: string): boolean;
46
+ export declare function _isIOS7Or8(ua?: string): boolean;
47
+ export declare function _isIOSStandalone(ua?: string): boolean;
48
+ export declare function _isIE10(): boolean;
49
+ export declare function _isMobileBrowser(ua?: string): boolean;
50
+ export declare function _isIframe(): boolean;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare const enum DelayMin {
18
+ OFFLINE = 5000
19
+ }
20
+ /**
21
+ * A structure to help pick between a range of long and short delay durations
22
+ * depending on the current environment. In general, the long delay is used for
23
+ * mobile environments whereas short delays are used for desktop environments.
24
+ */
25
+ export declare class Delay {
26
+ private readonly shortDelay;
27
+ private readonly longDelay;
28
+ private readonly isMobile;
29
+ constructor(shortDelay: number, longDelay: number);
30
+ get(): number;
31
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ConfigInternal } from '../../model/auth';
18
+ export declare function _emulatorUrl(config: ConfigInternal, path?: string): string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare function _generateEventId(prefix?: string, digits?: number): string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare class FetchProvider {
18
+ private static fetchImpl;
19
+ private static headersImpl;
20
+ private static responseImpl;
21
+ static initialize(fetchImpl: typeof fetch, headersImpl?: typeof Headers, responseImpl?: typeof Response): void;
22
+ static fetch(): typeof fetch;
23
+ static headers(): typeof Headers;
24
+ static response(): typeof Response;
25
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { AuthProvider } from '../../model/public_types';
18
+ import { AuthInternal } from '../../model/auth';
19
+ import { AuthEventType } from '../../model/popup_redirect';
20
+ export declare function _getRedirectUrl(auth: AuthInternal, provider: AuthProvider, authType: AuthEventType, redirectUrl?: string, eventId?: string, additionalParams?: Record<string, string>): string;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Our API has a lot of one-off constants that are used to do things.
19
+ * Unfortunately we can't export these as classes instantiated directly since
20
+ * the constructor may side effect and therefore can't be proven to be safely
21
+ * culled. Instead, we export these classes themselves as a lowerCamelCase
22
+ * constant, and instantiate them under the hood.
23
+ */
24
+ export interface SingletonInstantiator<T> {
25
+ new (): T;
26
+ }
27
+ export declare function _getInstance<T>(cls: unknown): T;
28
+ export declare function _clearInstanceMap(): void;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare function _getCurrentUrl(): string;
18
+ export declare function _isHttpOrHttps(): boolean;
19
+ export declare function _getCurrentScheme(): string | null;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { LogLevel } from '@firebase/logger';
18
+ export { LogLevel };
19
+ export declare function _getLogLevel(): LogLevel;
20
+ export declare function _setLogLevel(newLevel: LogLevel): void;
21
+ export declare function _logDebug(msg: string, ...args: string[]): void;
22
+ export declare function _logError(msg: string, ...args: string[]): void;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Determine whether the browser is working online
19
+ */
20
+ export declare function _isOnline(): boolean;
21
+ export declare function _getUserLanguage(): string | null;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export interface ProviderAssociatedObject {
18
+ providerId?: string;
19
+ }
20
+ /**
21
+ * Takes a set of UserInfo provider data and converts it to a set of names
22
+ */
23
+ export declare function providerDataAsNames<T extends ProviderAssociatedObject>(providerData: T[]): Set<string>;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { PopupRedirectResolver } from '../../model/public_types';
18
+ import { AuthInternal } from '../../model/auth';
19
+ import { PopupRedirectResolverInternal } from '../../model/popup_redirect';
20
+ /**
21
+ * Chooses a popup/redirect resolver to use. This prefers the override (which
22
+ * is directly passed in), and falls back to the property set on the auth
23
+ * object. If neither are available, this function errors w/ an argument error.
24
+ */
25
+ export declare function _withDefaultResolver(auth: AuthInternal, resolverOverride: PopupRedirectResolver | undefined): PopupRedirectResolverInternal;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare function utcTimestampToDateString(utcTimestamp?: string | number): string | undefined;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { AuthInternal } from '../../model/auth';
18
+ export declare function _validateOrigin(auth: AuthInternal): Promise<void>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare const enum ClientImplementation {
18
+ CORE = "JsCore"
19
+ }
20
+ /**
21
+ * @internal
22
+ */
23
+ export declare const enum ClientPlatform {
24
+ BROWSER = "Browser",
25
+ NODE = "Node",
26
+ REACT_NATIVE = "ReactNative",
27
+ CORDOVA = "Cordova",
28
+ WORKER = "Worker"
29
+ }
30
+ export declare function _getClientVersion(clientPlatform: ClientPlatform, frameworks?: readonly string[]): string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};