Spaces:
Running
Running
remove token through api
Browse files
server.js
CHANGED
@@ -86,7 +86,11 @@ app.get("/auth/login", async (req, res) => {
|
|
86 |
return res.redirect(302, "/");
|
87 |
});
|
88 |
app.get("/auth/logout", (req, res) => {
|
89 |
-
res.clearCookie("hf_token"
|
|
|
|
|
|
|
|
|
90 |
return res.redirect(302, "/");
|
91 |
});
|
92 |
|
|
|
86 |
return res.redirect(302, "/");
|
87 |
});
|
88 |
app.get("/auth/logout", (req, res) => {
|
89 |
+
res.clearCookie("hf_token", {
|
90 |
+
httpOnly: false,
|
91 |
+
secure: true,
|
92 |
+
sameSite: "none",
|
93 |
+
});
|
94 |
return res.redirect(302, "/");
|
95 |
});
|
96 |
|