Make hasScopes take an array

This commit is contained in:
Girish Ramakrishnan
2018-06-17 19:54:05 -07:00
parent 682f7a710c
commit ad6bc191f9
6 changed files with 30 additions and 32 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function get(req, res, next) {
username: req.user.username,
email: req.user.email,
fallbackEmail: req.user.fallbackEmail,
tokenScope: req.authInfo.authorizedScope,
tokenScope: req.authInfo.authorizedScopes,
displayName: req.user.displayName,
twoFactorAuthenticationEnabled: req.user.twoFactorAuthenticationEnabled
}));