Skip to content

Commit df7847c

Browse files
committed
Merge master branch into recaptcha-provider
1 parent 6ae16b7 commit df7847c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/auth/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ export async function handleRecaptchaFlow<TRequest, TResponse>(
188188
actionName: RecaptchaActionName,
189189
actionMethod: ActionMethod<TRequest, TResponse>
190190
): Promise<TResponse> {
191-
if (authInstance._getRecaptchaConfig()?.emailPasswordEnabled) {
191+
if (
192+
authInstance
193+
._getRecaptchaConfig()
194+
?.isProviderEnabled(RecaptchaProvider.EMAIL_PASSWORD_PROVIDER)
195+
) {
192196
const requestWithRecaptcha = await injectRecaptchaFields(
193197
authInstance,
194198
request,

0 commit comments

Comments
 (0)