Auth with multi-domain/multi-tenantency in Nextjs?

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
  • oidc-client-ts

    OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications

  • Anyone has done this with OAuth in Nextjs app? I'm looking for a SSR solution. right now i'm using https://github.com/authts/oidc-client-ts. it works great for client side rendering app. but with next 13 moving everthing server side I started using next-auth. it has support to host multi-domain app in vercel but if you want to host youself it is not possible right now. I'm doing too many hacks to getting it to work right now. https://github.com/nextauthjs/next-auth/issues/600 look here of the more discussion regarding this. so my question is there any other way to do oauth in nextjs 13 in multidomain usecase?

  • next-auth

    Authentication for the Web.

  • Anyone has done this with OAuth in Nextjs app? I'm looking for a SSR solution. right now i'm using https://github.com/authts/oidc-client-ts. it works great for client side rendering app. but with next 13 moving everthing server side I started using next-auth. it has support to host multi-domain app in vercel but if you want to host youself it is not possible right now. I'm doing too many hacks to getting it to work right now. https://github.com/nextauthjs/next-auth/issues/600 look here of the more discussion regarding this. so my question is there any other way to do oauth in nextjs 13 in multidomain usecase?

  • 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
  • nextjs-auth0

    Next.js SDK for signing in with Auth0

  • The only option I found is this one https://github.com/auth0/nextjs-auth0 so, just wanted to know anyone else faced this and how they solved it.

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