Hi, I have nodejs app with react. On the deployeme...
# support-questions-legacy
a
Hi, I have nodejs app with react. On the deployement domain, the application works perfect. Also, on the localhost it works perfect. But, I have a react developer that only has the react app. The app is pointing to the deployment server because I cant install the entire app at his computer. This way he can develop client side features without the server complexity. The problem is that the react is at
localhost:9001
the remote server is at
domain.com
. he is able to login, and immedietly after the redirection to the success page he gets disconnected. I assume It is because we operating the app under 2 domains
localhost:9001
and
domain.com
. how can I configure the app info on the client side to supprt that? is that possible to have 2 different domains? Thanks
r
hey @avi.f on the client, you can use window.location.origin or something for the websiteDomain. On the backend, see this: https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/multiple-clients
a
@rp_st - perfect! thanks
6 Views