Boolean indicating if a user is currently logged in.
Async function to handle user login.
Async function to handle user logout.
Async function to handle user registration.
Function to update the login state.
OptionalsetFunction to update the current user state.
OptionaluserThe current user object or undefined if no user is logged in.
Defines the contexts for authentication operations within the application.
This interface provides the structure for the authentication contexts, which manages user state and authentication operations such as login, logout, and registration.
AuthContextType