title: DocuSign error: Open the following URL in your browser to grant consent to the application
body: <p>When I try ti authenticate through docusign api client:</p>
  <pre><code>dsApi = new docusign.ApiClient();
  dsApi.setOAuthBasePath(process.env.dsOauthServer.replace('https://', '')); // it should be domain only.
  let rsaKey = fs.readFileSync(process.env.privateKeyLocation);
  const results = await dsApi.requestJWTUserToken(
          process.env.dsJWTClientId,
          process.env.impersonatedUserGuid,
          SCOPES,
          rsaKey,
          jwtLifeSec
        );
  </code></pre>
  <p>I get an error: <em>&quot;Error: Open the following URL in your browser to grant consent to the application: <a href="https://account-d.docusign.com/oauth/auth?response_type=code&amp;scope=signature+impersonation&amp;client_id=%7Bclient_id%7D&amp;redirect_uri=https://developers.docusign.com/platform/auth/consent%22" rel="nofollow noreferrer">https://account-d.docusign.com/oauth/auth?response_type=code&amp;scope=signature+impersonation&amp;client_id={client_id}&amp;redirect_uri=https://developers.docusign.com/platform/auth/consent&quot;</a></em></p>
  <p>If I open the url, I see this:</p>
  <p><a href="https://i.stack.imgur.com/u6lYB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u6lYB.png" alt="enter image description here" /></a></p>
  <p>edit: this is what I do step by step:</p>
  <ol>
  <li><p>Navigate to <strong>Apps and Keys</strong> and click on <strong>Quickstart</strong> to generate a sample project.</p>
  </li>
  <li><p>Rename the project name to <code>Quickstart App-3</code></p>
  </li>
  <li><p>Pick Node.js project</p>
  </li>
  <li><p>Select project type -&gt; <strong>Multiple code examples</strong></p>
  </li>
  <li><p>Download the project</p>
  </li>
  </ol>
  <p>If I open my quickstart's app details, these are the redirects urls:</p>
  <pre><code>http://localhost:8080/authorization-code/callback | http://localhost:8080/ds/callback | https://localhost:9090/ds/callback | https://localhost:8000/ds/callback | https://localhost:44333/ds/callback | https://localhost:44333/ds/login?authType=JWT | https://localhost:44333/ds/login?authType | https://developers.docusign.com/platform/auth/consent | http://localhost:8080/login&amp;type=acg | http://localhost:8080/login&amp;type=jwt | http://localhost:3000/ds/callback | https://localhost:3000/ds/callback | http://localhost:8080/public/index.php?page=ds_callback | http://127.0.0.1:3000/ds/callback | http://localhost:3000/auth/docusign/callback | https://localhost:3000/auth/docusign/callback
  </code></pre>
  <ol start="6">
  <li><p>Unzip the project archive and open it in VS Code. Navigate with terminal to <code>jwt_console_project</code> folder and install npm packages by <code>npm install</code>.</p>
  </li>
  <li><p>Copy <strong>private.key</strong> file from config folder to <strong>jwt_console_project</strong> folder</p>
  </li>
  <li><p>Rename <strong>jwtConfig.example.json</strong> file to <strong>jwtConfig.json</strong></p>
  </li>
  <li><p>Edit <strong>jwtConfig.json</strong> file and set <code>dsJWTClientId</code> and <code>impersonatedUserGuid</code> variables. Environment variables look like this:</p>
  </li>
  </ol>
  <p><a href="https://i.stack.imgur.com/tpApl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tpApl.png" alt="enter image description here" /></a></p>
  <ol start="10">
  <li>Run project by <code>npm run start</code> and I get the error.</li>
  </ol>