|
// Here we need to check if this is an Auth0 success object or an Auth0 error object |
|
if(tokenObj.error){ |
|
console.error(tokenObj.error_description) |
|
res.status(500).send(tokenObj.error_description) |
|
} |
|
else{ |
|
res.status(200).send(tokenObj) |
|
} |
This conditional is overbuilt
rerum_server_nodejs/auth/index.js
Lines 84 to 91 in 2f43bb8
This conditional is overbuilt