Skip to content

Commit ae9e347

Browse files
committed
Merge master branch into recaptcha-provider
1 parent f2d0e21 commit ae9e347

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

Lines changed: 5 additions & 1 deletion
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)