Back to gallery
Editor's take
Note: Lucia announced deprecation in 2024 — the maintainer is sunsetting it in favor of writing your own. Still useful as a learning reference for session-based auth patterns in TypeScript. Better Auth picks up where Lucia left off.
Use this if
You want to learn how session-based auth works from a clean codebase before building your own.
Skip if
You are picking auth for a new production app — use Better Auth or Auth.js instead.
Authentication
Topics
authoauthtypescript
Quick install
# Install via npm / pnpm / bun: pnpm add lucia # or npm install lucia
Inferred from TypeScript · always double-check against the official README below.
README — rendered from lucia-auth/lucia
Lucia was deprecated on March 2025. See code/auth_session.ts for a complete, single-file replacement for the NPM package. Announcement: https://pilcrowonpaper.com/blog/18 For a deep dive on everything auth, see the Auth Book: https://auth.pilcrowonpaper.com Website: lucia-auth.com Repository: github.com/lucia-auth/lucia Maintained by: Pilcrow (pilcrowonpaper.com) License: MIT (unless otherwise specified)
Live data via GitHub REST API · Cached 30 min · Created 18 Jul 2022