auth.js
function awaitFunction(fn) {
  return (req, res, next) => {
    Promise.resolve(fn(req, res, next)).catch(next);
  };
}
function awaitFunction(fn) {
  return (req, res, next) => {
    Promise.resolve(fn(req, res, next)).catch(next);
  };
}
function awaitFunction ( fn ) { return ( req , res , next ) => { Promise . resolve ( fn ( req , res , next ) ) . catch ( next ) ; } ; }
Turn async function into regular function
@param  {Function} fn
@return {Function}
Turn async function into regular function