> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiveth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom domains

> Serve your organization's sign-in pages and OpenID Connect endpoints from your own address, such as login.example.com.

A custom domain lets your people sign in at your own address, such as `login.example.com`, instead of `accounts.aiveth.com`. The sign-in card, consent screen and your apps' OpenID Connect endpoints are all served from it.

> [!NOTE]
>
> Available on the Pro plan and above.

## Before you start

* [Verify the parent domain](https://docs.aiveth.com/sign-in/verified-domains.md). A custom domain must sit under one of your organization's verified domains, so nobody can claim a name they do not own.
* You need the `security:manage` permission.
* Your organization can have **one** custom domain.

## Add a custom domain

**1. Enter the address**

In the console, go to **Branding** → **Custom domain**. Under **Address**, type the full address, for example `login.example.com`, and choose **Add**. It must have at least three parts, such as `login.example.com`, and be a domain name, not an IP address.

**2. Add the DNS record**

The console shows one CNAME record under **Add this record at your DNS provider**. Add it exactly as shown.

**3. Wait for it to go live**

The status shows **Waiting for the record** until the record is found and a certificate is issued, then **Live**. Aiveth checks again on its own, or you can choose **Check now**.

If the status shows **Couldn't set it up**, check the record and try **Check now** again. To stop using the address, choose **Remove**, then **Remove it**.

Your organization's Owners are emailed when the custom domain changes.

## What the custom domain serves

The custom domain serves the pages and endpoints people and apps use to sign in:

* the sign-in card (`/login`) and consent screen,
* the OpenID Connect and OAuth endpoints (`/oauth/...`) and discovery documents (`/.well-known/...`),
* device login and device-bound session endpoints,
* your brand images.

Everything else, including the console, stays at Aiveth's own address.

## Update your apps

On your custom domain, the **issuer** is your custom domain. Tokens issued there carry it as `iss`, and the discovery document at `https://login.example.com/.well-known/openid-configuration` lists endpoints on your domain.

When you switch an app to the custom domain:

* Point the app's issuer (or discovery URL) at `https://login.example.com`.
* Check that your token validation accepts the new `iss`.
* Keep the same client ID, redirect URIs and scopes.

> [!WARNING]
>
> Tokens issued at `accounts.aiveth.com` carry Aiveth's issuer, and tokens issued at your custom domain carry yours. Move each app in one step, so it does not see a mix.

## Related

* [Verified domains](https://docs.aiveth.com/sign-in/verified-domains.md)
* [Branding](https://docs.aiveth.com/brand/branding.md)
* [Login with Aiveth](https://docs.aiveth.com/apps/login-with-aiveth.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.