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.8k 500

  2. examples examples Public

    A collection of example projects built with Lucia

    TypeScript 234 55

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

    Email and password example with 2FA in Next.js

    TypeScript 52 7

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

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

    TypeScript 41 5

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

    Email and password example with 2FA and WebAuthn in SvelteKit

    TypeScript 30 3

  6. next next Public

    24 3

Repositories

Showing 10 of 16 repositories
  • lucia Public

    Authentication, simple and clean

    lucia-auth/lucia’s past year of commit activity
    9,792 0BSD 500 15 6 Updated Dec 9, 2024
  • example-astro-email-password-2fa Public

    Email and password example with 2FA in Astro

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

    Email and password example with 2FA and WebAuthn in SvelteKit

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

    Email and password example with 2FA in SvelteKit

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

    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 41 0BSD 5 0 4 Updated Oct 8, 2024
  • example-nextjs-email-password-2fa Public

    Email and password example with 2FA in Next.js

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

    Email and password example with 2FA and WebAuthn in Astro

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

    Google OAuth example in SvelteKit

    lucia-auth/example-sveltekit-google-oauth’s past year of commit activity
    TypeScript 13 0BSD 0 0 0 Updated Oct 7, 2024
  • example-sveltekit-github-oauth Public

    GitHub OAuth example in SvelteKit

    lucia-auth/example-sveltekit-github-oauth’s past year of commit activity
    TypeScript 14 0BSD 4 0 1 Updated Oct 7, 2024

Top languages

TypeScript

Most used topics

Loading…