function figureOutWhoUserIs(req) {
      // just stubbing this out here
      var username = req.query.username
      if (username === 'skroob') {
        return {
          username: username,
          email: 'pres@skroob.com'
        }
      }
      throw new HttpErrors.Unauthorized()
    }
function figureOutWhoUserIs(req) {
      
      var username = req.query.username
      if (username === 'skroob') {
        return {
          username: username,
          email: 'pres@skroob.com'
        }
      }
      throw new HttpErrors.Unauthorized()
    }
function figureOutWhoUserIs ( req ) { // just stubbing this out here var username = req . query . username if ( username === 'skroob' ) { return { username : username , email : 'pres@skroob.com' } } throw new HttpErrors . Unauthorized ( ) }
post-authentication-customAuthHeader
post - authentication - customAuthHeader