{"id":"https://www.namesilo.com/questions/websites-and-ai/our-app-emails-customers-a-login-link-how-do-we-keep-those-links-usable-when-a-tenant-changes-their-domain","url":"https://www.namesilo.com/questions/websites-and-ai/our-app-emails-customers-a-login-link-how-do-we-keep-those-links-usable-when-a-tenant-changes-their-domain","title":"Our app emails customers a login link. How do we keep those links usable when a tenant changes their domain?","description":"Generate new links using the tenant's current verified hostname and define an explicit policy for previously issued links.","language":"en","category":"websites-and-ai","datePublished":"2026-11-20","dateModified":"2026-11-20","answer":"Generate new links using the tenant's current verified hostname and define an explicit policy for previously issued links.","body":"Our app emails customers a login link. How do we keep those links usable when a tenant changes their domain?\n\nGenerate new links using the tenant's current verified hostname and define an explicit policy for previously issued links.\n\nControl login-link destinations\n\nDo not silently forward tokens to an unverified replacement domain.\n\nYour next steps\n\nUse verified hostnames\n\nDefine old-link handling\n\nProvide a trusted recovery route\n\nBefore you proceed\n\nKeep a trusted recovery route available when the old domain no longer belongs to the tenant.\n\nFirst: Use verified hostnames.\n\nNext: Define old-link handling.\n\nConfirm: Provide a trusted recovery route.","steps":["Use verified hostnames","Define old-link handling","Provide a trusted recovery route"],"faqs":[],"sources":[{"name":"OAuth: redirect URI validation","url":"https://www.rfc-editor.org/rfc/rfc9700.html#section-2.1"},{"name":"Cloudflare for SaaS: custom hostname ownership","url":"https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/hostname-validation/"}],"json":"https://www.namesilo.com/questions/data/our-app-emails-customers-a-login-link-how-do-we-keep-those-links-usable-when-a-tenant-changes-their-domain.json","markdown":"https://www.namesilo.com/questions/data/our-app-emails-customers-a-login-link-how-do-we-keep-those-links-usable-when-a-tenant-changes-their-domain.md"}