title: Checking multiple inputs when using await in JavaScript
body: <p>This is how my code is set up</p>
  
  <pre><code>async function authorizer(event, context, lambdaCallback) {
    const admin_lock = process.env.AdminLock;
    const b_authorizer = new b_Authorizer():
  
    const username = process.env.Username;
  
    await b_authorizer.isAuthorized(username, admin_lock)
      .then(isAuthorized) =&gt; {
        if (isAuthorized) {
          getDefaultPage(event, context, lambdaCallback);
        } else {
          return buildErrorResponse(....)
        }
        }
    }
  </code></pre>
  
  <p>The code works as of now. It basically checks if someone is authorized, using their username and checking the admin_lock. The thing is I also want to add a general_user_lock. And if the admin_lock results in a reject, I want to check the general_user_lock, before building the error response.</p>
  
  <p>How would I go about doing this? Do I have to create another await in which the parameter is general_user_lock instead of admin_lock?</p>