返回排行榜

lucia-auth/lucia

lucia-auth.com

Authentication, simple and clean

oauthtypescriptauth
Star 增长趋势
Star
10.5k
Forks
518
周增长
Issues
12
5k10k
2022年7月2023年11月2025年3月2026年7月
README

Lucia

Link: lucia-auth.com

[!IMPORTANT]
Lucia v3 will be deprecated by March 2025. Lucia is now a learning resource on implementing auth from scratch. See the announcement for details and migration path. The source code for v3 is available in the v3 branch.

Lucia is an open source project to provide resources on implementing authentication with JavaScript and TypeScript.

The main section is on implementing sessions with your database, library, and framework of choice. Using the API you just created, you can continue learning by going through the tutorials or by referencing one of the fully-fledged examples.

If you have any questions on auth, feel free to ask them in our Discord server or on GitHub Discussions!

Why not a library?

We've found it extremely hard to develop a library that:

  1. Supports the many database libraries, ORMs, frameworks, runtimes, and deployment options available in the ecosystem.
  2. Provides enough flexibility for the majority of use cases.
  3. Does not add significant complexity to projects.

We came to the conclusion that at least for the core of auth - sessions - it's better to teach the code and concepts rather than to try cramming it into a library. The code is very straightforward and shouldn't take more than 10 minutes to write it once you understand it. As an added bonus, it's fully customizable.

  • The Copenhagen Book: A free online resource covering the various auth concepts in web applications.
  • Oslo: Simple, runtime agnostic, and fully-typed packages with minimal dependency for auth and cryptography.
  • Arctic: OAuth 2.0 client library with support for 50+ providers.

Disclaimer

All example code in the site is licensed under the Zero-Clause BSD license. You're free to use, copy, modify, and distribute it without any attribution. The license is approved by the Open Source Initiative (OSI) and Google.

Everything else this repository is licensed under the MIT license.

Copyright © 2024 pilcrow and contributors

相关仓库
tailscale/tailscale

The easiest, most secure way to use WireGuard and 2FA.

GoGo ModulesBSD 3-Clause "New" or "Revised" Licensewireguardoauth
tailscale.com
34.1k2.9k
better-auth/better-auth

The most comprehensive authentication framework

TypeScriptnpmMIT Licenseauthenticationoauth
better-auth.com
29.3k2.7k
nextauthjs/next-auth

Authentication for the Web.

TypeScriptnpmISC Licensenodejsnextjs
authjs.dev
28.3k4k
jaredhanson/passport

Simple, unobtrusive authentication for Node.js.

JavaScriptnpmMIT Licensenodejsexpress
passportjs.org
23.5k1.3k
mikeroyal/Self-Hosting-Guide

Self-Hosting Guide. Learn all about locally hosting (on premises & private web servers) and managing software applications by yourself or your organization. Including Cloud, LLMs, WireGuard, Automation, Home Assistant, and Networking.

Dockerfileself-hostedselfhosted
22k1.1k
apache/casbin

Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.

GoGo ModulesApache License 2.0casbinaccess-control
casbin.apache.org
20.3k1.8k
casbin/casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Golang: https://discord.gg/S5UjpzGZjN

GoGo ModulesApache License 2.0casbinaccess-control
casbin.org
18.3k1.7k
ory/hydra

Internet-scale OpenID Certified™ OpenID Connect and OAuth2.1 provider that integrates with your user management through headless APIs. Solve OIDC/OAuth2 user cases over night. Consume as a service on Ory Network or self-host. Trusted by OpenAI and many others for scale and security. Written in Go.

GoGo ModulesApache License 2.0hydraoauth2
ory.com
17.4k1.6k
supertokens/supertokens-core

Open source alternative to Auth0 / Firebase Auth / AWS Cognito

JavaMavenOtherauthenticationsession-management
supertokens.com
15.2k730
casdoor/casdoor

An open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD

GoGo ModulesApache License 2.0oidcsso
casdoor.ai
14k1.7k
NangoHQ/nango

Build product integrations with AI.

TypeScriptnpmOtheroauth2oauth1
nango.dev
11.2k1.2k
teamhanko/hanko

Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.

GoGo ModulesOtherpasskeyswebauthn
hanko.io
9k1k