@firebase/auth 0.19.0-2021920175447 → 0.19.0-canary.2322b6023
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 +5 -1
- package/dist/auth-public.d.ts +3 -0
- package/dist/auth.d.ts +3 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/index.rn.d.ts +3 -0
- package/dist/cordova/internal.js +5 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-afe2ef4a.js → popup_redirect-822a24b7.js} +31 -17
- package/dist/cordova/popup_redirect-822a24b7.js.map +1 -0
- package/dist/cordova/src/platform_browser/persistence/browser.d.ts +4 -3
- package/dist/cordova/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/cordova/src/platform_browser/strategies/phone.d.ts +3 -0
- package/dist/cordova/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/dist/esm2017/{index-a559a600.js → index-f7563dee.js} +20 -9
- package/dist/esm2017/index-f7563dee.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/index.rn.d.ts +3 -0
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/platform_browser/persistence/browser.d.ts +4 -3
- package/dist/esm2017/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/esm2017/src/platform_browser/strategies/phone.d.ts +3 -0
- package/dist/esm2017/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/dist/esm5/{index-67d14a54.js → index-85a0dd9d.js} +34 -17
- package/dist/esm5/index-85a0dd9d.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/index.rn.d.ts +3 -0
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/platform_browser/persistence/browser.d.ts +4 -3
- package/dist/esm5/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/esm5/src/platform_browser/strategies/phone.d.ts +3 -0
- package/dist/esm5/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/dist/index.rn.d.ts +3 -0
- package/dist/index.webworker.esm5.js +9 -8
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-f07b3fe1.js → index-31e9496a.js} +10 -9
- package/dist/node/index-31e9496a.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/index.rn.d.ts +3 -0
- package/dist/node/internal.js +22 -9
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/platform_browser/persistence/browser.d.ts +4 -3
- package/dist/node/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/node/src/platform_browser/strategies/phone.d.ts +3 -0
- package/dist/node/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/dist/node-esm/index-a6d276f5.js +6031 -0
- package/dist/node-esm/index-a6d276f5.js.map +1 -0
- package/dist/node-esm/index.cordova.d.ts +32 -0
- package/dist/node-esm/index.d.ts +36 -0
- package/dist/node-esm/index.doc.d.ts +24 -0
- package/dist/node-esm/index.js +8 -0
- package/dist/node-esm/index.js.map +1 -0
- package/dist/node-esm/index.node.d.ts +17 -0
- package/dist/node-esm/index.rn.d.ts +30 -0
- package/dist/node-esm/index.shared.d.ts +19 -0
- package/dist/node-esm/index.webworker.d.ts +21 -0
- package/dist/node-esm/internal/index.d.ts +41 -0
- package/dist/node-esm/internal.js +1455 -0
- package/dist/node-esm/internal.js.map +1 -0
- package/dist/node-esm/package.json +1 -0
- package/dist/node-esm/scripts/run_node_tests.d.ts +17 -0
- package/dist/node-esm/src/api/account_management/account.d.ts +59 -0
- package/dist/node-esm/src/api/account_management/account.test.d.ts +17 -0
- package/dist/node-esm/src/api/account_management/email_and_password.d.ts +47 -0
- package/dist/node-esm/src/api/account_management/email_and_password.test.d.ts +17 -0
- package/dist/node-esm/src/api/account_management/mfa.d.ts +69 -0
- package/dist/node-esm/src/api/account_management/mfa.test.d.ts +17 -0
- package/dist/node-esm/src/api/account_management/profile.d.ts +29 -0
- package/dist/node-esm/src/api/account_management/profile.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/create_auth_uri.d.ts +26 -0
- package/dist/node-esm/src/api/authentication/create_auth_uri.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/custom_token.d.ts +26 -0
- package/dist/node-esm/src/api/authentication/custom_token.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/email_and_password.d.ts +76 -0
- package/dist/node-esm/src/api/authentication/email_and_password.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/email_link.d.ts +32 -0
- package/dist/node-esm/src/api/authentication/email_link.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/idp.d.ts +40 -0
- package/dist/node-esm/src/api/authentication/idp.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/mfa.d.ts +58 -0
- package/dist/node-esm/src/api/authentication/mfa.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/recaptcha.d.ts +18 -0
- package/dist/node-esm/src/api/authentication/recaptcha.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/sign_up.d.ts +29 -0
- package/dist/node-esm/src/api/authentication/sign_up.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/sms.d.ts +50 -0
- package/dist/node-esm/src/api/authentication/sms.test.d.ts +17 -0
- package/dist/node-esm/src/api/authentication/token.d.ts +26 -0
- package/dist/node-esm/src/api/authentication/token.test.d.ts +17 -0
- package/dist/node-esm/src/api/errors.d.ts +118 -0
- package/dist/node-esm/src/api/index.d.ts +67 -0
- package/dist/node-esm/src/api/index.test.d.ts +17 -0
- package/dist/node-esm/src/api/project_config/get_project_config.d.ts +25 -0
- package/dist/node-esm/src/api/project_config/get_project_config.test.d.ts +17 -0
- package/dist/node-esm/src/core/action_code_url.d.ts +73 -0
- package/dist/node-esm/src/core/action_code_url.test.d.ts +17 -0
- package/dist/node-esm/src/core/auth/auth_event_manager.d.ts +34 -0
- package/dist/node-esm/src/core/auth/auth_event_manager.test.d.ts +17 -0
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +106 -0
- package/dist/node-esm/src/core/auth/auth_impl.test.d.ts +17 -0
- package/dist/node-esm/src/core/auth/emulator.d.ts +42 -0
- package/dist/node-esm/src/core/auth/emulator.test.d.ts +17 -0
- package/dist/node-esm/src/core/auth/firebase_internal.d.ts +35 -0
- package/dist/node-esm/src/core/auth/firebase_internal.test.d.ts +17 -0
- package/dist/node-esm/src/core/auth/initialize.d.ts +46 -0
- package/dist/node-esm/src/core/auth/initialize.test.d.ts +17 -0
- package/dist/node-esm/src/core/auth/register.d.ts +23 -0
- package/dist/node-esm/src/core/credentials/auth_credential.d.ts +75 -0
- package/dist/node-esm/src/core/credentials/email.d.ts +60 -0
- package/dist/node-esm/src/core/credentials/email.test.d.ts +17 -0
- package/dist/node-esm/src/core/credentials/index.d.ts +23 -0
- package/dist/node-esm/src/core/credentials/oauth.d.ts +81 -0
- package/dist/node-esm/src/core/credentials/oauth.test.d.ts +17 -0
- package/dist/node-esm/src/core/credentials/phone.d.ts +52 -0
- package/dist/node-esm/src/core/credentials/phone.test.d.ts +17 -0
- package/dist/node-esm/src/core/credentials/saml.d.ts +52 -0
- package/dist/node-esm/src/core/credentials/saml.test.d.ts +17 -0
- package/dist/node-esm/src/core/errors.d.ts +299 -0
- package/dist/node-esm/src/core/errors.test.d.ts +17 -0
- package/dist/node-esm/src/core/index.d.ts +141 -0
- package/dist/node-esm/src/core/persistence/in_memory.d.ts +35 -0
- package/dist/node-esm/src/core/persistence/in_memory.test.d.ts +17 -0
- package/dist/node-esm/src/core/persistence/index.d.ts +41 -0
- package/dist/node-esm/src/core/persistence/persistence_user_manager.d.ts +45 -0
- package/dist/node-esm/src/core/persistence/persistence_user_manager.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/email.d.ts +83 -0
- package/dist/node-esm/src/core/providers/email.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/facebook.d.ts +93 -0
- package/dist/node-esm/src/core/providers/facebook.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/federated.d.ts +64 -0
- package/dist/node-esm/src/core/providers/federated.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/github.d.ts +89 -0
- package/dist/node-esm/src/core/providers/github.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/google.d.ts +96 -0
- package/dist/node-esm/src/core/providers/google.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/oauth.d.ts +151 -0
- package/dist/node-esm/src/core/providers/oauth.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/saml.d.ts +62 -0
- package/dist/node-esm/src/core/providers/saml.test.d.ts +17 -0
- package/dist/node-esm/src/core/providers/twitter.d.ts +103 -0
- package/dist/node-esm/src/core/providers/twitter.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/abstract_popup_redirect_operation.d.ts +44 -0
- package/dist/node-esm/src/core/strategies/abstract_popup_redirect_operation.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/action_code_settings.d.ts +19 -0
- package/dist/node-esm/src/core/strategies/action_code_settings.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/anonymous.d.ts +29 -0
- package/dist/node-esm/src/core/strategies/anonymous.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/credential.d.ts +57 -0
- package/dist/node-esm/src/core/strategies/credential.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/custom_token.d.ts +34 -0
- package/dist/node-esm/src/core/strategies/custom_token.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/email.d.ts +98 -0
- package/dist/node-esm/src/core/strategies/email.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/email_and_password.d.ts +126 -0
- package/dist/node-esm/src/core/strategies/email_and_password.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/email_link.d.ts +103 -0
- package/dist/node-esm/src/core/strategies/email_link.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/idp.d.ts +32 -0
- package/dist/node-esm/src/core/strategies/idp.test.d.ts +17 -0
- package/dist/node-esm/src/core/strategies/redirect.d.ts +35 -0
- package/dist/node-esm/src/core/strategies/redirect.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/account_info.d.ts +60 -0
- package/dist/node-esm/src/core/user/account_info.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/additional_user_info.d.ts +31 -0
- package/dist/node-esm/src/core/user/additional_user_info.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/id_token_result.d.ts +48 -0
- package/dist/node-esm/src/core/user/id_token_result.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/invalidation.d.ts +18 -0
- package/dist/node-esm/src/core/user/invalidation.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/link_unlink.d.ts +30 -0
- package/dist/node-esm/src/core/user/link_unlink.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/proactive_refresh.d.ts +34 -0
- package/dist/node-esm/src/core/user/proactive_refresh.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/reauthenticate.d.ts +20 -0
- package/dist/node-esm/src/core/user/reauthenticate.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/reload.d.ts +27 -0
- package/dist/node-esm/src/core/user/reload.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/token_manager.d.ts +49 -0
- package/dist/node-esm/src/core/user/token_manager.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/user_credential_impl.d.ts +37 -0
- package/dist/node-esm/src/core/user/user_credential_impl.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/user_impl.d.ts +68 -0
- package/dist/node-esm/src/core/user/user_impl.test.d.ts +17 -0
- package/dist/node-esm/src/core/user/user_metadata.d.ts +27 -0
- package/dist/node-esm/src/core/util/assert.d.ts +93 -0
- package/dist/node-esm/src/core/util/assert.test.d.ts +17 -0
- package/dist/node-esm/src/core/util/browser.d.ts +50 -0
- package/dist/node-esm/src/core/util/browser.test.d.ts +17 -0
- package/dist/node-esm/src/core/util/delay.d.ts +31 -0
- package/dist/node-esm/src/core/util/delay.test.d.ts +17 -0
- package/dist/node-esm/src/core/util/emulator.d.ts +18 -0
- package/dist/node-esm/src/core/util/emulator.test.d.ts +17 -0
- package/dist/node-esm/src/core/util/event_id.d.ts +17 -0
- package/dist/node-esm/src/core/util/event_id.test.d.ts +17 -0
- package/dist/node-esm/src/core/util/fetch_provider.d.ts +25 -0
- package/dist/node-esm/src/core/util/handler.d.ts +20 -0
- package/dist/node-esm/src/core/util/instantiator.d.ts +28 -0
- package/dist/node-esm/src/core/util/instantiator.test.d.ts +17 -0
- package/dist/node-esm/src/core/util/location.d.ts +19 -0
- package/dist/node-esm/src/core/util/log.d.ts +22 -0
- package/dist/node-esm/src/core/util/navigator.d.ts +21 -0
- package/dist/node-esm/src/core/util/providers.d.ts +23 -0
- package/dist/node-esm/src/core/util/resolver.d.ts +25 -0
- package/dist/node-esm/src/core/util/time.d.ts +17 -0
- package/dist/node-esm/src/core/util/validate_origin.d.ts +18 -0
- package/dist/node-esm/src/core/util/validate_origin.test.d.ts +17 -0
- package/dist/node-esm/src/core/util/version.d.ts +30 -0
- package/dist/node-esm/src/core/util/version.test.d.ts +17 -0
- package/dist/node-esm/src/index.d.ts +18 -0
- package/dist/node-esm/src/mfa/index.d.ts +18 -0
- package/dist/node-esm/src/mfa/mfa_assertion.d.ts +27 -0
- package/dist/node-esm/src/mfa/mfa_error.d.ts +35 -0
- package/dist/node-esm/src/mfa/mfa_info.d.ts +32 -0
- package/dist/node-esm/src/mfa/mfa_info.test.d.ts +17 -0
- package/dist/node-esm/src/mfa/mfa_resolver.d.ts +41 -0
- package/dist/node-esm/src/mfa/mfa_resolver.test.d.ts +17 -0
- package/dist/node-esm/src/mfa/mfa_session.d.ts +37 -0
- package/dist/node-esm/src/mfa/mfa_session.test.d.ts +17 -0
- package/dist/node-esm/src/mfa/mfa_user.d.ts +38 -0
- package/dist/node-esm/src/mfa/mfa_user.test.d.ts +17 -0
- package/dist/node-esm/src/model/application_verifier.d.ts +23 -0
- package/dist/node-esm/src/model/auth.d.ts +75 -0
- package/dist/node-esm/src/model/enum_maps.d.ts +97 -0
- package/dist/node-esm/src/model/enums.d.ts +74 -0
- package/dist/node-esm/src/model/id_token.d.ts +84 -0
- package/dist/node-esm/src/model/popup_redirect.d.ts +92 -0
- package/dist/node-esm/src/model/public_types.d.ts +1139 -0
- package/dist/node-esm/src/model/user.d.ts +79 -0
- package/dist/node-esm/src/platform_browser/auth.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/auth_window.d.ts +37 -0
- package/dist/node-esm/src/platform_browser/iframe/gapi.d.ts +19 -0
- package/dist/node-esm/src/platform_browser/iframe/gapi.iframes.d.ts +47 -0
- package/dist/node-esm/src/platform_browser/iframe/gapi.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/iframe/iframe.d.ts +18 -0
- package/dist/node-esm/src/platform_browser/iframe/iframe.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/index.d.ts +27 -0
- package/dist/node-esm/src/platform_browser/load_js.d.ts +18 -0
- package/dist/node-esm/src/platform_browser/load_js.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/messagechannel/index.d.ts +87 -0
- package/dist/node-esm/src/platform_browser/messagechannel/promise.d.ts +33 -0
- package/dist/node-esm/src/platform_browser/messagechannel/promise.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +63 -0
- package/dist/node-esm/src/platform_browser/messagechannel/receiver.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/messagechannel/sender.d.ts +46 -0
- package/dist/node-esm/src/platform_browser/messagechannel/sender.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/mfa/assertions/phone.d.ts +56 -0
- package/dist/node-esm/src/platform_browser/mfa/assertions/phone.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/persistence/browser.d.ts +27 -0
- package/dist/node-esm/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/persistence/indexed_db.d.ts +33 -0
- package/dist/node-esm/src/platform_browser/persistence/indexed_db.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/persistence/local_storage.d.ts +25 -0
- package/dist/node-esm/src/platform_browser/persistence/local_storage.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/persistence/session_storage.d.ts +24 -0
- package/dist/node-esm/src/platform_browser/persistence/session_storage.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/popup_redirect.d.ts +24 -0
- package/dist/node-esm/src/platform_browser/popup_redirect.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/providers/phone.d.ts +149 -0
- package/dist/node-esm/src/platform_browser/providers/phone.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha.d.ts +23 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_loader.d.ts +44 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_loader.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_mock.d.ts +51 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_mock.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_verifier.d.ts +94 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_verifier.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/strategies/phone.d.ts +98 -0
- package/dist/node-esm/src/platform_browser/strategies/phone.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/strategies/popup.d.ts +103 -0
- package/dist/node-esm/src/platform_browser/strategies/popup.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/strategies/redirect.d.ts +156 -0
- package/dist/node-esm/src/platform_browser/strategies/redirect.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/util/popup.d.ts +24 -0
- package/dist/node-esm/src/platform_browser/util/popup.test.d.ts +17 -0
- package/dist/node-esm/src/platform_browser/util/worker.d.ts +20 -0
- package/dist/node-esm/src/platform_cordova/plugins.d.ts +42 -0
- package/dist/node-esm/src/platform_cordova/popup_redirect/events.d.ts +39 -0
- package/dist/node-esm/src/platform_cordova/popup_redirect/events.test.d.ts +17 -0
- package/dist/node-esm/src/platform_cordova/popup_redirect/popup_redirect.d.ts +24 -0
- package/dist/node-esm/src/platform_cordova/popup_redirect/popup_redirect.test.d.ts +17 -0
- package/dist/node-esm/src/platform_cordova/popup_redirect/utils.d.ts +47 -0
- package/dist/node-esm/src/platform_cordova/popup_redirect/utils.test.d.ts +17 -0
- package/dist/node-esm/src/platform_cordova/strategies/redirect.d.ts +20 -0
- package/dist/node-esm/src/platform_node/index.d.ts +49 -0
- package/dist/node-esm/src/platform_react_native/persistence/react_native.d.ts +31 -0
- package/dist/node-esm/src/platform_react_native/persistence/react_native.test.d.ts +17 -0
- package/dist/node-esm/test/helpers/api/helper.d.ts +20 -0
- package/dist/node-esm/test/helpers/delay.d.ts +20 -0
- package/dist/node-esm/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/dist/node-esm/test/helpers/fake_service_worker.d.ts +22 -0
- package/dist/node-esm/test/helpers/id_token_response.d.ts +18 -0
- package/dist/node-esm/test/helpers/iframe_event.d.ts +19 -0
- package/dist/node-esm/test/helpers/integration/emulator_rest_helpers.d.ts +35 -0
- package/dist/node-esm/test/helpers/integration/helpers.d.ts +20 -0
- package/dist/node-esm/test/helpers/integration/settings.d.ts +23 -0
- package/dist/node-esm/test/helpers/jwt.d.ts +17 -0
- package/dist/node-esm/test/helpers/mock_auth.d.ts +37 -0
- package/dist/node-esm/test/helpers/mock_auth_credential.d.ts +31 -0
- package/dist/node-esm/test/helpers/mock_fetch.d.ts +30 -0
- package/dist/node-esm/test/helpers/mock_fetch.test.d.ts +17 -0
- package/dist/node-esm/test/helpers/mock_popup_redirect_resolver.d.ts +24 -0
- package/dist/node-esm/test/helpers/redirect_persistence.d.ts +24 -0
- package/dist/node-esm/test/helpers/timeout_stub.d.ts +34 -0
- package/dist/node-esm/test/integration/flows/anonymous.test.d.ts +17 -0
- package/dist/node-esm/test/integration/flows/custom.local.test.d.ts +17 -0
- package/dist/node-esm/test/integration/flows/email.test.d.ts +17 -0
- package/dist/node-esm/test/integration/flows/idp.local.test.d.ts +17 -0
- package/dist/node-esm/test/integration/flows/oob.local.test.d.ts +17 -0
- package/dist/node-esm/test/integration/flows/phone.test.d.ts +17 -0
- package/dist/node-esm/test/integration/webdriver/anonymous.test.d.ts +17 -0
- package/dist/node-esm/test/integration/webdriver/compat/firebaseui.test.d.ts +17 -0
- package/dist/node-esm/test/integration/webdriver/persistence.test.d.ts +17 -0
- package/dist/node-esm/test/integration/webdriver/popup.test.d.ts +17 -0
- package/dist/node-esm/test/integration/webdriver/redirect.test.d.ts +17 -0
- package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +46 -0
- package/dist/node-esm/test/integration/webdriver/util/functions.d.ts +77 -0
- package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +31 -0
- package/dist/node-esm/test/integration/webdriver/util/js_load_condition.d.ts +25 -0
- package/dist/node-esm/test/integration/webdriver/util/test_runner.d.ts +19 -0
- package/dist/node-esm/test/integration/webdriver/util/test_server.d.ts +27 -0
- package/dist/node-esm/test/integration/webdriver/util/ui_page.d.ts +33 -0
- package/dist/rn/index.js +70 -64
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/index.rn.d.ts +3 -0
- package/dist/rn/internal.js +331 -1465
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{enum_maps-f94b9714.js → phone-259c608c.js} +1179 -19
- package/dist/rn/phone-259c608c.js.map +1 -0
- package/dist/rn/src/platform_browser/persistence/browser.d.ts +4 -3
- package/dist/rn/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/rn/src/platform_browser/strategies/phone.d.ts +3 -0
- package/dist/rn/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/dist/src/platform_browser/persistence/browser.d.ts +4 -3
- package/dist/src/platform_browser/persistence/browser.test.d.ts +17 -0
- package/dist/src/platform_browser/strategies/phone.d.ts +3 -0
- package/dist/test/helpers/erroring_unavailable_persistence.d.ts +36 -0
- package/package.json +31 -9
- package/dist/cordova/popup_redirect-afe2ef4a.js.map +0 -1
- package/dist/esm2017/index-a559a600.js.map +0 -1
- package/dist/esm5/index-67d14a54.js.map +0 -1
- package/dist/node/index-f07b3fe1.js.map +0 -1
- package/dist/rn/enum_maps-f94b9714.js.map +0 -1
package/dist/esm2017/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-f7563dee.js';
|
|
2
2
|
import '@firebase/util';
|
|
3
3
|
import '@firebase/app';
|
|
4
4
|
import 'tslib';
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
import { FirebaseApp } from '@firebase/app';
|
|
18
18
|
import { Auth, Persistence } from './src/model/public_types';
|
|
19
19
|
export * from './index.shared';
|
|
20
|
+
export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
|
|
21
|
+
export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
|
|
22
|
+
export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions/phone';
|
|
20
23
|
/**
|
|
21
24
|
* An implementation of {@link Persistence} of type 'LOCAL' for use in React
|
|
22
25
|
* Native environments.
|
package/dist/esm2017/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-f7563dee.js';
|
|
2
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-f7563dee.js';
|
|
3
3
|
import { querystringDecode } from '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
|
5
5
|
import 'tslib';
|
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { PersistenceValue, PersistenceType } from '../../core/persistence';
|
|
18
18
|
export declare abstract class BrowserPersistenceClass {
|
|
19
|
-
protected readonly
|
|
19
|
+
protected readonly storageRetriever: () => Storage;
|
|
20
20
|
readonly type: PersistenceType;
|
|
21
|
-
protected constructor(
|
|
22
|
-
_isAvailable(
|
|
21
|
+
protected constructor(storageRetriever: () => Storage, type: PersistenceType);
|
|
22
|
+
_isAvailable(): Promise<boolean>;
|
|
23
23
|
_set(key: string, value: PersistenceValue): Promise<void>;
|
|
24
24
|
_get<T extends PersistenceValue>(key: string): Promise<T | null>;
|
|
25
25
|
_remove(key: string): Promise<void>;
|
|
26
|
+
protected get storage(): Storage;
|
|
26
27
|
}
|
|
@@ -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 {};
|
|
@@ -29,6 +29,9 @@ import { AuthInternal } from '../../model/auth';
|
|
|
29
29
|
*
|
|
30
30
|
* For abuse prevention, this method also requires a {@link ApplicationVerifier}.
|
|
31
31
|
* This SDK includes a reCAPTCHA-based implementation, {@link RecaptchaVerifier}.
|
|
32
|
+
* This function can work on other platforms that do not support the
|
|
33
|
+
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
34
|
+
* third-party {@link ApplicationVerifier} implementation.
|
|
32
35
|
*
|
|
33
36
|
* @example
|
|
34
37
|
* ```javascript
|
|
@@ -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 { PersistenceInternal, PersistenceType, PersistenceValue } from '../../src/core/persistence';
|
|
18
|
+
/**
|
|
19
|
+
* Helper class for mocking completely broken persistence that errors when
|
|
20
|
+
* accessed.
|
|
21
|
+
*
|
|
22
|
+
* When disabling cookies in Chrome entirely, for example, simply reading the
|
|
23
|
+
* "localStorage" field in "window" will throw an error, but this can't be
|
|
24
|
+
* checked for by calling `'localStorage' in window`. This class simulates a
|
|
25
|
+
* situation where _isAvailable works correctly but all other methods fail.
|
|
26
|
+
*/
|
|
27
|
+
export declare class ErroringUnavailablePersistence implements PersistenceInternal {
|
|
28
|
+
type: PersistenceType;
|
|
29
|
+
_isAvailable(): Promise<boolean>;
|
|
30
|
+
_set(): Promise<void>;
|
|
31
|
+
_get<T extends PersistenceValue>(): Promise<T | null>;
|
|
32
|
+
_remove(): Promise<void>;
|
|
33
|
+
_addListener(): void;
|
|
34
|
+
_removeListener(): void;
|
|
35
|
+
_shouldAllowMigration: boolean;
|
|
36
|
+
}
|
|
@@ -2505,9 +2505,9 @@ var AuthImpl = /** @class */ (function () {
|
|
|
2505
2505
|
// promise resolution)
|
|
2506
2506
|
this._initializationPromise = this.queue(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2507
2507
|
var _a;
|
|
2508
|
-
var _b;
|
|
2509
|
-
return __generator(this, function (
|
|
2510
|
-
switch (
|
|
2508
|
+
var _b, _c;
|
|
2509
|
+
return __generator(this, function (_d) {
|
|
2510
|
+
switch (_d.label) {
|
|
2511
2511
|
case 0:
|
|
2512
2512
|
if (this._deleted) {
|
|
2513
2513
|
return [2 /*return*/];
|
|
@@ -2515,18 +2515,19 @@ var AuthImpl = /** @class */ (function () {
|
|
|
2515
2515
|
_a = this;
|
|
2516
2516
|
return [4 /*yield*/, PersistenceUserManager.create(this, persistenceHierarchy)];
|
|
2517
2517
|
case 1:
|
|
2518
|
-
_a.persistenceManager =
|
|
2518
|
+
_a.persistenceManager = _d.sent();
|
|
2519
2519
|
if (this._deleted) {
|
|
2520
2520
|
return [2 /*return*/];
|
|
2521
2521
|
}
|
|
2522
2522
|
if (!((_b = this._popupRedirectResolver) === null || _b === void 0 ? void 0 : _b._shouldInitProactively)) return [3 /*break*/, 3];
|
|
2523
2523
|
return [4 /*yield*/, this._popupRedirectResolver._initialize(this)];
|
|
2524
2524
|
case 2:
|
|
2525
|
-
|
|
2526
|
-
|
|
2525
|
+
_d.sent();
|
|
2526
|
+
_d.label = 3;
|
|
2527
2527
|
case 3: return [4 /*yield*/, this.initializeCurrentUser(popupRedirectResolver)];
|
|
2528
2528
|
case 4:
|
|
2529
|
-
|
|
2529
|
+
_d.sent();
|
|
2530
|
+
this.lastNotifiedUid = ((_c = this.currentUser) === null || _c === void 0 ? void 0 : _c.uid) || null;
|
|
2530
2531
|
if (this._deleted) {
|
|
2531
2532
|
return [2 /*return*/];
|
|
2532
2533
|
}
|
|
@@ -6871,8 +6872,8 @@ var STORAGE_AVAILABLE_KEY = '__sak';
|
|
|
6871
6872
|
// Both have the same implementation but use a different underlying storage
|
|
6872
6873
|
// object.
|
|
6873
6874
|
var BrowserPersistenceClass = /** @class */ (function () {
|
|
6874
|
-
function BrowserPersistenceClass(
|
|
6875
|
-
this.
|
|
6875
|
+
function BrowserPersistenceClass(storageRetriever, type) {
|
|
6876
|
+
this.storageRetriever = storageRetriever;
|
|
6876
6877
|
this.type = type;
|
|
6877
6878
|
}
|
|
6878
6879
|
BrowserPersistenceClass.prototype._isAvailable = function () {
|
|
@@ -6900,6 +6901,13 @@ var BrowserPersistenceClass = /** @class */ (function () {
|
|
|
6900
6901
|
this.storage.removeItem(key);
|
|
6901
6902
|
return Promise.resolve();
|
|
6902
6903
|
};
|
|
6904
|
+
Object.defineProperty(BrowserPersistenceClass.prototype, "storage", {
|
|
6905
|
+
get: function () {
|
|
6906
|
+
return this.storageRetriever();
|
|
6907
|
+
},
|
|
6908
|
+
enumerable: false,
|
|
6909
|
+
configurable: true
|
|
6910
|
+
});
|
|
6903
6911
|
return BrowserPersistenceClass;
|
|
6904
6912
|
}());
|
|
6905
6913
|
|
|
@@ -6930,7 +6938,7 @@ var IE10_LOCAL_STORAGE_SYNC_DELAY = 10;
|
|
|
6930
6938
|
var BrowserLocalPersistence = /** @class */ (function (_super) {
|
|
6931
6939
|
__extends(BrowserLocalPersistence, _super);
|
|
6932
6940
|
function BrowserLocalPersistence() {
|
|
6933
|
-
var _this = _super.call(this, window.localStorage, "LOCAL" /* LOCAL */) || this;
|
|
6941
|
+
var _this = _super.call(this, function () { return window.localStorage; }, "LOCAL" /* LOCAL */) || this;
|
|
6934
6942
|
_this.boundEventHandler = function (event, poll) { return _this.onStorageEvent(event, poll); };
|
|
6935
6943
|
_this.listeners = {};
|
|
6936
6944
|
_this.localCache = {};
|
|
@@ -7166,7 +7174,7 @@ var browserLocalPersistence = BrowserLocalPersistence;
|
|
|
7166
7174
|
var BrowserSessionPersistence = /** @class */ (function (_super) {
|
|
7167
7175
|
__extends(BrowserSessionPersistence, _super);
|
|
7168
7176
|
function BrowserSessionPersistence() {
|
|
7169
|
-
return _super.call(this, window.sessionStorage, "SESSION" /* SESSION */) || this;
|
|
7177
|
+
return _super.call(this, function () { return window.sessionStorage; }, "SESSION" /* SESSION */) || this;
|
|
7170
7178
|
}
|
|
7171
7179
|
BrowserSessionPersistence.prototype._addListener = function (_key, _listener) {
|
|
7172
7180
|
// Listeners are not supported for session storage since it cannot be shared across windows
|
|
@@ -8730,6 +8738,9 @@ var ConfirmationResultImpl = /** @class */ (function () {
|
|
|
8730
8738
|
*
|
|
8731
8739
|
* For abuse prevention, this method also requires a {@link ApplicationVerifier}.
|
|
8732
8740
|
* This SDK includes a reCAPTCHA-based implementation, {@link RecaptchaVerifier}.
|
|
8741
|
+
* This function can work on other platforms that do not support the
|
|
8742
|
+
* {@link RecaptchaVerifier} (like React Native), but you need to use a
|
|
8743
|
+
* third-party {@link ApplicationVerifier} implementation.
|
|
8733
8744
|
*
|
|
8734
8745
|
* @example
|
|
8735
8746
|
* ```javascript
|
|
@@ -9692,16 +9703,22 @@ var RedirectAction = /** @class */ (function (_super) {
|
|
|
9692
9703
|
}(AbstractPopupRedirectOperation));
|
|
9693
9704
|
function _getAndClearPendingRedirectStatus(resolver, auth) {
|
|
9694
9705
|
return __awaiter(this, void 0, void 0, function () {
|
|
9695
|
-
var key, hasPendingRedirect;
|
|
9706
|
+
var key, persistence, hasPendingRedirect;
|
|
9696
9707
|
return __generator(this, function (_a) {
|
|
9697
9708
|
switch (_a.label) {
|
|
9698
9709
|
case 0:
|
|
9699
9710
|
key = pendingRedirectKey(auth);
|
|
9700
|
-
|
|
9711
|
+
persistence = resolverPersistence(resolver);
|
|
9712
|
+
return [4 /*yield*/, persistence._isAvailable()];
|
|
9701
9713
|
case 1:
|
|
9702
|
-
|
|
9703
|
-
|
|
9714
|
+
if (!(_a.sent())) {
|
|
9715
|
+
return [2 /*return*/, false];
|
|
9716
|
+
}
|
|
9717
|
+
return [4 /*yield*/, persistence._get(key)];
|
|
9704
9718
|
case 2:
|
|
9719
|
+
hasPendingRedirect = (_a.sent()) === 'true';
|
|
9720
|
+
return [4 /*yield*/, persistence._remove(key)];
|
|
9721
|
+
case 3:
|
|
9705
9722
|
_a.sent();
|
|
9706
9723
|
return [2 /*return*/, hasPendingRedirect];
|
|
9707
9724
|
}
|
|
@@ -10815,7 +10832,7 @@ var PhoneMultiFactorGenerator = /** @class */ (function () {
|
|
|
10815
10832
|
}());
|
|
10816
10833
|
|
|
10817
10834
|
var name = "@firebase/auth";
|
|
10818
|
-
var version = "0.19.0-
|
|
10835
|
+
var version = "0.19.0-canary.2322b6023";
|
|
10819
10836
|
|
|
10820
10837
|
/**
|
|
10821
10838
|
* @license
|
|
@@ -11020,4 +11037,4 @@ function getAuth(app) {
|
|
|
11020
11037
|
registerAuth("Browser" /* BROWSER */);
|
|
11021
11038
|
|
|
11022
11039
|
export { sendPasswordResetEmail as $, ActionCodeOperation as A, prodErrorMap as B, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as C, initializeAuth as D, connectAuthEmulator as E, FactorId as F, AuthCredential as G, EmailAuthCredential as H, OAuthCredential as I, PhoneAuthCredential as J, inMemoryPersistence as K, EmailAuthProvider as L, FacebookAuthProvider as M, GoogleAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GithubAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, OAuthProvider as T, SAMLAuthProvider as U, TwitterAuthProvider as V, signInAnonymously as W, signInWithCredential as X, linkWithCredential as Y, reauthenticateWithCredential as Z, signInWithCustomToken as _, browserSessionPersistence as a, confirmPasswordReset as a0, applyActionCode as a1, checkActionCode as a2, verifyPasswordResetCode as a3, createUserWithEmailAndPassword as a4, signInWithEmailAndPassword as a5, sendSignInLinkToEmail as a6, isSignInWithEmailLink as a7, signInWithEmailLink as a8, fetchSignInMethodsForEmail as a9, _clearRedirectOutcomes as aA, _getRedirectResult as aB, _castAuth as aC, UserImpl as aD, AuthImpl as aE, _getClientVersion as aF, _generateEventId as aG, AuthPopup as aH, FetchProvider as aI, SAMLAuthCredential as aJ, sendEmailVerification as aa, verifyBeforeUpdateEmail as ab, ActionCodeURL as ac, parseActionCodeURL as ad, updateProfile as ae, updateEmail as af, updatePassword as ag, getIdToken as ah, getIdTokenResult as ai, unlink as aj, getAdditionalUserInfo as ak, reload as al, getMultiFactorResolver as am, multiFactor as an, _isAndroid as ao, _isIOS7Or8 as ap, _isIOS as aq, _fail as ar, _getRedirectUrl as as, debugAssert as at, _getProjectConfig as au, _createError as av, _assert as aw, AuthEventManager as ax, _getInstance as ay, _persistenceKeyName as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, getAuth as n, ProviderId as o, setPersistence as p, onIdTokenChanged as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, onAuthStateChanged as t, updatePhoneNumber as u, useDeviceLanguage as v, updateCurrentUser as w, signOut as x, deleteUser as y, debugErrorMap as z };
|
|
11023
|
-
//# sourceMappingURL=index-
|
|
11040
|
+
//# sourceMappingURL=index-85a0dd9d.js.map
|