@@ -6,9 +6,16 @@ class verifyGET extends Route {
}
run(req, res, user) {
+ const returnUser = {
+ id: user.id,
+ username: user.username,
+ apiKey: user.apiKey,
+ isAdmin: user.isAdmin
+ };
+
return res.json({
message: 'Successfully verified token',
- user
+ user: returnUser
});