add webauthn routes
This commit is contained in:
@@ -28,6 +28,21 @@ const userSchema = new mongoose.Schema({
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
passKeys: [],
|
||||
challenge: new mongoose.Schema(
|
||||
{
|
||||
value: String,
|
||||
expiry: Date,
|
||||
},
|
||||
{ _id: false }
|
||||
),
|
||||
otp: new mongoose.Schema(
|
||||
{
|
||||
value: String,
|
||||
expiry: Date,
|
||||
},
|
||||
{ _id: false }
|
||||
),
|
||||
createdAt: Date,
|
||||
createdBy: mongoose.Types.ObjectId,
|
||||
lastLogin: Date,
|
||||
|
||||
Reference in New Issue
Block a user