You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 503, not 422: we learned nothing about their record, so this must not read
75
+
// as a missing one. SERVFAIL can mean either a fault of ours or a broken zone
76
+
// of theirs, so the message states what we know rather than assigning blame.
77
+
if(lookup==='unavailable'){
78
+
returnNextResponse.json(
79
+
{
80
+
error:
81
+
"We couldn't complete the DNS lookup, so we can't tell yet whether your record is published. Try again in a few minutes — if it keeps failing, check that your domain's nameservers are responding.",
82
+
},
83
+
{status: 503}
84
+
)
85
+
}
86
+
if(lookup==='absent'){
75
87
returnNextResponse.json(
76
88
{
77
89
error:
@@ -101,6 +113,17 @@ export const POST = withRouteHandler(
101
113
// instead of mapping an undefined row or trusting a superseded challenge. A
102
114
// concurrent cross-org verification trips the partial unique index; surface
103
115
// that as a 409 rather than an unhandled 500.
116
+
/**
117
+
* Providers this proof covers. Normalized the way migration 0268 stored these
118
+
* rows (lower, trimmed, leading `*.` dropped) and identical to the expression
119
+
* the deletion path revokes with, so granting and revoking can never diverge.
@@ -139,9 +145,11 @@ export function VerifiedDomainsSection({ organizationId }: VerifiedDomainsSectio
139
145
<SettingRow
140
146
label='Add a domain'
141
147
description='Verify a domain your organization owns before configuring SSO for it. Verifying proves you control the domain, so no one else can point it at their identity provider.'
0 commit comments