C#C
C#2y ago
pdr

Problem with JWT, always returns Unauthorized

Here is my code. I am using Identity and generated a JWT token. Apparently, when I view the token in the JWT viewer, it is generated as expected. However, it always returns "unauthorized" when I try to access a route with the [Authorize] annotation.
image.png
image.png
image.png
image.png
Was this page helpful?