title: Slack oauth.access API returns bad_redirect_uri without requesting a redirect_uri
body: <p>Trying to setup oAuth with slack for custom app and slack's API is returning <code>{"ok":false,"error":"bad_redirect_uri"}</code>. I'm not setting a redirect for oauth.access, even if I do set one I still get same error.</p>
  
  <p>The app is configured to allow localhost and public domain.</p>
  
  <p>This is the request I am doing</p>
  
  <pre><code>const res = await request({
    method: 'post',
    uri: 'https://slack.com/api/oauth.access',
    auth: {
      user: process.env.SLACK_CLIENT_ID,
      pass: process.env.SLACK_CLIENT_SECRET,
    },
    form: {
      code,
      // redirect_uri: 'http://localhost:3100',
    },
  });
  </code></pre>
  
  <p>To kick off auth flow I am calling this URL from browser:</p>
  
  <p><code>https://slack.com/oauth/authorize?client_id=XXX&amp;scope=commands,im:read,im:write&amp;redirect_uri=http://localhost:3100/integrations/slack.request&amp;state=ID</code></p>