Custom Auth Domain Setup: auth.example.com by CNAME
Add auth.example.com in Authentication > Branding and emails, point a CNAME at the Didit host the console shows, check DNS, then Use this domain once Verified. Existing passkeys must be re-enrolled.

Contents
In this guide
Jump to the part you need.
A custom authentication domain moves Didit's hosted sign-in pages, runtime API and token issuer from yourapp.auth.didit.me to a subdomain you control, such as auth.example.com. It fits live applications that need sign-in on their own domain. Authentication is free for the first 50,000 active users each month, then $0.02 per active user. The caveat: passkeys belong to the domain, so activate before people start enrolling them.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | What to expect |
|---|---|
| What moves | Hosted sign-in pages, the runtime API and the token issuer move to your subdomain. |
| Console path | Authentication > Branding and emails > Custom domain. |
| DNS record | One CNAME from your subdomain to the Didit host the console shows. Copy the target from there, do not guess it. |
| Root domain | Not allowed. A CNAME cannot sit at the root, so use a subdomain such as auth.example.com. |
| Sandbox applications | Always sign people in on the Didit domain. Custom domains are for live applications. |
| Certificate | Issued by Didit once the CNAME is found, then renewed on its own. |
| Passkeys | Bound to the domain, so existing passkeys must be enrolled again after activation. |
| Token issuer | The active domain replaces the default host in iss, and your publishable key changes. |
| Price | No line for the domain. Authentication is free for the first 50,000 active users each month, then $0.02 per active user. |
Start free in the sandbox at business.didit.me, with no sales call. The product page is Didit Authentication, prices are on didit.me/pricing, and developers who want an assistant to call the same management API can connect Didit's MCP server.
The outcome, and the method we recommend
When the domain shows Active, a person who clicks your sign-in button lands on https://auth.example.com/sign-in instead of the Didit host. The pages keep your brand: logo, brand color, background, corner radius and font come from your application's Customization settings, and one change there updates the verification flow and the sign-in pages together. Sign-in emails follow the same brand and are sent from your verified email domain when you have one.
Three parts move with the domain: the hosted pages, the runtime API and the token issuer. Before activation, a live application issues tokens on https://name.auth.didit.me and a sandbox application on https://name.sandbox.auth.didit.me. After activation your subdomain is the issuer, and discovery and JWKS answer on it too.
We recommend the console for the first setup. It shows the exact CNAME target to create, a live preview of the hosted page in light and dark, and the status of the check while you wait. Use the API when you run several applications, or when a script or an assistant does the work: it runs the same check as the console buttons. Didit has 4,000+ companies. The pricing page has no line item for a custom domain; authentication bills by active users, so the domain adds no charge of its own.
Prerequisites
- A live application. A sandbox application always signs people in on its Didit domain, so the setting only takes effect on a live one.
- A subdomain you control and can edit DNS for, such as
auth.example.com. The root,example.com, cannot be used. - Permission to change Authentication settings: the
authenticationpermission at write in the console, an API key of the application with theauthenticationscope at write, or an owner-approved grant withdidit:management. - The exact CNAME target, which the console shows after you add the domain.
- A timing decision: add the domain before your users enroll passkeys, because activating it invalidates the ones they already hold.
Step by step: add the domain in the console
- Open the Didit Business Console, select the live application, then go to Authentication > Branding and emails and find Custom domain.
- In Your domain, enter the subdomain, for example
auth.example.com, and choose Add domain. - Create the DNS record the console shows at your DNS provider: a
CNAMEfrom your subdomain to your application's Didit host. Keep the name exactly as shown, with no path. - Choose Check DNS now. A new record can take up to an hour to show, and the domain stays in Waiting for DNS until Didit finds it.
- Once the record is found, Didit issues a certificate for your domain. The certificate renews on its own, so there is nothing to install or rotate.
- When the domain shows Verified, choose Use this domain. The status becomes Active and your subdomain is now the sign-in origin and the issuer.

Branded pages, page texts and sign-in emails
The domain is only the address. What people see on it comes from your application's Customization settings, with a live preview of the hosted page in light and dark under Authentication > Branding and emails. Choose Edit in Customization to change the logo, brand color, background, corner radius and font: one change updates the verification flow and the sign-in pages together. The pages follow the person's device in light or dark mode, the brand color is adapted for dark backgrounds, and on the Free plan the hosted pages show a Secured by Didit badge.
The same page holds your texts and legal links, set per language:
| Field | Limit | Where it shows |
|---|---|---|
| Sign-in title | 120 characters | The heading of the sign-in page. |
| Subtitle | 160 characters | The line under the heading. |
| Sign-up title | 120 characters | The heading of the sign-up page. |
| Terms of service URL | 500 characters | A link on the pages. When set, the sign-up form asks the person to accept your terms. |
| Privacy policy URL | 500 characters | A link on the pages, next to your terms. |
The hosted pages are translated into English, Spanish, French, German and Japanese, and pick the language from the person's browser, or from ui_locales on the sign-in URL. A language without your text keeps Didit's translated default. The emails view lists each sign-in email with a preview and Send a test: email code, magic link, password reset, new device sign-in, invitations, organization invitations and agent access notices. Emails go out from your verified email domain when you set one up in Customization, and from Didit <no-reply@didit.me> otherwise.

The same setup by API
Every call goes to the application's Authentication management API. Replace the organization and application IDs in the base URL:
https://apx.didit.me/auth/v2/organizations/{org_id}/applications/{application_id}/authentication/
Then run these four calls with an API key that has the authentication scope at write, or with an owner-approved management grant that carries didit:management:
export MANAGEMENT_BASE="https://apx.didit.me/auth/v2/organizations/${ORG_ID}/applications/${APPLICATION_ID}/authentication/"
# 1. Add the subdomain
curl --fail-with-body --request PUT "${MANAGEMENT_BASE}domain/" \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "auth.example.com"}'
# 2. Check the CNAME once it resolves
curl --fail-with-body --request POST "${MANAGEMENT_BASE}domain/verify/" \
-H "x-api-key: $DIDIT_API_KEY"
# 3. Make it the sign-in origin and issuer, after the status is Verified
curl --fail-with-body --request POST "${MANAGEMENT_BASE}domain/activate/" \
-H "x-api-key: $DIDIT_API_KEY"
# 4. Remove the domain
curl --fail-with-body --request DELETE "${MANAGEMENT_BASE}domain/" \
-H "x-api-key: $DIDIT_API_KEY"
Expected output
The console and the API report the same status for the same domain, so read the status rather than the response shape:
PUT domain/adds the domain. It sits in Waiting for DNS until the record resolves.POST domain/verify/runs the same check as Check DNS now and moves the domain to Issuing certificate, then Verified.POST domain/activate/is the API equivalent of Use this domain. Call it only once the domain is Verified.DELETE domain/removes the domain.
A request with no credential answers 401. A key without the authentication scope, a key of another application, or a grant without didit:management answers 403.

What each domain status means
| Status | Meaning | What to do |
|---|---|---|
| Waiting for DNS | Didit has not found the CNAME record yet. | Confirm the record at your DNS provider, wait up to an hour, then check again. |
| Issuing certificate | The record is there and the certificate is being issued. | Wait. The certificate renews on its own once issued. |
| Verified | Your domain serves the hosted pages. It is not your sign-in origin yet. | Choose Use this domain, or call POST domain/activate/. |
| Active | Your domain is the sign-in origin and the issuer. | Update your issuer configuration and expect a new publishable key. |
| Not found | The check failed. | Fix the record and check again. |
Passkeys: existing credentials must be enrolled again
This is the step that changes what users experience. A passkey is created for one origin, so a new origin means new credentials.
Passkeys belong to the domain people sign in on. Activating a custom domain means existing passkeys must be enrolled again, so add your domain before people start adding passkeys.
If people already hold passkeys on the Didit host, plan the move: activate at a quiet time, tell those users their passkey will be requested again, and keep another sign-in method enabled during the change so nobody is locked out. The console's Reset MFA action removes every second factor, passkeys included, and ends the person's sessions; only an Owner or Admin can run it.
Tokens after activation: issuer, JWKS and publishable key
The domain change is an issuer change. When your custom domain becomes active, it replaces the default host as the issuer: new tokens name it in iss, discovery points jwks_uri at it, and your publishable key changes. Access tokens issued under the default host then fail GET /session/ until they are refreshed.
Set DIDIT_AUTH_ISSUER to the new origin without a trailing slash, keep DIDIT_APPLICATION_ID as it is, and update the publishable key wherever your front end reads it. To avoid forcing every session to refresh at once, accept both issuers until the older tokens expire, within 5 minutes.
curl --fail-with-body "https://auth.example.com/.well-known/openid-configuration"
curl --fail-with-body "https://auth.example.com/.well-known/jwks.json"
The first document returns issuer, authorization_endpoint, token_endpoint and jwks_uri, and jwks_uri now points at your domain. The second returns {"keys": [...]}, the public signing keys.
Both documents answer Cache-Control: public, max-age=300, so a 5-minute cache is safe. Keys carry a kid and rotate every 30 days: Didit publishes the next key one day before it signs with it and keeps the previous one a day after. Cache by kid, fetch the JWKS again when a token names a key you do not have, at most once a minute, and reject the token if the key is still missing.
The publishable key encodes the issuer: after pk_live_ or pk_test_ it is the issuer in unpadded base64url. A stale publishable key points your SDK at the old host. Update the key in your front end at the same time you activate the domain, so the SDK and the issuer match.
Inputs and outputs
| Item | Type | Where it comes from or goes |
|---|---|---|
Subdomain, for example auth.example.com | Input | You choose it. It becomes the sign-in origin and the issuer. |
CNAME target | Input | The console shows it after Add domain. It proves you control the subdomain. |
API key with the authentication scope at write | Input | Developers > API keys, or an owner-approved grant with didit:management. |
| Status | Output | Waiting for DNS, Issuing certificate, Verified, Active or Not found. |
| Certificate | Output | Issued by Didit for your subdomain, renewing automatically. |
New issuer in iss | Output | https://auth.example.com, used by tokens, discovery and JWKS. |
| Publishable key | Output | Your publishable key changes and encodes the new issuer. |
Failure cases and recovery
| Symptom | Likely cause | Recovery |
|---|---|---|
| Not found after a check | The record is missing, names a different host, or sits at the root | Recreate the CNAME exactly as the console shows it, on a subdomain, then choose Check DNS now again. |
| Still Waiting for DNS after an hour | Didit has not found the CNAME yet | Compare the record at your DNS provider with the target the console shows, then choose Check DNS now again. |
| Add domain refused | You entered the root domain | Use a subdomain. A CNAME cannot sit at the root of your domain. |
| No custom domain on a sandbox application | Sandbox applications always sign people in on the Didit domain | Test the sign-in methods in sandbox, then set the domain on the live application. |
401 on a management call | No credential was sent | Send x-api-key with the application's key. |
403 on a management call | The key lacks the authentication scope, belongs to another application, or the grant lacks didit:management | Use the application's key with the authentication resource at write. |
| Sign-ins fail in your app after activation | The app still sends the old issuer or the old publishable key | Update DIDIT_AUTH_ISSUER and the publishable key, or accept both issuers until the older tokens expire, within 5 minutes. |
| Passkey sign-in fails for existing users | The credential was created for the old origin | Ask those users to enroll a passkey again on the new domain. |
If a check comes back Not found, compare the record at your DNS provider with the target the console shows before you press the button again.
Worked cost example
The domain itself has no price line. You pay for active users, which you pay for anyway. Take an application with 62,000 monthly active users at list price. The $240 below is usage only and excludes any plan subscription fee:
- First 50,000 active users each month: free.
- 62,000 - 50,000 = 12,000 active users after the free allowance.
- 12,000 x $0.02 = $240.00 a month.
Plan discounts apply to Didit prices. Growth takes 4% off: $0.02 x 0.96 = $0.0192, and 12,000 x $0.0192 = $230.40. Scale takes 10% off: $0.02 x 0.90 = $0.018, and 12,000 x $0.018 = $216.00. Usage is paid from the month's plan credit first, then from top-ups. Current plan fees are on didit.me/pricing, where Enterprise is listed as a custom annual contract starting at $15,000 a year.
Paid steps and review boundaries
- DNS record and certificate: no Didit line item. Your registrar or DNS provider may bill you for the domain name.
- Active users: free for the first 50,000 each month, $0.02 per active user after that, with the plan discount on Growth or Scale. See pricing.
- Verification and activation are the documented steps: Check DNS now, then Use this domain once the status is Verified. The certificate is issued by Didit and renews on its own.
- Who can change the domain: the
authenticationpermission at write, or an API key with that scope. Reading the section needs read. - Sandbox first: Authentication is new, so we recommend setting each method up in a sandbox application before the live one. The custom domain is the exception, because sandbox applications stay on the Didit domain, so plan one change window for the live application.
- Passkey resets are Owner or Admin only, so agree who runs them before the switch.
Sources
- Didit docs: Branded Sign-In Pages, Sign-In Emails and Custom Auth Domain, read November 26, 2026.
- Didit docs: Tokens and JWKS, verify Didit Authentication JWTs, read November 26, 2026.
- Didit docs: Set Up Didit Authentication by API, read November 26, 2026.
- Didit docs: Authentication Integration Guide, read November 26, 2026.
- Didit docs: Authentication Console Guide, read November 26, 2026.
- Didit docs: Sign-In Methods, Passkeys, Codes, Social, SSO, read November 26, 2026.
- Didit Authentication OpenAPI contract, read November 26, 2026.
- Didit pricing and pricing JSON, read November 26, 2026.
- Didit Authentication product page, read November 26, 2026.
- Didit MCP server, read November 26, 2026.
Next step: open business.didit.me, create a sandbox application and try your sign-in methods there. Sandbox testing is free and there is no sales call. When the flow looks right, add auth.example.com to the live application and activate it before your users enroll passkeys.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
How do I set up auth.example.com as my Didit sign-in domain?
Open Authentication > Branding and emails > Custom domain in the Didit Business Console, enter the subdomain, choose Add domain, create the CNAME the console shows at your DNS provider, choose Check DNS now, and choose Use this domain once the status is Verified. The API route is PUT domain/, then POST domain/verify/, then POST domain/activate/.
Do passkeys stop working when I change the auth domain?
Yes. Passkeys belong to the domain people sign in on, so activating a custom domain means existing passkeys must be enrolled again. Add the domain before people start adding passkeys, and keep another sign-in method enabled during the switch so nobody is locked out.
Why do tokens fail after the custom domain becomes active?
The custom domain becomes the issuer, so new tokens name it in iss and discovery points jwks_uri at it. Access tokens issued under the Didit host fail GET /session/ until they are refreshed. Update DIDIT_AUTH_ISSUER and the publishable key, or accept both issuers until the older tokens expire, within 5 minutes.
Does my publishable key change when the domain is activated?
Yes. Your publishable key changes and encodes the new issuer in unpadded base64url after pk_live_ or pk_test_. A front end still holding the old key points the SDK at the old host, so update the key at the same time you activate the domain.
Can I use example.com instead of auth.example.com?
No. A CNAME cannot sit at the root of your domain, so the custom domain has to be a subdomain such as auth.example.com. Use a subdomain you control and can edit DNS for.
Can a sandbox application use a custom auth domain?
No. Sandbox applications always sign people in on their Didit domain, and custom domains are for live applications. Test your sign-in methods in the sandbox, then set the domain on the live application.
How long does DNS verification and the certificate take?
A new CNAME can take up to an hour to show. Once Didit finds the record it issues a certificate for your domain, and that certificate renews on its own. The status moves from Waiting for DNS to Issuing certificate to Verified, and activation is a separate step you take afterwards.
Where is the JWKS on a custom auth domain?
At https://auth.example.com/.well-known/jwks.json, wherever your issuer is, and discovery answers at /.well-known/openid-configuration. Both documents can be cached for 5 minutes, and keys carry a kid and rotate every 30 days.
Is there an API for Didit authentication custom domain DNS verification?
Yes. PUT domain/ with the domain adds it, POST domain/verify/ checks the CNAME, POST domain/activate/ makes it the sign-in origin and issuer, and DELETE domain/ removes it. All four go to the application's Authentication management API and need a key with the authentication scope at write.
Does the custom domain change my redirect URLs or sign-in methods?
Your registered redirect URLs are your application's callback URLs, and each redirect_uri must exactly match one of them. The domain change moves the hosted pages, the runtime API and the token issuer, and the hosted pages keep the brand from Customization. Sign-in methods are enabled with PUT methods/{name}/, and hosted sign-in shows only the methods you enabled.
How much does a custom auth domain cost?
Didit has no price line for the domain or the certificate. You pay for active users: the first 50,000 each month are free, then $0.02 per active user, with 4% off on Growth and 10% off on Scale.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


