C#private string GenerateJwtToken(LogInAndSignUp user){ var claims = new[] { new Claim(JwtRegisteredClaimNames.Sub, user.Email), new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()) }; var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_config["JwtSettings:Key"]!)); // Use your static key var creds = new SigningCredentials(key, SecurityAlgorithms.HmacSha256); var token = new JwtSecurityToken( issuer: _config["JwtSettings:Issuer"], audience: _config["JwtSettings:Audience"], claims: claims, expires: DateTime.Now.AddMinutes(30), // Set token expiration time signingCredentials: creds); // Debug output to check the token Console.WriteLine($"Generated Token: {new JwtSecurityTokenHandler().WriteToken(token)}"); return new JwtSecurityTokenHandler().WriteToken(token);}