mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
fix(auth/refresh): send 403 res for invalid token to properly invalidate session (#1068)
This commit is contained in:
parent
377f2c7c19
commit
ddf56db316
2 changed files with 12 additions and 11 deletions
|
@ -112,7 +112,9 @@ const refreshController = async (req, res) => {
|
|||
res.status(401).send('Refresh token expired or not found for this user');
|
||||
}
|
||||
} catch (err) {
|
||||
res.status(401).send('Invalid refresh token');
|
||||
console.error('Refresh token error', refreshToken);
|
||||
console.error(err);
|
||||
res.status(403).send('Invalid refresh token');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue