general chat

This commit is contained in:
gprunet
2026-01-12 17:27:07 +01:00
parent e053d0faa7
commit f79e6bd9fc
7 changed files with 128 additions and 7 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ async function login(username, password)
const token = jwt.sign
(
{userId: user.id},
{
userId: user.id,
username: username
},
process.env.JWT_SECRET,
{expiresIn: '1h'}
);