What is the best way to handle authentication on Next.js?

This page summarizes the projects mentioned and recommended in the original post on /r/nextjs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • iron-session

    🛠 Secure, stateless, and cookie-based session library for JavaScript

  • Check out iron-session. I just started using it for a new project where I already have an authentication setup. It makes it easy to use cookies for authorization. The repo has some examples of how to wrap API routes and getServerSideProps with it.

  • next-auth

    Authentication for the Web.

  • https://next-auth.js.org/ will be your best friend

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts