Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lucia

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucia

A simple and flexible authentication library

  • 0.0.0-remove-adapter-package.20240719033400
  • experimental-remove-adapter-package
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41K
increased by39.3%
Maintainers
1
Weekly downloads
 
Created
Source

Lucia

Documentation

Changelog

An open-source auth library that works alongside your database to provide an API that's easy to use, understand, and extend.

const sessionId = lucia.parseSessionCookie(cookieHeader);
if (sessionId === null) {
	throw new Error("Invalid session");
}
const { session, user } = await lucia.validateSession(sessionId);
if (session === null) {
	throw new Error("Invalid session");
}

Installation

npm install lucia

Keywords

FAQs

Package last updated on 19 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc