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";constlucia=newLucia(newAdapter(db));constsession=awaitlucia.createSession(userId,{});awaitlucia.validateSession(session.id);

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

Related libraries

Popular repositories Loading

  1. lucia luciaPublic

    Authentication, simple and clean

    TypeScript 10.4k 520

  2. examples examplesPublic archive

    A collection of example projects built with Lucia

    TypeScript 243 53

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

    Email and password example with 2FA in Next.js

    TypeScript 84 15

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

    Email and password example with 2FA in SvelteKit

    TypeScript 63 12

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

    Email and password example with 2FA and WebAuthn in SvelteKit

    TypeScript 62 12

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

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

    TypeScript 54 7

Repositories

Showing 10 of 16 repositories

Top languages

Loading…

Most used topics

Loading…