Adapters screenshot

Adapters

Author Avatar Theme by Nextauthjs
Updated: 5 Feb 2022
158 Stars

next-auth adapters that are maintained by the community to support any database.

Overview

NextAuth.js is an open-source authentication solution designed specifically for Next.js applications and Serverless environments. It provides a comprehensive solution for handling authentication needs in Next.js projects.

Features

  • Designed for Next.js: NextAuth.js is specifically built to seamlessly integrate with Next.js applications.
  • Open Source: It is an open-source project, allowing for community contributions and support.
  • Adapters Support: The monorepo contains multiple adapters maintained by the community to support various databases.
  • Experimental Adapters: The repository includes experimental adapters that are open for feedback from users.
  • Future Plans: There are plans to remove legacy adapters from the core package and replace them with updated versions in the future.

Installation

To install NextAuth.js, follow these steps:

  1. Clone the repository from the new nextauthjs/next-auth monorepo.
  2. Navigate to the ‘packages/adapter-*’ directory.
  3. Choose the desired adapter such as typeorm, prisma, fauna, dynamodb, firebase, or pouchdb.
  4. Install the adapter using npm or yarn:
    npm install @next-auth/typeorm-legacy-adapter
    
  5. Follow the detailed documentation available for each adapter to set it up correctly.

Summary

NextAuth.js is a specialized authentication solution catering to Next.js applications and Serverless environments. With a focus on adaptability, community support, and future updates, it provides a robust authentication framework for developers working with Next.js projects.