qmetrics.net

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js screenshot

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

Overview

Auth.js bundles authentication for browser-facing applications using standard web APIs. Integrators pick providers such as GitHub, configure handlers in framework-specific entry points, and expose session data to routes and components.

The stack supports OAuth 2.0 and OIDC, many hosted identity providers, email or passwordless flows, and passkeys via WebAuthn. Sessions can persist in a database—with adapters for common SQL, document, and GraphQL stores—or run statelessly when no database is desired.

Security defaults include CSRF tokens on POST auth routes, restrictive cookie policies, encrypted JWTs when tokens are used, and session polling for short-lived logins. Advanced hooks let teams gate which accounts may sign in and customize token encoding or cookie behavior.

Packages are written in TypeScript and advertised as runtime-agnostic for Node, serverless, and container deployments. The maintainers note the project now sits under the Better Auth organization while existing Auth.js integrations remain documented for several frameworks.

Key features

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
  • Optional database session adapters
  • Stateless authentication mode
  • CSRF protection on auth routes
  • Encrypted JSON Web Tokens
  • TypeScript-first APIs

Use cases

  • Social login in Next.js apps
  • Self-hosted session storage
  • Multi-provider enterprise SSO
  • Custom-branded sign-in pages

Does the same job as

Auth.js doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare Auth.js

Similar software

Devise

Modular authentication engine for Ruby on Rails

Devise adds sign-in, registration, and related account flows to Rails apps through a Warden-backed engine. Teams enable only the authentication modules they need for each user model.

  • Rack and Warden integration
  • Pluggable authentication modules
  • Rails engine MVC stack
RubyDetails →
★ 24.3k⟳ 1 month agoMIT

Sa-Token

Java lightweight permission and session framework

Sa-Token adds login, permission checks, SSO, OAuth2, and microservice gateway auth to Java web projects with minimal boilerplate.

  • Login and permission annotations
  • Distributed session with Redis
  • Built-in SSO mode variants
JavaDetails →
★ 19.1k⟳ 16 days agoApache-2.0

jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

  • JWT sign and verify APIs
  • HMAC and asymmetric algorithms
  • Standard claim options
JavaScriptDetails →
★ 18.2k⟳ 5 months agoMIT

JustAuth

Java library for third-party OAuth login

JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.

  • Dozens of built-in OAuth providers
  • Builder and plain API styles
  • Custom OAuth platform adapters
JavaDetails →
★ 17.6k⟳ 1 year agoMIT
Identity & Access Management (IAM)No commits in 18+ months

laravel-permission

Laravel roles and permissions management package

A Laravel package that stores roles and permissions in your database and wires them to users, with helpers to assign capabilities and check access through Laravel's gate and Blade.

  • Database-backed roles and permissions
  • Assign permissions and roles to users
  • Permissions registered on Laravel gate
PHPDetails →
★ 13k⟳ 4 days agoMIT

CASL

Isomorphic TypeScript authorization for apps and APIs

CASL limits which resources a user may access using declarative rules shared across frontend, backend, and database layers.

  • Declarative ability rules
  • RBAC and ABAC support
  • Frontend and backend use
TypeScriptDetails →
★ 7.1k⟳ todayMIT