Update adminService.js

This commit is contained in:
Gilles Lazures 2026-01-18 21:04:08 +01:00
parent 0e0f176e50
commit a31be145cc

View File

@ -84,7 +84,7 @@ async function loginAdmin(username, password) {
const token = jwt.sign(
{ id: admin.id, username: admin.username, type: "admin" },
ADMIN_JWT_SECRET,
{ expiresIn: "8h", subject: admin.id, issuer: "Yggdrasil" }
{ expiresIn: "8h", subject: admin.id.toString(), issuer: "Yggdrasil" }
)
return { token }