NextAuth

Authentication for Next.js

Update June 2020

The next generation version NextAuth.js was released in June 2020!

Original Article

This week I released NextAuth, a module specifically designed for Next.js and React, that supports email sign in and oAuth.

https://nextjs-starter.now.sh
Populating session state in a React with NextAuth

Features

The NextAuth library uses Express and Passport to provide support for signing in with email and with services like Facebook, Google and Twitter.

Example

NextAuth includes its own minimal example project but the NextJS Starter Project provides a more complete example.

Goals

While the documentation is comprehensive and there are multiple examples of how to use it, it’s still far more cumbersome to add authentication to sites that it needs to be.

Next.js

If you haven’t seen Next.js yet and you use React you should check it out.

Software for news and media and civic tech. Cat herder. Director at Glitch Digital.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store