mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
* added PassKey authentication. * fixed issue with test :) * Delete client/src/components/Auth/AuthLayout.tsx * fix: conflicted issue
22 lines
No EOL
350 B
JavaScript
22 lines
No EOL
350 B
JavaScript
const mongoose = require('mongoose');
|
|
|
|
const challengeSchema = mongoose.Schema({
|
|
userId: {
|
|
type: String,
|
|
required: true,
|
|
unique: true,
|
|
},
|
|
challenge: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
createdAt: {
|
|
type: Date,
|
|
default: Date.now,
|
|
index: {
|
|
expires: '5m',
|
|
},
|
|
},
|
|
});
|
|
|
|
module.exports = challengeSchema; |