We are building a b2b SaSS application. All the clients will have their own subdomains(ex: https://<client_name>.app.com).
As it’s a SaSS application we use the same application for different organizations, we would like to avoid the organization prompt.
As far as my understanding after reading the docs, if we want to avoid organization promopt we need to pass organizationId when we redirecting the user to
So we come with a solution that, we read the browser url and get sub domain using javscript and pass that to backend api.
backend api is responsible for geting the org Id using the org name and forward it to front end as a reponse.
Are we going in right direction to avoid the promp?
Thanks in advance for your help.