mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 04:43:36 +00:00
fix: add host issue, screen flickering issue, 2fa issue, open terminal session icon missing issue
This commit is contained in:
@@ -1145,7 +1145,7 @@ router.get("/oidc/callback", async (req, res) => {
|
||||
? 30 * 24 * 60 * 60 * 1000
|
||||
: 7 * 24 * 60 * 60 * 1000;
|
||||
|
||||
res.clearCookie("jwt", authManager.getSecureCookieOptions(req));
|
||||
res.clearCookie("jwt", authManager.getClearCookieOptions(req));
|
||||
|
||||
return res
|
||||
.cookie("jwt", token, authManager.getSecureCookieOptions(req, maxAge))
|
||||
@@ -1439,7 +1439,7 @@ router.post("/logout", authenticateJWT, async (req, res) => {
|
||||
}
|
||||
|
||||
return res
|
||||
.clearCookie("jwt", authManager.getSecureCookieOptions(req))
|
||||
.clearCookie("jwt", authManager.getClearCookieOptions(req))
|
||||
.json({ success: true, message: "Logged out successfully" });
|
||||
} catch (err) {
|
||||
authLogger.error("Logout failed", err);
|
||||
|
||||
Reference in New Issue
Block a user