Merge pull request #31979 from overleaf/kc-verify-domain-ownership

Add domain verification handling

GitOrigin-RevId: 97e53b93f8e2fa430637fde7d3187a5c54c850d6
This commit is contained in:
Jessica Lawshe
2026-04-08 10:39:12 -05:00
committed by Copybot
parent 470a05c23d
commit 73c259d55c

View File

@@ -20,6 +20,11 @@ export const DomainVerificationSchema = new Schema(
verificationAttemptCount: { type: Number, default: 0 },
groupId: Schema.Types.ObjectId,
lastVerificationAttemptAt: Date,
lastFailureReason: {
type: String,
enum: ['no_record', 'wrong_token', 'dns_error'],
default: null,
},
},
{
collection: 'domainVerifications',