diff --git a/server/controllers/auth.js b/server/controllers/auth.js index 1aa3153..893b670 100644 --- a/server/controllers/auth.js +++ b/server/controllers/auth.js @@ -573,6 +573,7 @@ async function login(req, res) { const token = jwt.sign( { sub: user.id, + superuser: user.superuser, }, config.jwt.secret, {