title: How can I use dynamic redirect urls in slack oAuth redirect url?
body: <p>I have a web page that requires a document id. I used slack authentication for the authentication. (because the web page is requesting from the slack channel). Slack requires redirect URL. So how can I put this dynamic redirect URL in slack?</p>
  
  <p>The URL is => <a href="http://localhost:3000/document/" rel="nofollow noreferrer">http://localhost:3000/document/</a>
  I tried to put it like this => <a href="http://localhost:3000/document/" rel="nofollow noreferrer">http://localhost:3000/document/</a>&lt;>
  but it did not work.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>router.get('/res', (req, res) =&gt;{
      console.log(req.query.code);
      var url = 'https://slack.com/api/oauth.access?code='+req.query.code+'&amp;client_id=&lt;the client_id&gt;&amp;client_secret=&lt;client_secret&gt;&amp;redirect_uri=http://localhost:3000/document/25/';
  
      axios.get(url)
          .then(response =&gt; {
              res.send(response.data);
  
          })
          .catch(error =&gt; {
              console.log('error');
          });
  });
  
  </code></pre>
  
  <p>I want to get 25th document after the authentication in the code. This 25 value is the dynamic value.</p>
  
  <p>this was what I tried: <a href="http://localhost:3000/document/" rel="nofollow noreferrer">http://localhost:3000/document/</a>&lt;></p>
  
  <p><a href="https://i.stack.imgur.com/M4dw7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M4dw7.png" alt="enter image description here"></a></p>