---
title: Domains
summary: A realm can sign people in on your own address, such as login.example.com, instead of the shared Tessera address.
section: concepts
order: 7
---
# Domains

A realm can sign people in on your own address, such as `login.example.com`, instead of the shared Tessera address.

By default a realm lives at `https://login.kurthlabs.com/realms/<realm>`. That address keeps working forever. If you add a login domain, people see your address in their browser while they sign in, and your tokens are issued from it.

## What changes

| Thing | Shared address | Your login domain |
| --- | --- | --- |
| Issuer (`iss`) | `https://login.kurthlabs.com/realms/<realm>` | `https://login.example.com` |
| Discovery | under the realm path | `https://login.example.com/.well-known/openid-configuration` |
| Keys | under the realm path | `https://login.example.com/jwks` |
| Invite and sign-in links | the shared address | your domain, when it is active |
| Passkeys | tied to the shared host | tied to your domain |

Pick one issuer per app. Tokens issued on your domain carry your issuer, and your app must check it exactly. Your redirect URLs do not change.

## Passkeys and sessions

A passkey belongs to the host where it was made. Passkeys made on the shared address do not work on your domain, and the other way round. Sessions are also per host. So decide early, and add the domain before many people have enrolled passkeys, or plan for them to add a new one. An operator can pin the realm's passkey domain (`passkey_rp_id`) to a registrable domain such as `example.com`, so passkeys keep working when the login host moves between that domain's subdomains.

## Only active domains answer

Tessera serves sign-in only on addresses it knows: the shared address and domains that are active. A domain that is still pending or only verified, or that turned active in the last 30 seconds, answers `404` with the error code [`host_not_registered`](/errors/host_not_registered.md). Keep using the shared address until the domain shows as active, then switch.

## Aliases

The first domain you add is the canonical one. Later domains are aliases that only redirect to it. An alias such as `logout.example.com` can land on the logout page.

## Set it up

See [login domains](/docs/customize/login-domains.md) for the DNS records, the checks and the switch-over.
