Sign In with Google in Multi-Tenant Application
Unanswered
English Shepherd posted this in #help-forum
English ShepherdOP
Hello friends,
I'm trying to create a multi-tenant application just like the example one, and the
I'm not sure I understand the proposed solution ("use localhost:8888 instead of app.localhost:3000"); how does using a different port help? How would one go about setting that up; I can't run my app on multiple ports at once, and even if I could what would I do, rewrite the URL in the middleware? I have found a "solution" with "localtest.me", but that means that development would be entirely broken offline instead of just preventing external auth.
Thanks in advance!
I'm trying to create a multi-tenant application just like the example one, and the
middleware.ts works (with the modifications I made). I'm now running into the "known limitation" of Google OAuth mentioned here: https://vercel.com/guides/nextjs-multi-tenant-application#4.-sign-in-with-google-limitations-in-localhostI'm not sure I understand the proposed solution ("use localhost:8888 instead of app.localhost:3000"); how does using a different port help? How would one go about setting that up; I can't run my app on multiple ports at once, and even if I could what would I do, rewrite the URL in the middleware? I have found a "solution" with "localtest.me", but that means that development would be entirely broken offline instead of just preventing external auth.
Thanks in advance!
1 Reply
English ShepherdOP
bump