Skip to content

lucia-auth/lucia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fc016ca · Oct 20, 2024
Oct 20, 2024
Oct 20, 2024
Oct 20, 2024
Feb 5, 2024
Aug 13, 2023
Aug 1, 2023
Oct 14, 2022
Oct 20, 2024
Jan 27, 2024
Feb 17, 2024
Jul 26, 2022
Feb 17, 2024
Oct 20, 2024
Feb 6, 2024

Repository files navigation

Lucia

Lucia is an auth library written in TypeScript 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);

Lucia is an open source library released under the MIT license, with the help of 100+ contributors!

Resources

Documentation

Join the Discord server!

Examples

Changelog

Installation

npm i lucia
pnpm add lucia
yarn add lucia