Git Product home page Git Product logo

next-auth's Introduction

NextAuth.js

https://next-auth.js.org

About NextAuth.js

This is a beta release of NextAuth.js v2, an open source authentication library for Next.js and Serverless.

It allows you to easily add sign in support to an application, without any third party service dependencies.

You choose your authentication providers (Google, Facebook, Email, etc) and add your database details (MySQL, Postgres, MongoDB, etc) and NextAuth does the rest!

Features

  • Built for Next.js and for Serverless (but works in any environment)
  • Lightweight, doesn't depend on Express or Passport.js
  • Supports Auth 1.x, OAuth 2.x and email / passwordless authentication
  • Out of the box support for signing in with Google, Facebook, Twitter, GitHub, Slack, Discord, Twitch and other providers
  • Extremely simple to use client, with useSession() hook and a universal session() method
  • Doesn't require client-side JavaScript
  • Supports both SQL and document storage databases with the default database adapter (TypeORM)
  • Secure / host-only and HttpOnly signed cookies; session ID never exposed to client-side JavaScript
  • Cross-site Request Forgery protection (double submit cookie method with a signed, HttpOnly, host-only prefix)
  • Fully customizable web pages and emails

Note: NextAuth.js is not associated with Vercel or Next.js.

Getting Started

NextAuth.js supports both SQL and Document databases out of the box.

For example code and the latest documentation, go to next-auth.js.org

next-auth's People

Contributors

iaincollins avatar ndom91 avatar lorikarikari avatar sponte avatar dependabot[bot] avatar khuezy avatar fumler avatar nickbolles avatar lifehome avatar rmcalvert avatar rxl881 avatar rahls7 avatar mebrein avatar langovoi avatar lachlanjc avatar cross19xx avatar joshuar500 avatar 9oelm avatar jenssogaard avatar drudv avatar dmitriyk1 avatar c100k avatar aol-nnov avatar ajaymathur 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.