mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
chore: add back BrowserOp, make changes to CI env (#1088)
* chore: add back BrowserOp * chore: make CI env and not DEV env generate refresh tokens every time * chore: make 'CI' env var captilization uniform across the app * chore: change NODE_ENV for playwright to
This commit is contained in:
parent
4073b7d05d
commit
70590251d1
9 changed files with 26 additions and 8 deletions
|
|
@ -90,7 +90,7 @@ const refreshController = async (req, res) => {
|
|||
return res.status(401).redirect('/login');
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
if (process.env.NODE_ENV === 'CI') {
|
||||
const token = await setAuthTokens(userId, res);
|
||||
const userObj = user.toJSON();
|
||||
return res.status(200).send({ token, user: userObj });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue