DEV Community

Discussion on: Asp Net Core 5 Rest API Authentication with JWT Step by Step

Collapse
 
mafeof profile image
María Orozco

Hello, thanks for the step by step, it is very clear. A question, as I enter or validate that the token is correct to be able to consult the methods since they give me error 401

Collapse
 
moe23 profile image
Mohamad Lawand

Thank you, for your comment did you check the expiry of the token

Collapse
 
mafe__fd386455aea20deea0e profile image
Mafe

Hello, I have the same case but my token is valid and also I have another problem, loading my web api from postman works perfect but to consume it from a url it gives me an error, sometimes a 404 error and 401 others