Very lost with regards to Next JS authentication with a custom backend, any advice/input welcome

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

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.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • nookies

    🍪 A set of cookie helpers for Next.js

  • When the user submits the login form, you send an API request with their user/password. Your API handles it however you wish, and on success returns a user token. Using cookies (I've found the nookies library helpful for dealing with cookies), save that token locally, and then send that token along with every API request.

  • Next.js

    The React Framework

  • Next.js used to have a with-cookie-auth example which helped dealing with this, but it seems that they've removed it. One thing that I remember that it had, was a authentication function in the getInitialProps in protected (account) pages that would check for the token, and redirect the user to /login if it did not exist.

  • 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

  • SSR caching?

    3 projects | /r/nextjs | 15 Nov 2021
  • How would you save user-defined settings like accent color in your nextjs website?

    2 projects | /r/nextjs | 5 Oct 2021
  • How do you handle relogging in users?

    1 project | /r/nextjs | 19 May 2021
  • Next.js 10.2 – Improved Performance, Accessibility, Automatic Font Optimization

    8 projects | news.ycombinator.com | 28 Apr 2021
  • How to Build Your Own ChatGPT Clone Using React & AWS Bedrock

    5 projects | dev.to | 1 May 2024