Code Monkey home page Code Monkey logo

adapters's Introduction


NextAuth.js Adapters

Adapter Repository for NextAuth.js

Overview

NextAuth.js is a complete open source authentication solution for Next.js applications.

It is designed from the ground up to support Next.js and Serverless environments.

Getting Started

This repository is a lerna mono-repo which is home to multiple next-auth adapters maintained by the community to support any database.

Adapters

Currently, there are the following adapters ready for use

Adapter Version Docs NPM
typeorm-legacy npm adapters/typeorm @next-auth/typeorm-legacy-adapter
prisma npm adapters/prisma @next-auth/prisma-adapter
prisma-legacy npm adapters/prisma @next-auth/prisma-legacy-adapter
fauna npm adapters/fauna @next-auth/fauna-adapter
dynamodb npm adapters/dynamodb @next-auth/dynamodb-adapter
firebase npm adapters/firebase @next-auth/firebase-adapter

Contributing

Creating a database adapter

If you already have an adapter you would like to add, please create a Pull Request and we will work with you to get it officially supported!

If you would like to also take on the maintenance of the adapter, let us know, and we would be happy to add you as a maintainer to the repository.

TypeScript

We have an official TypeScript Adapter Interface, which should make complying with the existing adapter structure and the common tests, etc. much easier.

Testing

We have developed a basic set of tests that apply to all adapters, i.e. to which all adapters should conform and pass. The code can be found in basic-tests.ts, and specific implementations of which can be found in the /tests subdirectory of each currently available adapter.

All adapter tests should also run against a local instance of the particular database / ORM being tested. For example, for TypeORM we spin up MySQL and PostgreSQL instances via docker, seed them, and execute the test suite separately against both backends.

Publishing

License

ISC

adapters's People

Contributors

aalaap avatar acusti avatar ashlovell avatar balazsorban44 avatar dependabot[bot] avatar g10 avatar kripod avatar ndom91 avatar pbteja1998 avatar polmrt avatar williamluke4 avatar willthevideoman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.