Skip to content

Commit 6bda4e2

Browse files
committed
Make Auth Recaptcha request extend object
1 parent 1fb70f2 commit 6bda4e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ type ActionMethod<TRequest, TResponse> = (
238238
request: TRequest
239239
) => Promise<TResponse>;
240240

241-
export async function handleRecaptchaFlow<TRequest, TResponse>(
241+
export async function handleRecaptchaFlow<TRequest extends object, TResponse>(
242242
authInstance: AuthInternal,
243243
request: TRequest,
244244
actionName: RecaptchaActionName,

packages/auth/src/platform_browser/strategies/phone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ export async function updatePhoneNumber(
462462
}
463463

464464
// Helper function that fetches and injects a reCAPTCHA v2 token into the request.
465-
export async function injectRecaptchaV2Token<T>(
465+
export async function injectRecaptchaV2Token<T extends object>(
466466
auth: AuthInternal,
467467
request: T,
468468
recaptchaV2Verifier: ApplicationVerifierInternal

0 commit comments

Comments
 (0)