authentication

Installation
SKILL.md

Authentication

Use this skill when securing endpoints, adding login/session flows, or enforcing permissions.

Workflow

  1. Choose an auth mechanism (session vs JWT/bearer) based on client architecture.
  2. Configure auth middleware/backend.
  3. Protect routes with guards and scope checks.
  4. Keep unauthenticated and forbidden behaviors explicit and consistent.

Guard Pattern

from litestar import get
from litestar.connection import ASGIConnection


def require_admin(connection: ASGIConnection, _: object) -> None:
Related skills

More from alti3/litestar-skills

Installs
1
GitHub Stars
5
First Seen
Mar 2, 2026