diff --git a/Marechai.Server/Services/TokenService.cs b/Marechai.Server/Services/TokenService.cs index a326d321..c8cb8e16 100644 --- a/Marechai.Server/Services/TokenService.cs +++ b/Marechai.Server/Services/TokenService.cs @@ -64,7 +64,7 @@ public sealed class TokenService(IConfiguration configuration) { List claims = [ - new(JwtRegisteredClaimNames.Sub, "TokenForTheApiWithAuth"), + new(JwtRegisteredClaimNames.Sub, user.Id), new(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()), new(JwtRegisteredClaimNames.Iat, EpochTime.GetIntDate(DateTime.UtcNow).ToString(CultureInfo.InvariantCulture)),