message: actually show jwt verify error messages
diff: @@ -17,15 +17,6 @@ const parseBearerToken = R.compose(
  R.defaultTo('')
  );
  -const decodeToken = (token, secret) => {
  - try {
  - const decoded = jwt.verify(token, secret);
  - return decoded;
  - } catch (e) {
  - return null;
  - }
  -};
  -
  // Filtering is based on Whitelisting certain attributes of entire Entity groups
  // ... be vary that there is no consideration on subattribute entities (e.g. Slack), unless
  // they are also part of the resulting AttributeFilter object (e.g. Site, SiteGroup,..)
  @@ -195,27 +186,30 @@ const createAuthMiddleware = args => async (req, res, next) => {
  const token = parseBearerToken(req.get('Authorization'));
  if (token == null) {
  + logger.debug(`No Bearer Token`)
  res
  .status(401)
  .send({ errors: [{ message: 'Unauthorized - Bearer Token Required' }] });
  return;
  }
  + let decoded = '';
  try {
  - const decoded = decodeToken(token, jwtSecret);
  -
  - if (decoded == null) {
  + decoded = jwt.verify(token, jwtSecret);
  + } catch (e) {
  + logger.debug(`Error while decoding auth token: ${e.message}`);
  res.status(500).send({
  errors: [
  {
  - message: 'Error while decoding auth token',
  + message: `Error while decoding auth token: ${e.message}`,
  },
  ],
  });
  return;
  }
  - const { sshKey, role = 'none', aud } = decoded;
  + try {
  + const { aud } = decoded;
  if (jwtAudience && aud !== jwtAudience) {
  logger.info(`Invalid token with aud attribute: "${aud || ''}"`);
  