I had the same issue as you and referred to this article: Setting up Swagger (ASP.NET Core) using the Authorization headers (Bearer)
SwaggerGen enables a button called Authorize to exist in swagger docs. Once you set the token you can read it in code by putting this line in a controller action result.
var authToken = this.HttpContext.Request.Headers["Authorization"].ToString();