update webauthn flow
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user