diff --git a/backend/src/api/auth.ts b/backend/src/api/auth.ts index 86fcfc4b..a6a18ddf 100644 --- a/backend/src/api/auth.ts +++ b/backend/src/api/auth.ts @@ -116,7 +116,7 @@ export function initAuth(router: express.Router) { (req: Request, res: Response) => { res.cookie("redir", `${env.DASHBOARD_URL}/new/login-callback/`, { httpOnly: true }); - res.sendStatus(200); + return res.sendStatus(200); }, passport.authenticate("oauth2"), );