Updated profile and post capabilities

This commit is contained in:
Sven laptop
2026-07-29 22:35:36 +02:00
parent eaeb0a29bc
commit 494b583cbc
9 changed files with 485 additions and 34 deletions
+6
View File
@@ -35,6 +35,12 @@ async function login(req, res) {
}
const { token, expiresAt } = signToken(rows[0].id);
res.cookie('fc_session_token', token, {
httpOnly: true,
secure: true,
sameSite: 'Strict',
path: '/',
});
res.status(200).json({ id: rows[0].id, token, expires_at: expiresAt });
}
catch (err) {