title: .Net Core 3.1 SignalR Client - How to add the JWT Token string to SignalR connection configuration?
body: <p>I am using the SignalR .net core client in my project with JWT Tokens.</p>
  <p>In the sample code below, the string variable &quot;tokenString&quot; has already been configured as an actual token and therefore i don't need to call upon an external method to create the token, that part has already been done before I reach this method. Using debug, and also testing the &quot;tokenString&quot; value on JWT website, I know the token is working, its just the fact I dont know how to use the ready made token in the SignalR connection method.</p>
  <p>How do I configure the SignalR client connection to use this tokenString?</p>
  <pre><code>localConConnection = new HubConnectionBuilder()
                  .WithUrl(&quot;https://localhost:44372/LocalConnectorHub&quot;, options =&gt; 
                  {
                      options.AccessTokenProvider = () =&gt; Task.FromResult(tokenString); // Not working
                      // Need a solution like this: options.Token = tokenString
                  })
                  .WithAutomaticReconnect()
                  .Build();
  </code></pre>