react-query-firebase / auth / useCreateUserWitEmailAndPasswordMutation
Function: useCreateUserWitEmailAndPasswordMutation()
function useCreateUserWitEmailAndPasswordMutation<TContext>(options): UseMutationResult<UserCredential, FirebaseError, UseCreateUserWitEmailAndPasswordMutationVariables, TContext>
Defined in: src/auth/useCreateUserWitEmailAndPasswordMutation.ts:19
Custom hook to initiate a user creation process using email and password with Firebase authentication. This hook utilizes the useMutation
functionality to support creating new user credentials asynchronously.
Type Parameters
• TContext = unknown
Parameters
options
Omit
<UseMutationOptions
<UserCredential
, FirebaseError
, UseCreateUserWitEmailAndPasswordMutationVariables
, TContext
>, "mutationKey"
| "mutationFn"
> = {}
Optional settings to customize the mutation behavior, excluding mutationKey
and mutationFn
.
Returns
UseMutationResult
<UserCredential
, FirebaseError
, UseCreateUserWitEmailAndPasswordMutationVariables
, TContext
>
The result of the mutation which includes status, user credentials, and error information if any.