Update adminService.js
This commit is contained in:
parent
0e0f176e50
commit
a31be145cc
@ -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 }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user