update webauthn flow

This commit is contained in:
2025-02-27 16:34:20 +05:30
parent 0b9f941cb3
commit 63bcc4bafd
5 changed files with 45 additions and 45 deletions

View File

@@ -36,7 +36,7 @@ const userSchema = new mongoose.Schema({
},
{ _id: false }
),
otp: new mongoose.Schema(
token: new mongoose.Schema(
{
value: String,
expiry: Date,
@@ -61,7 +61,7 @@ const userCore = {
invalid_type_error: "Email must be a valid string",
})
.email(),
avatar: z.string().url().optional(),
avatar: z.string().optional(),
role: z.enum(roles),
orgId: z.string().optional(),
};