Skip to content

Commit

Permalink
DN-4: Return user's role as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 15, 2024
1 parent a38e3b2 commit 978a30b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/routes/auth/user-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ router.get(
username: user.username,
email: user.email,
isVerified: user.isVerified,
profilePhoto: user.profilePhoto
profilePhoto: user.profilePhoto,
role: user.role
}
});
} catch (error) {
Expand Down

0 comments on commit 978a30b

Please sign in to comment.