aspnet-core-jwt-authentication-api
aspnet-core-jwt-authentication-api copied to clipboard
Error: Unauthorized throw error.
I have try same code but facing Unauthorized error.
I have using swagger. i have attach snap and also code. so can you find out problem.
what is the issue.
aspnet-core-jwt-authentication-api-master.zip
request header?
Yes I have added request in header.
On Tue, 8 Oct, 2019, 4:58 PM zicjin, [email protected] wrote:
request header?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cornflourblue/aspnet-core-jwt-authentication-api/issues/5?email_source=notifications&email_token=ADU4BDM6CYDHK5MTSKBUBUDQNRVHRA5CNFSM4I3MTRT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAT2UMY#issuecomment-539470387, or mute the thread https://github.com/notifications/unsubscribe-auth/ADU4BDMT6NQ6K2W5EL2TWYTQNRVHRANCNFSM4I3MTRTQ .
You need add the JWT Token to your request. How do you generate it?
Do you use the authenticate method to generate the token first? It's necessary.