© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
3 replies
TheUnquiet

Jwt authorization returning 401 every time

I'm trying to add authentication & authorization to my app using jwt tokens, even after generating the token and logging in I still get a 401 Unauthorized error in swagger, I have 0 clue what's happening.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ jwt authentication always returns 401
C#CC# / help
3y ago
DotNet Core 8: JWT authorization problem
C#CC# / help
2y ago
✅ JWT Authorization Issue with .NET Core Web API
C#CC# / help
3y ago
[Authorize] Always Returns 401 Even With Valid-Looking JWT Token
C#CC# / help
3mo ago