• Accesses the authentication actions context.

    Returns AuthActionsContextValue

    Authentication action functions including login and logout.

    When used outside an AuthProvider.

    export function useAuthActions(): AuthActionsContextValue {
    const context = useContext(AuthActionsContext);
    if (context === undefined) {
    throw new Error("useAuthActions must be used within an AuthProvider");
    }
    return context;
    }