# Our app emails customers a login link. How do we keep those links usable when a tenant changes their domain?

Canonical: 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

Published: 2026-11-20

Last updated: 2026-11-20

Topic: Websites & AI

Generate new links using the tenant's current verified hostname and define an explicit policy for previously issued links.

Control login-link destinations

Do not silently forward tokens to an unverified replacement domain.

Your next steps

Use verified hostnames

Define old-link handling

Provide a trusted recovery route

Before you proceed

Keep a trusted recovery route available when the old domain no longer belongs to the tenant.

First: Use verified hostnames.

Next: Define old-link handling.

Confirm: Provide a trusted recovery route.

## Sources

- [OAuth: redirect URI validation](https://www.rfc-editor.org/rfc/rfc9700.html#section-2.1)

- [Cloudflare for SaaS: custom hostname ownership](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/hostname-validation/)
