Skip to content

Commit

Permalink
Add superuser field to JWT token
Browse files Browse the repository at this point in the history
  • Loading branch information
Codycody31 committed Feb 1, 2024
1 parent d08b0f3 commit 2e632c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ async function login(req, res) {
const token = jwt.sign(
{
sub: user.id,
superuser: user.superuser,
},
config.jwt.secret,
{
Expand Down

0 comments on commit 2e632c6

Please sign in to comment.