def test_custom_auth_admin() -> type[AuthProvider]:
    """A default auth provider.

    Returns:
        A default default auth provider.
    """

    class TestAuthProvider(AuthProvider):
        """A test auth provider."""

        login_path: str = "/login"
        logout_path: str = "/logout"

        def login(self):  # pyright: ignore [reportIncompatibleMethodOverride]
            """Login."""

        def is_authenticated(self):  # pyright: ignore [reportIncompatibleMethodOverride]
            """Is authenticated."""

        def get_admin_user(self):  # pyright: ignore [reportIncompatibleMethodOverride]
            """Get admin user."""

        def logout(self):  # pyright: ignore [reportIncompatibleMethodOverride]
            """Logout."""

    return TestAuthProvider
A default auth provider.

    Returns:
        A default default auth provider.
    
tests/units/test_app.py