title: Auto login to website using Google Apps Script
body: <p>I want to auto-login on the website <a href="https://www.shiftboard.com/log-in/" rel="nofollow noreferrer">https://www.shiftboard.com/log-in/</a> using Google apps script.
  Here is my google apps script code</p>
  
  <pre><code>function login() {
    var payload =
    {
       "auth_user" : "",
       "auth_password" : "",
    };
    var options =
    {
       "method" : "post",
       "payload" : payload,
       "followRedirects" : false
    };
    var login = UrlFetchApp.fetch("https://www.shiftboard.com/log-in/" , options);
    var sessionDetails = login.getAllHeaders()
    Logger.log(sessionDetails)
  }
  </code></pre>
  
  <p>In logger, Output is like that</p>
  
  <h2><a href="https://i.stack.imgur.com/bDqXP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bDqXP.png" alt="enter image description here"></a></h2>
  
  <p>I did not get any cookies</p>