✅ JWT question
I can generate a token fine. However when I use the token, it refuses to work.
If anyone is kind enough to look into https://github.com/atabegruslan/AspNetJwt and tell me what I missed, many thanks.
I am beginner so the code isn't complicated.
I know that [Authorize] is causing the fail. But Im pretty sure that it has to be there. https://github.com/atabegruslan/AspNetJwt/blob/master/NetJwt/Controllers/HomeController.cs#L6
4 Replies
"refuses to work" isn't an error i've ever seen
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
I finally found the problem.
app.UseAuthentication();
was forgotten in Program.cs
But seriously, whoever said "refuses to work" isn't an error i've ever seen
. If you are going to help people, please dont say such unhelpful thingsi said it, and without detail there's nothing else that can be said