qmetrics.net

NextAuth

Web authentication libraries for JavaScript frameworks

NextAuth 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

Tags

Similar software

Keycloak

Identity and access management for applications and services

Keycloak adds authentication and single sign-on to applications so they do not store or verify users themselves. It supports standard protocols and central admin tools.

★ 38.1k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

JumpServer

Open-source bastion host for privileged access

JumpServer is a privileged access management platform that unifies secure access to SSH, RDP, Kubernetes, databases, and web assets.

★ 32.1k⟳ yesterdayGPL-3.0
Open Source Alternative to:BeyondTrust

Better Auth

Composable TypeScript authentication and authorization framework

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.

★ 30.9k⟳ todayMIT
Open Source Alternative to:Stytch

Infisical

Open-source security infrastructure for secrets, certs, and access

Infisical is a security infrastructure platform where teams manage application secrets, certificates, privileged access, and AI agent credentials in one place.

★ 30.8k⟳ todayMIT · open core
Secrets ManagementSelf-hostable
Open Source Alternative to:Keeper

Authelia

Self-hosted SSO portal with multi-factor authentication

Authentication and authorization server that sits in front of reverse proxies. Provides a web portal for login, OpenID Connect, and granular access rules with several second-factor methods.

★ 29.8k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+2

authentik

Self-hosted identity provider for SSO protocols

authentik centralizes authentication with SAML, OAuth2, OIDC, LDAP, RADIUS, and related flows. It targets small labs through production clusters you deploy yourself.

★ 26.5k⟳ todayMIT · open core
Open Source Alternative to:Amazon CognitoAuth0+5