From 2e632c6d5780af0a07a30c7cdc036df090da1300 Mon Sep 17 00:00:00 2001 From: Vahn Gomes Date: Thu, 1 Feb 2024 13:19:03 -0500 Subject: [PATCH] Add superuser field to JWT token --- server/controllers/auth.js | 1 + 1 file changed, 1 insertion(+) 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, {