Luca
02/17/2024, 5:48 AMOn the backend, you should set the websiteDomain to be your main domain (example.com if your sub domains are sub.example.com), and then you want to override the sendEmail functions to change the domain of the link dynamically based on the tenant ID supplied to the sendEmail function. See the Email Delivery section in our docs for how to override the sendEmail function.
for what is this websiteDomain used for? I have the following domain setup:
a.domainA.com -> uses api.domainA.com
b.domainA.com -> uses api.domainA.com
so i should set websiteDomain to domainA.com.
But i have another frontend:
domaniB.com -> used api.domainA.com
what to do now here?rp_st
02/17/2024, 5:49 AMLuca
02/17/2024, 5:55 AMLuca
02/17/2024, 5:58 AMLuca
02/17/2024, 6:08 AMhttp://localhost:3001/auth/verify?rid=passwordless&preAuthSessionId=-yCBPhk_1l23pAAicdv6JHaYveG-GN3GQCEo6BDGKjE&tenantId=customers#yHUM31PPT3oT3RfOQM1LX0faTXdwJGJGzmEJM-54B0A
I need to have a possibility to redirect the user to the specific page that has requested the login.rp_st
02/17/2024, 6:14 AMLuca
02/17/2024, 7:38 AMrp_st
02/17/2024, 12:09 PM