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

    9.7k 502

  2. examples examples Public

    A collection of example projects built with Lucia

    TypeScript 235 56

  3. example-nextjs-email-password-2fa example-nextjs-email-password-2fa Public

    Email and password example with 2FA in Next.js

    TypeScript 46 5

  4. example-nextjs-email-password-webauthn example-nextjs-email-password-webauthn Public

    Email and password example with 2FA and WebAuthn in Next.js

    TypeScript 37 4

  5. example-sveltekit-email-password-webauthn example-sveltekit-email-password-webauthn Public

    Email and password example with 2FA and WebAuthn in SvelteKit

    TypeScript 27 3

  6. next next Public

    24 4

Repositories

Showing 10 of 16 repositories

Top languages

TypeScript

Most used topics

Loading…