@firebase/auth 0.21.1 → 0.21.2-20230131204242
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.
- package/CHANGELOG.md +13 -0
- package/dist/auth-public.d.ts +8 -4
- package/dist/auth.d.ts +8 -4
- package/dist/browser-cjs/index-888931f8.js +9642 -0
- package/dist/browser-cjs/index-888931f8.js.map +1 -0
- package/dist/browser-cjs/index.cordova.d.ts +32 -0
- package/dist/browser-cjs/index.d.ts +36 -0
- package/dist/browser-cjs/index.doc.d.ts +24 -0
- package/dist/browser-cjs/index.js +93 -0
- package/dist/browser-cjs/index.js.map +1 -0
- package/dist/browser-cjs/index.node.d.ts +17 -0
- package/dist/browser-cjs/index.rn.d.ts +32 -0
- package/dist/browser-cjs/index.shared.d.ts +19 -0
- package/dist/browser-cjs/index.webworker.d.ts +21 -0
- package/dist/browser-cjs/internal/index.d.ts +42 -0
- package/dist/browser-cjs/internal.js +667 -0
- package/dist/browser-cjs/internal.js.map +1 -0
- package/dist/browser-cjs/scripts/run_node_tests.d.ts +17 -0
- package/dist/browser-cjs/src/api/account_management/account.d.ts +59 -0
- package/dist/browser-cjs/src/api/account_management/account.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/account_management/email_and_password.d.ts +47 -0
- package/dist/browser-cjs/src/api/account_management/email_and_password.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/account_management/mfa.d.ts +69 -0
- package/dist/browser-cjs/src/api/account_management/mfa.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/account_management/profile.d.ts +29 -0
- package/dist/browser-cjs/src/api/account_management/profile.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/create_auth_uri.d.ts +26 -0
- package/dist/browser-cjs/src/api/authentication/create_auth_uri.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/custom_token.d.ts +26 -0
- package/dist/browser-cjs/src/api/authentication/custom_token.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/email_and_password.d.ts +76 -0
- package/dist/browser-cjs/src/api/authentication/email_and_password.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/email_link.d.ts +32 -0
- package/dist/browser-cjs/src/api/authentication/email_link.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/idp.d.ts +40 -0
- package/dist/browser-cjs/src/api/authentication/idp.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/mfa.d.ts +58 -0
- package/dist/browser-cjs/src/api/authentication/mfa.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/recaptcha.d.ts +18 -0
- package/dist/browser-cjs/src/api/authentication/recaptcha.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/sign_up.d.ts +29 -0
- package/dist/browser-cjs/src/api/authentication/sign_up.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/sms.d.ts +50 -0
- package/dist/browser-cjs/src/api/authentication/sms.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/authentication/token.d.ts +26 -0
- package/dist/browser-cjs/src/api/authentication/token.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/errors.d.ts +118 -0
- package/dist/browser-cjs/src/api/index.d.ts +69 -0
- package/dist/browser-cjs/src/api/index.test.d.ts +17 -0
- package/dist/browser-cjs/src/api/project_config/get_project_config.d.ts +25 -0
- package/dist/browser-cjs/src/api/project_config/get_project_config.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/action_code_url.d.ts +73 -0
- package/dist/browser-cjs/src/core/action_code_url.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/auth_event_manager.d.ts +34 -0
- package/dist/browser-cjs/src/core/auth/auth_event_manager.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +110 -0
- package/dist/browser-cjs/src/core/auth/auth_impl.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/emulator.d.ts +42 -0
- package/dist/browser-cjs/src/core/auth/emulator.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/firebase_internal.d.ts +35 -0
- package/dist/browser-cjs/src/core/auth/firebase_internal.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/initialize.d.ts +46 -0
- package/dist/browser-cjs/src/core/auth/initialize.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/middleware.d.ts +25 -0
- package/dist/browser-cjs/src/core/auth/middleware.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/register.d.ts +23 -0
- package/dist/browser-cjs/src/core/credentials/auth_credential.d.ts +75 -0
- package/dist/browser-cjs/src/core/credentials/email.d.ts +60 -0
- package/dist/browser-cjs/src/core/credentials/email.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/credentials/index.d.ts +23 -0
- package/dist/browser-cjs/src/core/credentials/oauth.d.ts +81 -0
- package/dist/browser-cjs/src/core/credentials/oauth.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/credentials/phone.d.ts +52 -0
- package/dist/browser-cjs/src/core/credentials/phone.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/credentials/saml.d.ts +52 -0
- package/dist/browser-cjs/src/core/credentials/saml.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/errors.d.ts +305 -0
- package/dist/browser-cjs/src/core/errors.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/index.d.ts +158 -0
- package/dist/browser-cjs/src/core/persistence/in_memory.d.ts +35 -0
- package/dist/browser-cjs/src/core/persistence/in_memory.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/persistence/index.d.ts +41 -0
- package/dist/browser-cjs/src/core/persistence/persistence_user_manager.d.ts +45 -0
- package/dist/browser-cjs/src/core/persistence/persistence_user_manager.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/email.d.ts +83 -0
- package/dist/browser-cjs/src/core/providers/email.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/facebook.d.ts +93 -0
- package/dist/browser-cjs/src/core/providers/facebook.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/federated.d.ts +64 -0
- package/dist/browser-cjs/src/core/providers/federated.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/github.d.ts +89 -0
- package/dist/browser-cjs/src/core/providers/github.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/google.d.ts +96 -0
- package/dist/browser-cjs/src/core/providers/google.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/oauth.d.ts +151 -0
- package/dist/browser-cjs/src/core/providers/oauth.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/saml.d.ts +62 -0
- package/dist/browser-cjs/src/core/providers/saml.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/providers/twitter.d.ts +103 -0
- package/dist/browser-cjs/src/core/providers/twitter.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
- package/dist/browser-cjs/src/core/strategies/abstract_popup_redirect_operation.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/action_code_settings.d.ts +19 -0
- package/dist/browser-cjs/src/core/strategies/action_code_settings.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/anonymous.d.ts +29 -0
- package/dist/browser-cjs/src/core/strategies/anonymous.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/credential.d.ts +58 -0
- package/dist/browser-cjs/src/core/strategies/credential.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/custom_token.d.ts +34 -0
- package/dist/browser-cjs/src/core/strategies/custom_token.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/email.d.ts +98 -0
- package/dist/browser-cjs/src/core/strategies/email.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/email_and_password.d.ts +126 -0
- package/dist/browser-cjs/src/core/strategies/email_and_password.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/email_link.d.ts +103 -0
- package/dist/browser-cjs/src/core/strategies/email_link.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/idp.d.ts +32 -0
- package/dist/browser-cjs/src/core/strategies/idp.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/strategies/redirect.d.ts +36 -0
- package/dist/browser-cjs/src/core/strategies/redirect.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/account_info.d.ts +60 -0
- package/dist/browser-cjs/src/core/user/account_info.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/additional_user_info.d.ts +31 -0
- package/dist/browser-cjs/src/core/user/additional_user_info.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/id_token_result.d.ts +48 -0
- package/dist/browser-cjs/src/core/user/id_token_result.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/invalidation.d.ts +18 -0
- package/dist/browser-cjs/src/core/user/invalidation.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/link_unlink.d.ts +30 -0
- package/dist/browser-cjs/src/core/user/link_unlink.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/proactive_refresh.d.ts +34 -0
- package/dist/browser-cjs/src/core/user/proactive_refresh.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/reauthenticate.d.ts +20 -0
- package/dist/browser-cjs/src/core/user/reauthenticate.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/reload.d.ts +27 -0
- package/dist/browser-cjs/src/core/user/reload.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/token_manager.d.ts +49 -0
- package/dist/browser-cjs/src/core/user/token_manager.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/user_credential_impl.d.ts +37 -0
- package/dist/browser-cjs/src/core/user/user_credential_impl.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/user_impl.d.ts +68 -0
- package/dist/browser-cjs/src/core/user/user_impl.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/user/user_metadata.d.ts +27 -0
- package/dist/browser-cjs/src/core/util/assert.d.ts +93 -0
- package/dist/browser-cjs/src/core/util/assert.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/browser.d.ts +50 -0
- package/dist/browser-cjs/src/core/util/browser.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/delay.d.ts +31 -0
- package/dist/browser-cjs/src/core/util/delay.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/emulator.d.ts +18 -0
- package/dist/browser-cjs/src/core/util/emulator.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/event_id.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/event_id.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/fetch_provider.d.ts +25 -0
- package/dist/browser-cjs/src/core/util/handler.d.ts +20 -0
- package/dist/browser-cjs/src/core/util/instantiator.d.ts +28 -0
- package/dist/browser-cjs/src/core/util/instantiator.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/location.d.ts +19 -0
- package/dist/browser-cjs/src/core/util/log.d.ts +22 -0
- package/dist/browser-cjs/src/core/util/navigator.d.ts +21 -0
- package/dist/browser-cjs/src/core/util/providers.d.ts +23 -0
- package/dist/browser-cjs/src/core/util/resolver.d.ts +25 -0
- package/dist/browser-cjs/src/core/util/time.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/validate_origin.d.ts +18 -0
- package/dist/browser-cjs/src/core/util/validate_origin.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/util/version.d.ts +30 -0
- package/dist/browser-cjs/src/core/util/version.test.d.ts +17 -0
- package/dist/browser-cjs/src/index.d.ts +18 -0
- package/dist/browser-cjs/src/mfa/index.d.ts +18 -0
- package/dist/browser-cjs/src/mfa/mfa_assertion.d.ts +27 -0
- package/dist/browser-cjs/src/mfa/mfa_error.d.ts +35 -0
- package/dist/browser-cjs/src/mfa/mfa_info.d.ts +32 -0
- package/dist/browser-cjs/src/mfa/mfa_info.test.d.ts +17 -0
- package/dist/browser-cjs/src/mfa/mfa_resolver.d.ts +41 -0
- package/dist/browser-cjs/src/mfa/mfa_resolver.test.d.ts +17 -0
- package/dist/browser-cjs/src/mfa/mfa_session.d.ts +39 -0
- package/dist/browser-cjs/src/mfa/mfa_session.test.d.ts +17 -0
- package/dist/browser-cjs/src/mfa/mfa_user.d.ts +38 -0
- package/dist/browser-cjs/src/mfa/mfa_user.test.d.ts +17 -0
- package/dist/browser-cjs/src/model/application_verifier.d.ts +23 -0
- package/dist/browser-cjs/src/model/auth.d.ts +75 -0
- package/dist/browser-cjs/src/model/enum_maps.d.ts +97 -0
- package/dist/browser-cjs/src/model/enums.d.ts +74 -0
- package/dist/browser-cjs/src/model/id_token.d.ts +87 -0
- package/dist/browser-cjs/src/model/popup_redirect.d.ts +94 -0
- package/dist/browser-cjs/src/model/public_types.d.ts +1162 -0
- package/dist/browser-cjs/src/model/user.d.ts +83 -0
- package/dist/browser-cjs/src/platform_browser/auth.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/auth_window.d.ts +37 -0
- package/dist/browser-cjs/src/platform_browser/iframe/gapi.d.ts +19 -0
- package/dist/browser-cjs/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
- package/dist/browser-cjs/src/platform_browser/iframe/gapi.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/iframe/iframe.d.ts +18 -0
- package/dist/browser-cjs/src/platform_browser/iframe/iframe.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/index.d.ts +27 -0
- package/dist/browser-cjs/src/platform_browser/load_js.d.ts +18 -0
- package/dist/browser-cjs/src/platform_browser/load_js.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/messagechannel/index.d.ts +87 -0
- package/dist/browser-cjs/src/platform_browser/messagechannel/promise.d.ts +33 -0
- package/dist/browser-cjs/src/platform_browser/messagechannel/promise.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +63 -0
- package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/messagechannel/sender.d.ts +46 -0
- package/dist/browser-cjs/src/platform_browser/messagechannel/sender.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/mfa/assertions/phone.d.ts +56 -0
- package/dist/browser-cjs/src/platform_browser/mfa/assertions/phone.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/persistence/browser.d.ts +27 -0
- package/dist/browser-cjs/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/persistence/indexed_db.d.ts +33 -0
- package/dist/browser-cjs/src/platform_browser/persistence/indexed_db.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/persistence/local_storage.d.ts +25 -0
- package/dist/browser-cjs/src/platform_browser/persistence/local_storage.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/persistence/session_storage.d.ts +24 -0
- package/dist/browser-cjs/src/platform_browser/persistence/session_storage.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/popup_redirect.d.ts +24 -0
- package/dist/browser-cjs/src/platform_browser/popup_redirect.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/providers/phone.d.ts +149 -0
- package/dist/browser-cjs/src/platform_browser/providers/phone.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha.d.ts +23 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_loader.d.ts +49 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_loader.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_mock.d.ts +51 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_mock.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +90 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_verifier.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/strategies/phone.d.ts +98 -0
- package/dist/browser-cjs/src/platform_browser/strategies/phone.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/strategies/popup.d.ts +103 -0
- package/dist/browser-cjs/src/platform_browser/strategies/popup.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/strategies/redirect.d.ts +165 -0
- package/dist/browser-cjs/src/platform_browser/strategies/redirect.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/util/popup.d.ts +24 -0
- package/dist/browser-cjs/src/platform_browser/util/popup.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_browser/util/worker.d.ts +20 -0
- package/dist/browser-cjs/src/platform_cordova/plugins.d.ts +42 -0
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +39 -0
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/popup_redirect.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/utils.test.d.ts +17 -0
- package/dist/browser-cjs/src/platform_cordova/strategies/redirect.d.ts +20 -0
- package/dist/browser-cjs/src/platform_node/index.d.ts +49 -0
- package/dist/browser-cjs/src/platform_react_native/persistence/react_native.d.ts +25 -0
- package/dist/browser-cjs/src/platform_react_native/persistence/react_native.test.d.ts +17 -0
- package/dist/browser-cjs/test/helpers/api/helper.d.ts +20 -0
- package/dist/browser-cjs/test/helpers/delay.d.ts +20 -0
- package/dist/browser-cjs/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/dist/browser-cjs/test/helpers/fake_service_worker.d.ts +22 -0
- package/dist/browser-cjs/test/helpers/id_token_response.d.ts +18 -0
- package/dist/browser-cjs/test/helpers/iframe_event.d.ts +19 -0
- package/dist/browser-cjs/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
- package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +20 -0
- package/dist/browser-cjs/test/helpers/integration/settings.d.ts +23 -0
- package/dist/browser-cjs/test/helpers/jwt.d.ts +17 -0
- package/dist/browser-cjs/test/helpers/mock_auth.d.ts +42 -0
- package/dist/browser-cjs/test/helpers/mock_auth_credential.d.ts +31 -0
- package/dist/browser-cjs/test/helpers/mock_fetch.d.ts +30 -0
- package/dist/browser-cjs/test/helpers/mock_fetch.test.d.ts +17 -0
- package/dist/browser-cjs/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
- package/dist/browser-cjs/test/helpers/redirect_persistence.d.ts +24 -0
- package/dist/browser-cjs/test/helpers/timeout_stub.d.ts +34 -0
- package/dist/browser-cjs/test/integration/flows/anonymous.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/flows/custom.local.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/flows/email.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/flows/idp.local.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/flows/middleware_test_generator.d.ts +18 -0
- package/dist/browser-cjs/test/integration/flows/oob.local.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/flows/phone.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/webdriver/anonymous.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/webdriver/compat/firebaseui.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/webdriver/persistence.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/webdriver/popup.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/webdriver/redirect.test.d.ts +17 -0
- package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +46 -0
- package/dist/browser-cjs/test/integration/webdriver/util/functions.d.ts +81 -0
- package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +31 -0
- package/dist/browser-cjs/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
- package/dist/browser-cjs/test/integration/webdriver/util/test_runner.d.ts +19 -0
- package/dist/browser-cjs/test/integration/webdriver/util/test_server.d.ts +27 -0
- package/dist/browser-cjs/test/integration/webdriver/util/ui_page.d.ts +33 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-f2a91123.js → popup_redirect-e3f41047.js} +16 -15
- package/dist/cordova/popup_redirect-e3f41047.js.map +1 -0
- package/dist/cordova/src/core/strategies/credential.d.ts +2 -1
- package/dist/cordova/src/platform_browser/strategies/redirect.d.ts +6 -3
- package/dist/esm2017/{index-e5b3cc81.js → index-ad92feb8.js} +22 -20
- package/dist/esm2017/index-ad92feb8.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/strategies/credential.d.ts +2 -1
- package/dist/esm2017/src/platform_browser/strategies/redirect.d.ts +6 -3
- package/dist/esm5/{index-624a9c08.js → index-b011a244.js} +16 -15
- package/dist/esm5/index-b011a244.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/strategies/credential.d.ts +2 -1
- package/dist/esm5/src/platform_browser/strategies/redirect.d.ts +6 -3
- package/dist/index.webworker.esm5.js +9 -11
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-69e083b1.js → index-07d4f473.js} +10 -12
- package/dist/node/{index-69e083b1.js.map → index-07d4f473.js.map} +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/strategies/credential.d.ts +2 -1
- package/dist/node/src/platform_browser/strategies/redirect.d.ts +6 -3
- package/dist/node-esm/{index-67ff6dfa.js → index-0d69afd8.js} +16 -17
- package/dist/node-esm/{index-67ff6dfa.js.map → index-0d69afd8.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/strategies/credential.d.ts +2 -1
- package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +6 -3
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +7 -4
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-ec5655af.js → phone-92601072.js} +10 -12
- package/dist/rn/phone-92601072.js.map +1 -0
- package/dist/rn/src/core/strategies/credential.d.ts +2 -1
- package/dist/rn/src/platform_browser/strategies/redirect.d.ts +6 -3
- package/dist/src/core/strategies/credential.d.ts +2 -1
- package/dist/src/platform_browser/strategies/redirect.d.ts +6 -3
- package/package.json +15 -7
- package/dist/cordova/popup_redirect-f2a91123.js.map +0 -1
- package/dist/esm2017/index-e5b3cc81.js.map +0 -1
- package/dist/esm5/index-624a9c08.js.map +0 -1
- package/dist/rn/phone-ec5655af.js.map +0 -1
|
@@ -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,29 @@
|
|
|
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, UserCredential } from '../../model/public_types';
|
|
18
|
+
/**
|
|
19
|
+
* Asynchronously signs in as an anonymous user.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* If there is already an anonymous user signed in, that user will be returned; otherwise, a
|
|
23
|
+
* new anonymous user identity will be created and returned.
|
|
24
|
+
*
|
|
25
|
+
* @param auth - The {@link Auth} instance.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export declare function signInAnonymously(auth: Auth): Promise<UserCredential>;
|
|
@@ -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,58 @@
|
|
|
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 { UserCredential, Auth, User } from '../../model/public_types';
|
|
18
|
+
import { AuthInternal } from '../../model/auth';
|
|
19
|
+
import { AuthCredential } from '../credentials';
|
|
20
|
+
export declare function _signInWithCredential(auth: AuthInternal, credential: AuthCredential, bypassAuthState?: boolean): Promise<UserCredential>;
|
|
21
|
+
/**
|
|
22
|
+
* Asynchronously signs in with the given credentials.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* An {@link AuthProvider} can be used to generate the credential.
|
|
26
|
+
*
|
|
27
|
+
* @param auth - The {@link Auth} instance.
|
|
28
|
+
* @param credential - The auth credential.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare function signInWithCredential(auth: Auth, credential: AuthCredential): Promise<UserCredential>;
|
|
33
|
+
/**
|
|
34
|
+
* Links the user account with the given credentials.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* An {@link AuthProvider} can be used to generate the credential.
|
|
38
|
+
*
|
|
39
|
+
* @param user - The user.
|
|
40
|
+
* @param credential - The auth credential.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare function linkWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
|
|
45
|
+
/**
|
|
46
|
+
* Re-authenticates a user using a fresh credential.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* Use before operations such as {@link updatePassword} that require tokens from recent sign-in
|
|
50
|
+
* attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error
|
|
51
|
+
* or a `TOKEN_EXPIRED` error.
|
|
52
|
+
*
|
|
53
|
+
* @param user - The user.
|
|
54
|
+
* @param credential - The auth credential.
|
|
55
|
+
*
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
export declare function reauthenticateWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
|
|
@@ -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,34 @@
|
|
|
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, UserCredential } from '../../model/public_types';
|
|
18
|
+
/**
|
|
19
|
+
* Asynchronously signs in using a custom token.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Custom tokens are used to integrate Firebase Auth with existing auth systems, and must
|
|
23
|
+
* be generated by an auth backend using the
|
|
24
|
+
* {@link https://firebase.google.com/docs/reference/admin/node/admin.auth.Auth#createcustomtoken | createCustomToken}
|
|
25
|
+
* method in the {@link https://firebase.google.com/docs/auth/admin | Admin SDK} .
|
|
26
|
+
*
|
|
27
|
+
* Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.
|
|
28
|
+
*
|
|
29
|
+
* @param auth - The {@link Auth} instance.
|
|
30
|
+
* @param customToken - The custom token to sign in with.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export declare function signInWithCustomToken(auth: Auth, customToken: string): Promise<UserCredential>;
|
|
@@ -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,98 @@
|
|
|
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 { ActionCodeSettings, Auth, User } from '../../model/public_types';
|
|
18
|
+
/**
|
|
19
|
+
* Gets the list of possible sign in methods for the given email address.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* This is useful to differentiate methods of sign-in for the same provider, eg.
|
|
23
|
+
* {@link EmailAuthProvider} which has 2 methods of sign-in,
|
|
24
|
+
* {@link SignInMethod}.EMAIL_PASSWORD and
|
|
25
|
+
* {@link SignInMethod}.EMAIL_LINK.
|
|
26
|
+
*
|
|
27
|
+
* @param auth - The {@link Auth} instance.
|
|
28
|
+
* @param email - The user's email address.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Sends a verification email to a user.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* The verification process is completed by calling {@link applyActionCode}.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```javascript
|
|
41
|
+
* const actionCodeSettings = {
|
|
42
|
+
* url: 'https://www.example.com/?email=user@example.com',
|
|
43
|
+
* iOS: {
|
|
44
|
+
* bundleId: 'com.example.ios'
|
|
45
|
+
* },
|
|
46
|
+
* android: {
|
|
47
|
+
* packageName: 'com.example.android',
|
|
48
|
+
* installApp: true,
|
|
49
|
+
* minimumVersion: '12'
|
|
50
|
+
* },
|
|
51
|
+
* handleCodeInApp: true
|
|
52
|
+
* };
|
|
53
|
+
* await sendEmailVerification(user, actionCodeSettings);
|
|
54
|
+
* // Obtain code from the user.
|
|
55
|
+
* await applyActionCode(auth, code);
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param user - The user.
|
|
59
|
+
* @param actionCodeSettings - The {@link ActionCodeSettings}.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export declare function sendEmailVerification(user: User, actionCodeSettings?: ActionCodeSettings | null): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Sends a verification email to a new email address.
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* The user's email will be updated to the new one after being verified.
|
|
69
|
+
*
|
|
70
|
+
* If you have a custom email action handler, you can complete the verification process by calling
|
|
71
|
+
* {@link applyActionCode}.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```javascript
|
|
75
|
+
* const actionCodeSettings = {
|
|
76
|
+
* url: 'https://www.example.com/?email=user@example.com',
|
|
77
|
+
* iOS: {
|
|
78
|
+
* bundleId: 'com.example.ios'
|
|
79
|
+
* },
|
|
80
|
+
* android: {
|
|
81
|
+
* packageName: 'com.example.android',
|
|
82
|
+
* installApp: true,
|
|
83
|
+
* minimumVersion: '12'
|
|
84
|
+
* },
|
|
85
|
+
* handleCodeInApp: true
|
|
86
|
+
* };
|
|
87
|
+
* await verifyBeforeUpdateEmail(user, 'newemail@example.com', actionCodeSettings);
|
|
88
|
+
* // Obtain code from the user.
|
|
89
|
+
* await applyActionCode(auth, code);
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @param user - The user.
|
|
93
|
+
* @param newEmail - The new email address to be verified before update.
|
|
94
|
+
* @param actionCodeSettings - The {@link ActionCodeSettings}.
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare function verifyBeforeUpdateEmail(user: User, newEmail: string, actionCodeSettings?: ActionCodeSettings | null): 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,126 @@
|
|
|
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 { ActionCodeInfo, ActionCodeSettings, Auth, UserCredential } from '../../model/public_types';
|
|
18
|
+
/**
|
|
19
|
+
* Sends a password reset email to the given email address.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* To complete the password reset, call {@link confirmPasswordReset} with the code supplied in
|
|
23
|
+
* the email sent to the user, along with the new password specified by the user.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```javascript
|
|
27
|
+
* const actionCodeSettings = {
|
|
28
|
+
* url: 'https://www.example.com/?email=user@example.com',
|
|
29
|
+
* iOS: {
|
|
30
|
+
* bundleId: 'com.example.ios'
|
|
31
|
+
* },
|
|
32
|
+
* android: {
|
|
33
|
+
* packageName: 'com.example.android',
|
|
34
|
+
* installApp: true,
|
|
35
|
+
* minimumVersion: '12'
|
|
36
|
+
* },
|
|
37
|
+
* handleCodeInApp: true
|
|
38
|
+
* };
|
|
39
|
+
* await sendPasswordResetEmail(auth, 'user@example.com', actionCodeSettings);
|
|
40
|
+
* // Obtain code from user.
|
|
41
|
+
* await confirmPasswordReset('user@example.com', code);
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param auth - The {@link Auth} instance.
|
|
45
|
+
* @param email - The user's email address.
|
|
46
|
+
* @param actionCodeSettings - The {@link ActionCodeSettings}.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export declare function sendPasswordResetEmail(auth: Auth, email: string, actionCodeSettings?: ActionCodeSettings): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Completes the password reset process, given a confirmation code and new password.
|
|
53
|
+
*
|
|
54
|
+
* @param auth - The {@link Auth} instance.
|
|
55
|
+
* @param oobCode - A confirmation code sent to the user.
|
|
56
|
+
* @param newPassword - The new password.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export declare function confirmPasswordReset(auth: Auth, oobCode: string, newPassword: string): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Applies a verification code sent to the user by email or other out-of-band mechanism.
|
|
63
|
+
*
|
|
64
|
+
* @param auth - The {@link Auth} instance.
|
|
65
|
+
* @param oobCode - A verification code sent to the user.
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export declare function applyActionCode(auth: Auth, oobCode: string): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Checks a verification code sent to the user by email or other out-of-band mechanism.
|
|
72
|
+
*
|
|
73
|
+
* @returns metadata about the code.
|
|
74
|
+
*
|
|
75
|
+
* @param auth - The {@link Auth} instance.
|
|
76
|
+
* @param oobCode - A verification code sent to the user.
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare function checkActionCode(auth: Auth, oobCode: string): Promise<ActionCodeInfo>;
|
|
81
|
+
/**
|
|
82
|
+
* Checks a password reset code sent to the user by email or other out-of-band mechanism.
|
|
83
|
+
*
|
|
84
|
+
* @returns the user's email address if valid.
|
|
85
|
+
*
|
|
86
|
+
* @param auth - The {@link Auth} instance.
|
|
87
|
+
* @param code - A verification code sent to the user.
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare function verifyPasswordResetCode(auth: Auth, code: string): Promise<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates a new user account associated with the specified email address and password.
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* On successful creation of the user account, this user will also be signed in to your application.
|
|
97
|
+
*
|
|
98
|
+
* User account creation can fail if the account already exists or the password is invalid.
|
|
99
|
+
*
|
|
100
|
+
* Note: The email address acts as a unique identifier for the user and enables an email-based
|
|
101
|
+
* password reset. This function will create a new user account and set the initial user password.
|
|
102
|
+
*
|
|
103
|
+
* @param auth - The {@link Auth} instance.
|
|
104
|
+
* @param email - The user's email address.
|
|
105
|
+
* @param password - The user's chosen password.
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export declare function createUserWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
|
|
110
|
+
/**
|
|
111
|
+
* Asynchronously signs in using an email and password.
|
|
112
|
+
*
|
|
113
|
+
* @remarks
|
|
114
|
+
* Fails with an error if the email address and password do not match.
|
|
115
|
+
*
|
|
116
|
+
* Note: The user's password is NOT the password used to access the user's email account. The
|
|
117
|
+
* email address serves as a unique identifier for the user, and the password is used to access
|
|
118
|
+
* the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.
|
|
119
|
+
*
|
|
120
|
+
* @param auth - The {@link Auth} instance.
|
|
121
|
+
* @param email - The users email address.
|
|
122
|
+
* @param password - The users password.
|
|
123
|
+
*
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export declare function signInWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
|
|
@@ -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,103 @@
|
|
|
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 { ActionCodeSettings, Auth, UserCredential } from '../../model/public_types';
|
|
18
|
+
/**
|
|
19
|
+
* Sends a sign-in email link to the user with the specified email.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* The sign-in operation has to always be completed in the app unlike other out of band email
|
|
23
|
+
* actions (password reset and email verifications). This is because, at the end of the flow,
|
|
24
|
+
* the user is expected to be signed in and their Auth state persisted within the app.
|
|
25
|
+
*
|
|
26
|
+
* To complete sign in with the email link, call {@link signInWithEmailLink} with the email
|
|
27
|
+
* address and the email link supplied in the email sent to the user.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```javascript
|
|
31
|
+
* const actionCodeSettings = {
|
|
32
|
+
* url: 'https://www.example.com/?email=user@example.com',
|
|
33
|
+
* iOS: {
|
|
34
|
+
* bundleId: 'com.example.ios'
|
|
35
|
+
* },
|
|
36
|
+
* android: {
|
|
37
|
+
* packageName: 'com.example.android',
|
|
38
|
+
* installApp: true,
|
|
39
|
+
* minimumVersion: '12'
|
|
40
|
+
* },
|
|
41
|
+
* handleCodeInApp: true
|
|
42
|
+
* };
|
|
43
|
+
* await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);
|
|
44
|
+
* // Obtain emailLink from the user.
|
|
45
|
+
* if(isSignInWithEmailLink(auth, emailLink)) {
|
|
46
|
+
* await signInWithEmailLink(auth, 'user@example.com', emailLink);
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param authInternal - The {@link Auth} instance.
|
|
51
|
+
* @param email - The user's email address.
|
|
52
|
+
* @param actionCodeSettings - The {@link ActionCodeSettings}.
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export declare function sendSignInLinkToEmail(auth: Auth, email: string, actionCodeSettings: ActionCodeSettings): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Checks if an incoming link is a sign-in with email link suitable for {@link signInWithEmailLink}.
|
|
59
|
+
*
|
|
60
|
+
* @param auth - The {@link Auth} instance.
|
|
61
|
+
* @param emailLink - The link sent to the user's email address.
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare function isSignInWithEmailLink(auth: Auth, emailLink: string): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Asynchronously signs in using an email and sign-in email link.
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* If no link is passed, the link is inferred from the current URL.
|
|
71
|
+
*
|
|
72
|
+
* Fails with an error if the email address is invalid or OTP in email link expires.
|
|
73
|
+
*
|
|
74
|
+
* Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```javascript
|
|
78
|
+
* const actionCodeSettings = {
|
|
79
|
+
* url: 'https://www.example.com/?email=user@example.com',
|
|
80
|
+
* iOS: {
|
|
81
|
+
* bundleId: 'com.example.ios'
|
|
82
|
+
* },
|
|
83
|
+
* android: {
|
|
84
|
+
* packageName: 'com.example.android',
|
|
85
|
+
* installApp: true,
|
|
86
|
+
* minimumVersion: '12'
|
|
87
|
+
* },
|
|
88
|
+
* handleCodeInApp: true
|
|
89
|
+
* };
|
|
90
|
+
* await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);
|
|
91
|
+
* // Obtain emailLink from the user.
|
|
92
|
+
* if(isSignInWithEmailLink(auth, emailLink)) {
|
|
93
|
+
* await signInWithEmailLink(auth, 'user@example.com', emailLink);
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param auth - The {@link Auth} instance.
|
|
98
|
+
* @param email - The user's email address.
|
|
99
|
+
* @param emailLink - The link sent to the user's email address.
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare function signInWithEmailLink(auth: Auth, email: string, emailLink?: string): Promise<UserCredential>;
|
|
@@ -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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 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
|
+
import { UserInternal, UserCredentialInternal } from '../../model/user';
|
|
19
|
+
export interface IdpTaskParams {
|
|
20
|
+
auth: AuthInternal;
|
|
21
|
+
requestUri: string;
|
|
22
|
+
sessionId?: string;
|
|
23
|
+
tenantId?: string;
|
|
24
|
+
postBody?: string;
|
|
25
|
+
pendingToken?: string;
|
|
26
|
+
user?: UserInternal;
|
|
27
|
+
bypassAuthState?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare type IdpTask = (params: IdpTaskParams) => Promise<UserCredentialInternal>;
|
|
30
|
+
export declare function _signIn(params: IdpTaskParams): Promise<UserCredentialInternal>;
|
|
31
|
+
export declare function _reauth(params: IdpTaskParams): Promise<UserCredentialInternal>;
|
|
32
|
+
export declare function _link(params: IdpTaskParams): Promise<UserCredentialInternal>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 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,36 @@
|
|
|
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
|
+
import { AuthEvent, PopupRedirectResolverInternal } from '../../model/popup_redirect';
|
|
19
|
+
import { UserCredentialInternal } from '../../model/user';
|
|
20
|
+
import { AbstractPopupRedirectOperation } from './abstract_popup_redirect_operation';
|
|
21
|
+
export declare class RedirectAction extends AbstractPopupRedirectOperation {
|
|
22
|
+
eventId: null;
|
|
23
|
+
constructor(auth: AuthInternal, resolver: PopupRedirectResolverInternal, bypassAuthState?: boolean);
|
|
24
|
+
/**
|
|
25
|
+
* Override the execute function; if we already have a redirect result, then
|
|
26
|
+
* just return it.
|
|
27
|
+
*/
|
|
28
|
+
execute(): Promise<UserCredentialInternal | null>;
|
|
29
|
+
onAuthEvent(event: AuthEvent): Promise<void>;
|
|
30
|
+
onExecution(): Promise<void>;
|
|
31
|
+
cleanUp(): void;
|
|
32
|
+
}
|
|
33
|
+
export declare function _getAndClearPendingRedirectStatus(resolver: PopupRedirectResolverInternal, auth: AuthInternal): Promise<boolean>;
|
|
34
|
+
export declare function _setPendingRedirectStatus(resolver: PopupRedirectResolverInternal, auth: AuthInternal): Promise<void>;
|
|
35
|
+
export declare function _clearRedirectOutcomes(): void;
|
|
36
|
+
export declare function _overrideRedirectResult(auth: AuthInternal, result: () => Promise<UserCredentialInternal | null>): void;
|