Lager - v5.2.0
    Preparing search index...

    Module hooks/auth-hooks.ts

    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.

    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.

    // Import the hook
    import { useSignInUser } from 'hooks/auth-hooks';

    // Use the hook in a component
    const { signInUser } = useSignInUser();
    signInUser('user@example.com', 'password123');
    • useSignInUser: A custom hook to handle user sign-in functionality.

    Functions

    useSignInUser