diff --git a/MangoAPI.Application/Services/AppSettingsService.cs b/MangoAPI.Application/Services/AppSettingsService.cs index 164d266f..91defe08 100644 --- a/MangoAPI.Application/Services/AppSettingsService.cs +++ b/MangoAPI.Application/Services/AppSettingsService.cs @@ -6,9 +6,12 @@ namespace MangoAPI.Application.Services; public static class AppSettingsService { private const string AppSettingsPath = "../../../../MangoAPI.Presentation/appsettings.json"; + private const string _appSettingsPath = "../../../../MangoAPI.Presentation/appsettings.json"; public static string GetAppSettingsPath() { + var a = _appSettingsPath; + Console.Write(a); var path = Path.Combine(AppContext.BaseDirectory, AppSettingsPath); return path; } diff --git a/MangoAPI.Application/Services/JwtGenerator.cs b/MangoAPI.Application/Services/JwtGenerator.cs index 837ad7f7..adb44875 100644 --- a/MangoAPI.Application/Services/JwtGenerator.cs +++ b/MangoAPI.Application/Services/JwtGenerator.cs @@ -31,8 +31,8 @@ private string GenerateJwtToken(UserEntity userEntity, int lifetimeMinutes) { var claims = new List { - new Claim(JwtRegisteredClaimNames.Jti, userEntity.Id.ToString()), - new Claim(JwtRegisteredClaimNames.Name, userEntity.Username), + new(JwtRegisteredClaimNames.Jti, userEntity.Id.ToString()), + new(JwtRegisteredClaimNames.Name, userEntity.Username), }; var credentials = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);