essa linha de codigo gera o seguinte aviso no vscode:
var token = new JwtSecurityToken(expires: DateTime.Now.AddMinutes(10), claims, signingCredentials: signingCredentials);
A melhor sobrecarga de "JwtSecurityToken" não tem um parâmetro chamado "expires"CS1739
mas estou usando a msm versão do video para as libs, como corrigir isso?
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameWorkCore" Version="6.0.14" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.14">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.tools" Version="6.0.14">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="6.0.14" />
<PackageReference Include="MySql.EntityFrameworkCore" Version="8.0.0" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="6.0.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.0.27" />
</ItemGroup>
</Project>