Relative Content

Tag Archive for c#asp.net-corejwtpostman.net-8.0

ASP.Net core WEB API : JWT error : Bearer error=”invalid_token”

Im working on an asp.net web API (.NET8) project where i have to use JWT tokens. But im facing 1 error no matter what I do. Im able to generate Tokens upon signin, but when im trying to use the generated token to call my weathercontroller, it shows “Bearer error=”invalid_token” ” and 401 unauthorized. I have searched everywhere, tried my best to understand what’s the issue..
This is my controller where im generating tokens.