react-query-firebase / useLinkWithCredentialMutation
Function: useLinkWithCredentialMutation()
ts
function useLinkWithCredentialMutation<TContext>(options?): UseMutationResult<UserCredential, FirebaseError, UseLinkWitCredentialMutationVariables, TContext>;Defined in: src/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, UseLinkWitCredentialMutationVariables, TContext>, "mutationKey" | "mutationFn"> = {}
Optional configurations for the mutation, omitting the mutationKey and mutationFn properties.
Returns
UseMutationResult<UserCredential, FirebaseError, UseLinkWitCredentialMutationVariables, TContext>
The result object from the useMutation hook, containing the mutation function and its current state.