Skip to content

Commit

Permalink
Make Auth Recaptcha request extend object
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque committed Oct 18, 2024
1 parent 1fb70f2 commit 6bda4e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ type ActionMethod<TRequest, TResponse> = (
request: TRequest
) => Promise<TResponse>;

export async function handleRecaptchaFlow<TRequest, TResponse>(
export async function handleRecaptchaFlow<TRequest extends object, TResponse>(
authInstance: AuthInternal,
request: TRequest,
actionName: RecaptchaActionName,
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/src/platform_browser/strategies/phone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export async function updatePhoneNumber(
}

// Helper function that fetches and injects a reCAPTCHA v2 token into the request.
export async function injectRecaptchaV2Token<T>(
export async function injectRecaptchaV2Token<T extends object>(
auth: AuthInternal,
request: T,
recaptchaV2Verifier: ApplicationVerifierInternal
Expand Down

0 comments on commit 6bda4e2

Please sign in to comment.