awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
nextauthjs avatar

nextauthjs/next-auth

0
View on GitHub↗
28,277 stars·4,041 forks·TypeScript·ISC·24 viewsauthjs.dev↗

Next Auth

Next-auth is an authentication and identity management library for web frameworks. It provides a unified system for handling user sign-in and session state across server and client environments, functioning as a session management framework and an OIDC authentication library.

The project distinguishes itself through a provider-based identity abstraction that supports multiple authentication methods, including OAuth, email magic links, traditional credentials, and passwordless passkeys. It allows for the registration of custom OAuth or OIDC compliant providers and offers tools to define brandable sign-in pages and custom authentication routes.

The library covers a broad surface of identity capabilities, including database persistence via pluggable adapters for user profiles and session storage. It implements request security enforcement through CSRF token validation and route protection via middleware, while maintaining user state using either signed tokens or database-backed sessions.

The system includes observability tools for recording authentication events and errors through logging services.

Features

  • Authentication Frameworks - Provides a comprehensive framework for implementing various authentication strategies and managing user sessions in web applications.
  • OAuth and Identity Providers - Integrates with external OAuth and OIDC identity providers to allow users to sign in with third-party accounts.
  • Credential Authentication - Verifies user identities via traditional username and password combinations managed directly by the application.
  • Authentication Middleware - Implements security middleware to verify identity and enforce access control on incoming requests.
  • External Identity Provider Integration - Integrates with external OAuth services, email-based passwordless systems, and directories to authenticate users.
  • Identity Store Adapters - Uses a pluggable adapter system to persist user accounts and authentication data into external databases.
  • User Profile Management - Provides functionality for storing and managing user account attributes and profiles through pluggable database adapters.
  • External Database Persistence - Persists authentication session data and user profiles in external databases to maintain state across server instances.
  • Cross-Framework Logic - Ensures uniform identity management and session behavior across various web frameworks and server environments.
  • Identity Abstractions - Standardizes diverse authentication methods like OAuth, Email, and Credentials through a unified configuration object.
  • OAuth 2.0 Authorization Flows - Implements standard OAuth 2.0 authorization flows, including the exchange of authorization codes for access tokens.
  • OAuth Provider Integrations - Facilitates user sign-in by connecting to external identity providers and mapping third-party accounts.
  • Session Management Frameworks - Maintains user state using either signed JWT tokens or database-backed sessions across server and client environments.
  • Stateless Session Management - Maintains user identity state using signed JWTs stored in encrypted cookies for stateless session operation.
  • User Authentication Flows - Supports diverse identity verification methods including OAuth, email magic links, passwords, and passkeys.
  • Web Application Security - Provides security middleware to protect web applications using CSRF token validation and restrictive cookie policies.
  • Database Adapters - Implements a pluggable adapter system to decouple authentication data from specific database engines and ORMs.
  • OAuth Provider Registrations - Allows the registration of any OIDC or OAuth compliant identity provider via custom configuration objects.
  • Route Middleware - Provides middleware to intercept requests and verify session validity before granting access to protected routes.
  • Authentication Workflows - Implements configurable workflows for sign-in, including support for passwords, magic links, and passkeys.
  • Cross-Site Request Forgery Protections - Provides cryptographically secure token validation to prevent cross-site request forgery on state-changing authentication requests.
  • Application Request Security - Protects sensitive routes by enforcing CSRF tokens and applying restrictive cookie policies during login.
  • Provider Configurations - Provides tools for customizing third-party identity provider settings, including scope adjustments and user profile mapping.
  • Third-Party Integrations - Connects to third-party identity services using built-in or custom configurations to handle user authentication.
  • Sign-In Page Customizations - Provides the ability to replace default sign-in pages with custom branded interfaces while maintaining backend integration.

Star history

Star history chart for nextauthjs/next-authStar history chart for nextauthjs/next-auth

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does nextauthjs/next-auth do?

Next-auth is an authentication and identity management library for web frameworks. It provides a unified system for handling user sign-in and session state across server and client environments, functioning as a session management framework and an OIDC authentication library.

What are the main features of nextauthjs/next-auth?

The main features of nextauthjs/next-auth are: Authentication Frameworks, OAuth and Identity Providers, Credential Authentication, Authentication Middleware, External Identity Provider Integration, Identity Store Adapters, User Profile Management, External Database Persistence.

What are some open-source alternatives to nextauthjs/next-auth?

Open-source alternatives to nextauthjs/next-auth include: nextauthjs/next-auth-example — This project is a reference implementation and boilerplate for managing user authentication and session state within… anomalyco/openauth — OpenAuth is a standards-based authentication server and identity provider that implements OAuth 2.0 and OpenID Connect… teamhanko/hanko — Hanko is an open-source identity provider and customer identity and access management system. It serves as a passkey… aarondl/authboss — Authboss is a modular HTTP authentication framework for managing user identity, session lifecycles, and password… steveiliop56/tinyauth — Tinyauth is an authentication middleware service and identity provider that verifies user identities to grant system… pennersr/django-allauth — django-allauth is a comprehensive authentication framework for Django applications that manages user registration,…

Open-source alternatives to Next Auth

Similar open-source projects, ranked by how many features they share with Next Auth.
  • nextauthjs/next-auth-examplenextauthjs avatar

    nextauthjs/next-auth-example

    4,029View on GitHub↗

    This project is a reference implementation and boilerplate for managing user authentication and session state within the Next.js framework. It serves as a practical example of how to integrate NextAuth.js to protect routes and handle identity verification. The repository demonstrates several authentication workflows, including OAuth identity integration with third-party providers, passwordless authentication using email magic links, and traditional credentials-based sign-in. It specifically showcases how to replace default authentication screens with custom branded sign-in pages. The impleme

    TypeScriptauthenticationnextjsoauth
    View on GitHub↗4,029
  • anomalyco/openauthanomalyco avatar

    anomalyco/openauth

    6,971View on GitHub↗

    OpenAuth is a standards-based authentication server and identity provider that implements OAuth 2.0 and OpenID Connect protocols. It serves as a centralized system for managing user identities, issuing access tokens, and orchestrating authentication flows across various services. The project functions as a federated identity gateway, aggregating external providers such as Google, GitHub, Microsoft, Apple, and Discord into a unified login flow. It distinguishes itself with a multi-tenant architecture that supports pluggable identity providers and customizable user interface frameworks for bran

    TypeScript
    View on GitHub↗6,971
  • teamhanko/hankoteamhanko avatar

    teamhanko/hanko

    8,801View on GitHub↗

    Hanko is an open-source identity provider and customer identity and access management system. It serves as a passkey authentication service and an OAuth and SAML SSO gateway, allowing applications to authenticate users and issue tokens via standard identity protocols. The project distinguishes itself through a strong focus on passwordless access using WebAuthn-based passkeys and email-based passcodes. It provides framework-agnostic authentication interfaces as customizable web components that can be embedded directly into web applications to handle login, registration, and profile management.

    Go2faauthenticationciam
    View on GitHub↗8,801
  • aarondl/authbossaarondl avatar

    aarondl/authboss

    4,189View on GitHub↗

    Authboss is a modular HTTP authentication framework for managing user identity, session lifecycles, and password security. It provides a system of identity access middleware to control route access and synchronize user identity across requests via standard web protocols. The framework is distinguished by a pluggable architecture that allows for the registration of independent modules to extend identity logic. It utilizes a hook-based event system to execute custom business logic during authentication state changes and employs a selector-verifier token pattern to protect against timing attacks

    Go
    View on GitHub↗4,189
  • See all 30 alternatives to Next Auth→