https://supertokens.com/ logo
Title
t

Trey

11/03/2022, 6:56 PM
I’m working on a multi tenant app with a centralized user store. The idea is to give users a subdomain,
user.saas.com
, but also give them the option to use their own domain if they want,
user.xyz
. My users will mostly create accounts via SSO and I don’t want to have to add every custom domain to my redirect URLs for say, Discord’s Oauth2. Can SuperTokens handle being that service?
r

rp

11/03/2022, 6:57 PM
Hey @Trey
You could make the users all redirect back to a common domain and then redirect them further to their respective sub domain
t

Trey

11/03/2022, 7:03 PM
Any suggestions for how to pass the token to that other service? Wouldn't I basically be writing my own Oauth2 service at that point?
r

rp

11/03/2022, 8:13 PM
Yea. You would. We are not yet an OAuth provider, so you would have to pass back the tokens as a redirection.
yes you can. We have docs for implementing custom providers