Skip to content

Commit

Permalink
fix: nodejs error during logout [#292]
Browse files Browse the repository at this point in the history
  • Loading branch information
vitshev committed Jan 22, 2024
1 parent ed3e93a commit 3e64d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/server/controllers/#.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export async function handleLogout(req: Request, res: Response) {
return throwAuthDisabled();
}
res.setHeader('set-cookie', `${YT_CYPRESS_COOKIE_NAME}=deleted; Path=/; Max-Age=0;`);
res.sendStatus(401).send('Logout');
res.status(401).send('Logout');
} catch (e: any) {
sendAndLogError(req.ctx, res, 500, e);
}
Expand Down

0 comments on commit 3e64d2c

Please # to comment.