I'm building a react app where users get redirected to the subdomain when they log in or signup. But the problem is After they get redirected to a subdomain, they need to log in again on the subdomain, and I also don't have access to the user's local storage data and redux state from the subdomain.
I'm redirecting a user using this code:
window.location.href = `http://${data?.result?.username}.localhost:3000/`;
Anyone, please guide me!