How to replace AddJwtBearer extension in .NET Core 3.0 : <p>I have the following code which compiles and works in .NET Core 2.2:</p>

<pre><code>  byte[] key = Encoding.ASCII.GetBytes(Constants.JWT_SECRET); 
        services.AddAuthentication(x =&gt;
        {
            x.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
            x.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
        })
        .AddJwtBearer(x =&gt;
        {
            x.RequireHttpsMetadata = false;
            x.SaveToken = true;
            x.TokenValidationParameters = new TokenValidationParameters
            {
                ValidateIssuerSigningKey = true,
                IssuerSigningKey = new SymmetricSecurityKey(key),
                ValidateIssuer = false,
                ValidateAudience = false
            };
        });
</code></pre>

<p>In .NET Core 3.0 I am getting the error:</p>

<blockquote>
  <p>Error CS1061  'AuthenticationBuilder' does not contain a definition for
  'AddJwtBearer' and no accessible extension method 'AddJwtBearer'
  accepting a first argument of type 'AuthenticationBuilder' could be
  found (are you missing a using directive or an assembly reference?)</p>
</blockquote>

<p>when I look at the MSFT documentation:
<a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.jwtbearerextensions.addjwtbearer?view=aspnetcore-2.2" rel="noreferrer">https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.jwtbearerextensions.addjwtbearer?view=aspnetcore-2.2</a></p>

<p>and try to got to version 3.0,  It seems that this is the last version where this is defined.  How do I migrate AddJwtBearer to Core 3.0?</p>
