Hi, We’re looking for a new authentication solutio...
# support-questions-legacy
m
Hi, We’re looking for a new authentication solution and I’m trying to figure out if our current stack is compatible with SuperTokens. We have multiple domains, e.g. example1.com, example2.com, that all use the same stack: a NextJS application that calls a NodeJS API to fetch data from the database. The NextJS application can be reached from example1.com and example2.com. The API can be reached from api.example1.com and api.example2.com. Apart from the web applications, we also have a mobile app for each domain. The domains function as separate websites and have their own pages, however the users are shared between the domains. I.e. if you create an account on example1.com you can login on both example1.com and example2.com. Currently, we use session cookies that are domain specific. So, if you log in on example1.com, you are not automatically logged in on example2.com. We support logging in with username+password. On registration username+email+password must be supplied, where username and email are unique across all domains. We also support social login (with Facebook and Apple). Every domain has its own social app, which means that the same user can have multiple Facebook IDs (one per domain). Could you answer the following questions? - The frontend documentation [1] shows how the SuperTokens SDK must be initialised with appInfo [2] containing a websiteDomain as a string. This, however, is not possible with our setup, since we have multiple website domains. Do you know if there is a way around this? - Could you tell me if it is possible to have multiple Facebook IDs for the same user? - Is there anything else in the setup described above that is not possible to implement with the SuperTokens SDK? Thanks in advance! [1]: https://supertokens.com/docs/emailpassword/pre-built-ui/setup/frontend [2]: https://supertokens.com/docs/emailpassword/appinfo