Return a meaningful error

This commit is contained in:
Wyatt Johnson
2017-05-10 10:29:20 -06:00
parent 17b9e43c14
commit f8b207e563
+1 -1
View File
@@ -56,7 +56,7 @@ const HandleAuthPopupCallback = (req, res, next) => (err, user) => {
}
if (!user) {
return res.render('auth-callback', {auth: JSON.stringify({err, data: null})});
return res.render('auth-callback', {auth: JSON.stringify({err: errors.ErrNotAuthorized, data: null})});
}
// Generate the token to re-issue to the frontend.