umarfkhawaja
09/21/2023, 12:22 PMauth-api.example.com
which serves as the SuperTokens backend, gateway-api.example.com
, which is the API backend for our websites, and 2 websites alpha.example.com
and beta.example.com
. Each website is logging in users using auth-api.example.com
as the backend.
I am confused about what the value of websiteDomain
needs to be for auth-api.example.com
. Should it be https://example.com
?rp_st
09/21/2023, 2:34 PMrp_st
09/21/2023, 2:35 PMhttps://example.com
. You would need to override the sendEmail function of the recipes (in the emailDelivery config of the recipe) to change the domain on the fly based on the req object's origin header.umarfkhawaja
09/21/2023, 4:06 PMumarfkhawaja
09/21/2023, 4:06 PMumarfkhawaja
09/21/2023, 4:06 PMumarfkhawaja
09/21/2023, 4:06 PMrp_st
09/21/2023, 4:32 PM