C
C#9mo ago
atabegruslan

✅ 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
No description
No description
4 Replies
Jimmacle
Jimmacle9mo ago
"refuses to work" isn't an error i've ever seen
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
atabegruslan
atabegruslanOP9mo ago
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 things
Jimmacle
Jimmacle9mo ago
i said it, and without detail there's nothing else that can be said
Want results from more Discord servers?
Add your server