Help using the Next-Auth TypeORM model/adapter?

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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • next-auth

    Authentication for the Web.

    I'm working on an application using next-auth with MongoDB. I'm having a lot of trouble figuring out how to access the TypeORM models or adapters so I can manipulate the User documents according to the schema. Currently I just created a new connection to my Mongo DB and was able to manipulate my User record from there but it allowed me to add arbitrary fields and not follow types because I wasn't using TypeORM just 'vanilla' Mongo. Can someone point me in the right direction on how to access the TypeORM adapter in Next API routes so I can do this the right way?

  • next-connect

    The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2

    I think what you're looking for is a way to access your DB via middleware, if so take a look at: https://github.com/hoangvvo/next-connect.

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

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