How do I change the client base URL? #1637
Unanswered
italodeandra
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I have an use case that I bundle the application to be also used injected in another domain (similar to a webcomponent).
But when I use anything related to NextAuth client, it tries to use the API through the current domain, which is not the original domain of the API, so the auth routes are not available.
I know on the source code it says this:
next-auth/src/client/index.js
Line 18 in 073da60
But is it possible to override it and not leave it blank? Because if it's blank it will use the current location and I that will impossible to use
useSession
hook orsignIn
andsignOut
methods.Beta Was this translation helpful? Give feedback.
All reactions