This module provides custom hooks for handling authentication-related functionality
within the application. It includes a hook for signing in a user using their email
and password, and handles navigation to the invoices list screen upon successful login.
Remarks
The hooks in this module utilize the authentication context to perform login operations
and manage user authentication state. They also handle navigation actions based on the
authentication status.
Example
// Import the hook import { useSignInUser } from'hooks/auth-hooks';
// Use the hook in a component const { signInUser } = useSignInUser(); signInUser('user@example.com', 'password123');
Exports
useSignInUser: A custom hook to handle user sign-in functionality.
Description
This module provides custom hooks for handling authentication-related functionality within the application. It includes a hook for signing in a user using their email and password, and handles navigation to the invoices list screen upon successful login.
Remarks
The hooks in this module utilize the authentication context to perform login operations and manage user authentication state. They also handle navigation actions based on the authentication status.
Example
Exports