Skip to content

react-query-firebase / web/auth / useLinkWithCredentialMutation

Function: useLinkWithCredentialMutation()

ts
function useLinkWithCredentialMutation<TContext>(options): UseMutationResult<UserCredential, FirebaseError, UseLinkWitRedirectMutationVariables, TContext>;

Defined in: web/auth/useLinkWithCredentialMutation.ts:18

Custom hook for handling linking of Firebase account to auth provider using credential This hook utilizes the useMutation mechanism to perform the sign-in operation.

Type Parameters

TContext

TContext = unknown

Parameters

options

Omit<UseMutationOptions<UserCredential, FirebaseError, UseLinkWitRedirectMutationVariables, TContext>, "mutationKey" | "mutationFn"> = {}

Optional configurations for the mutation, omitting the mutationKey and mutationFn properties.

Returns

UseMutationResult<UserCredential, FirebaseError, UseLinkWitRedirectMutationVariables, TContext>

The result object from the useMutation hook, containing the mutation function and its current state.

Released under the MIT License.