update user schema, webauthn bug fix

This commit is contained in:
2025-02-24 16:56:25 +05:30
parent dee35bec5b
commit fef560127a
8 changed files with 22 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ const userSchema = new mongoose.Schema({
type: String,
required: true,
},
passKeys: [],
passKeys: [new mongoose.Schema({}, { _id: false, strict: false })],
challenge: new mongoose.Schema(
{
value: String,