Skip to content
@lucia-auth

Lucia

Authentication, simple and clean

Lucia

Lucia is an open source auth library that abstracts away the complexity of handling sessions. It works alongside your database to provide an API that's easy to use, understand, and extend.

  • No more endless configuration and callbacks
  • Fully typed
  • Works in any runtime - Node.js, Bun, Deno, Cloudflare Workers
  • Extensive database support out of the box
import { Lucia } from "lucia";

const lucia = new Lucia(new Adapter(db));

const session = await lucia.createSession(userId, {});
await lucia.validateSession(session.id);

Logo by @dawidmachon, licensed under CC BY-NC-SA 4.0.

Related libraries

Popular repositories Loading

  1. lucia lucia Public

    Authentication, simple and clean

    TypeScript 8.2k 445

  2. examples examples Public

    A collection of example projects built with Lucia

    TypeScript 162 39

  3. .github .github Public

    1

Repositories

Showing 3 of 3 repositories
  • lucia Public

    Authentication, simple and clean

    lucia-auth/lucia’s past year of commit activity
    TypeScript 8,219 MIT 445 12 4 Updated Jun 25, 2024
  • examples Public

    A collection of example projects built with Lucia

    lucia-auth/examples’s past year of commit activity
    TypeScript 162 MIT 39 2 6 Updated Jun 22, 2024
  • .github Public
    lucia-auth/.github’s past year of commit activity
    1 0 0 0 Updated Jan 27, 2024

Top languages

TypeScript

Most used topics

Loading…