react-query-firebase / useReauthenticateWitRedirectMutation
Function: useReauthenticateWitRedirectMutation()
function useReauthenticateWitRedirectMutation<TContext>(options?): UseMutationResult<void, FirebaseError, UseReauthenticateWitRedirectMutationVariables, TContext>;Defined in: src/web/auth/useReauthenticateWitRedirectMutation.ts:21
Custom hook that provides a mutation to reauthenticate a user with a given authentication provider using redirection. This hook uses the useMutation hook from the React Query library to handle async mutation logic.
Type Parameters
TContext
TContext = unknown
The type of any additional context you wish to pass to the mutation.
Parameters
options?
Omit<UseMutationOptions<void, FirebaseError, UseReauthenticateWitRedirectMutationVariables, TContext>, "mutationKey" | "mutationFn"> = {}
Optional configuration object for the mutation. It provides the ability to pass options to customize the behavior of the mutation.
Returns
UseMutationResult<void, FirebaseError, UseReauthenticateWitRedirectMutationVariables, TContext>
A mutation result object containing methods and state of the mutation.