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