Auth0Alternatives
FeaturesOpen SourceSelf-hostedB2BB2C
SubmitSign In

Discover

LatestOpen SourceSelf-hostedB2BB2CAll providers

AI & Agents

MCP AuthorizationAgent IdentitiesToken VaultAI Agent DetectionDevice LoginAll features

Data Residency

🇪🇺European Union🇺🇸United States🇬🇧United Kingdom🇨🇭Switzerland🇦🇺AustraliaAll regions

Compliance

SOC2GDPRISO 27001HIPAAPCI DSSAll compliance
Submit
Favicon of Auth.js

Auth.js

Free, open-source authentication library supporting multiple frameworks like Next.js, SvelteKit, Express, and Qwik with 50+ OAuth providers.

Visit Auth.jsauth0 iconCompare with Auth0
Screenshot of Auth.js websiteVisit Auth.js

Auth.js is a comprehensive, free and open-source authentication solution designed for modern web applications. This powerful library provides seamless integration across multiple frameworks including Next.js, SvelteKit, Express, and Qwik.

⚠️ Note: As of September 2025, the Auth.js project is now officially part of Better Auth. New projects are advised not to start with Auth.js. Instead, use Better Auth, which is the actively maintained successor and future direction of the project. Existing Auth.js users will continue to see support in the short term, but the roadmap and new features are focused on Better Auth. Read the official announcement.

Key Features:

  • 50+ OAuth providers including GitHub, Google, Facebook, and more
  • Framework-agnostic design with dedicated packages for popular frameworks
  • Type-safe implementation with full TypeScript support
  • Zero-config setup for quick implementation
  • Secure by default with built-in CSRF protection and secure cookies

The library offers simple integration with just a few lines of code. Whether you're building a Next.js app, SvelteKit project, Express server, or Qwik application, Auth.js provides consistent APIs and excellent developer experience.

Benefits:

  • Reduce development time with pre-built authentication flows
  • Maintain security best practices without complexity
  • Scale easily with enterprise-grade authentication
  • Access comprehensive documentation and active community support

Perfect for developers who need reliable authentication without the overhead of building custom solutions from scratch.

Features:

Passwordless Authentication
Social Connections

Auth.js comes with over 80 preconfigured OAuth providers (Google, GitHub, Twitter, Facebook, etc.) so users can sign in with existing accounts

Passkeys
Long Lived Sessions

Session settings allow adjusting `session.maxAge` and `updateAge` to control how long sessions last; default expiry is 30 days but can be configured for longer durations

Session Management
Multi-Language
Device Login (CLI & TV)

SSO Enterprise Connections
SAML
SCIM
CIBA
LDAP

Client Credentials Support

Auth.js only implements user‑centric authentication flows. It does not provide client credentials grant for machine‑to‑machine communication

Access Token Support
Token Restrictions

MCP Authorization
Agent Client Registration
Third-Party App & Agent Access
Token Vault

Stores provider tokens in your database, but you write the refresh logic.

Human-in-the-Loop Approval
Agent Identities
Delegated Token Exchange
Developer MCP Server

Custom Login Page
Custom Domain

Auth.js runs within your application. There is no hosted authentication domain, so there is no concept of custom domains

Webhooks
Integrations

Official integrations exist for multiple frameworks (Next.js, Express, Qwik, SvelteKit, etc.)

Brute Force Protection
Suspicious IP Detection
Impossible Travel Protection
Bot Detection
Breached Password Protection
New Device Detection
MFA
Adaptive MFA
Security Monitoring Dashboard
AI Agent Detection
Fraud & Risk Scoring

User Import

Auth.js does not offer tools to import users. User records are in your own database

Organizations
Custom Attributes

As you manage the users in your own database, you have full control over the user attributes

Role Management
Account Linking
Impersonation
Admin Interface
User Export

As you manage the users in your own database, you can export them easily

Password Export

As you manage the hashed user passwords in your own database, you can export them easily

Rate Limits
Log Streaming
Environments
SLA
Community Support
Email Support
Enterprise Support
Monitoring
Share:
Details:
  • B2B


    No
  • B2C


    Yes
  • Open Source


    Yes
  • Self-hosted


    Yes
  • EU data residency


    Yes
View Repository
Favicon

 

  
 

Similar to Auth.js:

Favicon

 

  
  
Favicon

 

  
  
Favicon

 

  
  
Subscribe to our newsletter

Join other CTOs and engineers to get the latest news and to keep your apps secure.

Browse:Open SourceSelf-hostedB2BB2CFeaturesComplianceData Residency
Quick Links:Contact UsSubmitBlogAbout Us
Built withDirstarter
Auth0Alternatives
FeaturesOpen SourceSelf-hostedB2BB2C
SubmitSign In

Discover

LatestOpen SourceSelf-hostedB2BB2CAll providers

AI & Agents

MCP AuthorizationAgent IdentitiesToken VaultAI Agent DetectionDevice LoginAll features

Data Residency

🇪🇺European Union🇺🇸United States🇬🇧United Kingdom🇨🇭Switzerland🇦🇺AustraliaAll regions

Compliance

SOC2GDPRISO 27001HIPAAPCI DSSAll compliance
Submit
Ad
Favicon of DescopeDescope
Drag & Drop Your Auth. Add secure, frictionless authentication journeys for your customers, partners, and AI agents.
Visit Descope
Ad
Favicon of AuthsignalAuthsignal
You might not need to replace your auth provider. Add passkeys, adaptive MFA, and a no-code orchestration engine on top of the identity stack you already run.
Visit Authsignal
Featured projects

Become a sponsor of Auth0Alternatives:

Favicon of DescopeFavicon of Authsignal

Similar to Auth.js:

Favicon of Authelia

Authelia

Modern open-source IAM with SSO and multi-factor auth
Free open-source identity and access management platform with single sign-on, multi-factor authentication, and OpenID Connect support for secure application access.
Open Source
Favicon of authentik

authentik

Unified authentication platform you control
Self-hosted identity provider with flexible workflows, comprehensive APIs, and enterprise-grade security. Over 1 million installations trusted worldwide.
Open Source
Favicon of Authgear

Authgear

Secure authentication made simple for developers
Open-source and complete authentication solution that is suitable for B2C and B2B use cases. Self-hosted and SaaS options, beautiful and custom login page. OIDC and SAML SSO support. Support passkeys.
Open Source
Popular Auth0 Comparisons:
Engity vs Auth0
Amazon Cognito vs Auth0
Entra External ID vs Auth0
Firebase Authentication vs Auth0
Clerk vs Auth0
WorkOS vs Auth0
Frontegg vs Auth0
FusionAuth vs Auth0
Supabase Auth vs Auth0
Auth.js vs Auth0
Ory vs Auth0
SuperTokens vs Auth0
Logto vs Auth0
Hanko vs Auth0
Hexclave vs Auth0
Authress vs Auth0
Popular WorkOS Comparisons:
Engity vs WorkOS
Auth0 vs WorkOS
Amazon Cognito vs WorkOS
Entra External ID vs WorkOS
Firebase Authentication vs WorkOS
Clerk vs WorkOS
Frontegg vs WorkOS
FusionAuth vs WorkOS
Supabase Auth vs WorkOS
Auth.js vs WorkOS
Ory vs WorkOS
SuperTokens vs WorkOS
Logto vs WorkOS
Hanko vs WorkOS
Hexclave vs WorkOS
Authress vs WorkOS