'JWT token validation ASP.NET Core webapi

I am writing an application ASP.NET Core 6.0 Web API. It will receive a JWT token.

What is the best practice to validate Signature, TTL, issuer? Please advice.

public class Request
{
    [Required]
    [FromHeader]
    public string? UserAuthorization { get; set; }
}

[HttpGet()]
public IActionResult Get(Request req)
{
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source