I'm struggling to implement auth in my app, I've almost done it and got stuck. Can someone help me out please? Prisma/Nexus/Apollo on the backend, Next.js/ApolloClient on the frontend. I can't seem to find a way to store and send the JWT token correctly.

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

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
  • godotassets

  • nexus queries and mutations are here. On sign up or login they take email/password and send back the tokens.

  • next-graphql-template

  • WIth mercurius and fastify I am sending up the token with ctx.reply.setCookie('jid', sign({ userId: user.id }, process.env.REFRESH_TOKEN_SECRET!, {expiresIn: '7d'}), { httpOnly: true }) in this file, and you will just need to find the equivalent for your stack I believe.

  • 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