mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
🚀 refactor: Remove Local Login Redundancies (#3002)
This commit is contained in:
parent
35f8053f45
commit
1da92111aa
4 changed files with 23 additions and 30 deletions
|
|
@ -11,7 +11,7 @@ const jwtLogin = async () =>
|
|||
},
|
||||
async (payload, done) => {
|
||||
try {
|
||||
const user = await getUserById(payload?.id);
|
||||
const user = await getUserById(payload?.id, '-password -__v');
|
||||
user.id = user._id.toString();
|
||||
if (user) {
|
||||
done(null, user);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue