mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 01:40:15 +01:00
Merge branch 'main' into feat/E2EE
This commit is contained in:
commit
40e59bc55c
206 changed files with 14792 additions and 3465 deletions
|
|
@ -43,6 +43,12 @@ const Session = mongoose.Schema({
|
|||
},
|
||||
});
|
||||
|
||||
const backupCodeSchema = mongoose.Schema({
|
||||
codeHash: { type: String, required: true },
|
||||
used: { type: Boolean, default: false },
|
||||
usedAt: { type: Date, default: null },
|
||||
});
|
||||
|
||||
/** @type {MongooseSchema<MongoUser>} */
|
||||
const userSchema = mongoose.Schema(
|
||||
{
|
||||
|
|
@ -123,7 +129,12 @@ const userSchema = mongoose.Schema(
|
|||
},
|
||||
plugins: {
|
||||
type: Array,
|
||||
default: [],
|
||||
},
|
||||
totpSecret: {
|
||||
type: String,
|
||||
},
|
||||
backupCodes: {
|
||||
type: [backupCodeSchema],
|
||||
},
|
||||
refreshToken: {
|
||||
type: [Session],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue