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 10.4k 520

  2. examples examples Public archive

    A collection of example projects built with Lucia

    TypeScript 244 52

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

    Email and password example with 2FA in Next.js

    TypeScript 83 14

  4. example-sveltekit-email-password-2fa example-sveltekit-email-password-2fa Public archive

    Email and password example with 2FA in SvelteKit

    TypeScript 63 12

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

    Email and password example with 2FA and WebAuthn in SvelteKit

    TypeScript 62 12

  6. example-nextjs-email-password-webauthn example-nextjs-email-password-webauthn Public archive

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

    TypeScript 54 7

Repositories

Showing 10 of 16 repositories
  • lucia Public

    Authentication, simple and clean

    lucia-auth/lucia's past year of commit activity
    TypeScript 10,449 MIT 520 12 12 Updated Aug 8, 2026
  • example-astro-email-password-2fa Public archive

    Email and password example with 2FA in Astro

    lucia-auth/example-astro-email-password-2fa's past year of commit activity
    TypeScript 28 0BSD 3 0 2 Updated Dec 3, 2024
  • next Public archive
    lucia-auth/next's past year of commit activity
    26 0BSD 3 0 1 Updated Oct 18, 2024
  • example-sveltekit-email-password-webauthn Public archive

    Email and password example with 2FA and WebAuthn in SvelteKit

    lucia-auth/example-sveltekit-email-password-webauthn's past year of commit activity
    TypeScript 62 0BSD 12 2 1 Updated Oct 8, 2024
  • example-sveltekit-email-password-2fa Public archive

    Email and password example with 2FA in SvelteKit

    lucia-auth/example-sveltekit-email-password-2fa's past year of commit activity
    TypeScript 63 0BSD 12 2 1 Updated Oct 8, 2024
  • example-nextjs-email-password-webauthn Public archive

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

    lucia-auth/example-nextjs-email-password-webauthn's past year of commit activity
    TypeScript 54 0BSD 7 0 3 Updated Oct 8, 2024
  • example-nextjs-email-password-2fa Public archive

    Email and password example with 2FA in Next.js

    lucia-auth/example-nextjs-email-password-2fa's past year of commit activity
    TypeScript 83 0BSD 14 4 1 Updated Oct 8, 2024
  • example-astro-email-password-webauthn Public archive

    Email and password example with 2FA and WebAuthn in Astro

    lucia-auth/example-astro-email-password-webauthn's past year of commit activity
    TypeScript 21 0BSD 5 0 1 Updated Oct 8, 2024
  • example-sveltekit-google-oauth Public archive

    Google OAuth example in SvelteKit

    lucia-auth/example-sveltekit-google-oauth's past year of commit activity
    TypeScript 39 0BSD 8 2 3 Updated Oct 7, 2024
  • example-sveltekit-github-oauth Public archive

    GitHub OAuth example in SvelteKit

    lucia-auth/example-sveltekit-github-oauth's past year of commit activity
    TypeScript 29 0BSD 7 0 3 Updated Oct 7, 2024

Top languages

TypeScript

Most used topics

Loading…