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:
Danny Avila 2023-10-22 13:50:25 -04:00 committed by GitHub
parent 4073b7d05d
commit 70590251d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 26 additions and 8 deletions

View file

@ -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 });