1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-23 10:52:30 +01:00

alright signed cookies aren't worth it, nice

This commit is contained in:
Madeline 2022-06-27 16:13:40 +10:00
parent 7f121f243c
commit de87ffc25e
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -104,7 +104,7 @@ app.get("/oauth/:type", async (req, res) => {
const token = await generateToken(user.id);
res.cookie("token", token, { signed: true });
res.cookie("token", token);
res.sendFile(path.join(__dirname, "../public/login.html"));
});