You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-devsite/auth.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Firebase Authentication
31
31
|[fetchSignInMethodsForEmail(auth, email)](./auth.md#fetchsigninmethodsforemail)| Gets the list of possible sign in methods for the given email address. |
32
32
|[getMultiFactorResolver(auth, error)](./auth.md#getmultifactorresolver)| Provides a [MultiFactorResolver](./auth.multifactorresolver.md#multifactorresolver_interface) suitable for completion of a multi-factor flow. |
33
33
|[getRedirectResult(auth, resolver)](./auth.md#getredirectresult)| Returns a [UserCredential](./auth.usercredential.md#usercredential_interface) from the redirect-based sign-in flow. |
34
+
|[initializeRecaptchaConfig(auth)](./auth.md#initializerecaptchaconfig)| Loads the reCAPTCHA configuration into the <code>Auth</code> instance. |
34
35
|[isSignInWithEmailLink(auth, emailLink)](./auth.md#issigninwithemaillink)| Checks if an incoming link is a sign-in with email link suitable for [signInWithEmailLink()](./auth.md#signinwithemaillink)<!---->. |
35
36
|[onAuthStateChanged(auth, nextOrObserver, error, completed)](./auth.md#onauthstatechanged)| Adds an observer for changes to the user's sign-in state. |
36
37
|[onIdTokenChanged(auth, nextOrObserver, error, completed)](./auth.md#onidtokenchanged)| Adds an observer for changes to the signed-in user's ID token. |
Loads the reCAPTCHA configuration into the `Auth` instance.
493
+
494
+
This will load the reCAPTCHA config, which indicates whether the reCAPTCHA verification flow should be triggered for each auth provider, into the current Auth session.
495
+
496
+
If initializeRecaptchaConfig() is not invoked, the auth flow will always start without reCAPTCHA verification. If the provider is configured to require reCAPTCHA verification, the SDK will transparently load the reCAPTCHA config and restart the auth flows.
497
+
498
+
Thus, by calling this optional method, you will reduce the latency of future auth flows. Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.
0 commit comments