DEV Community

Discussion on: What the heck is JWT anyway?

Collapse
 
raofahim6886 profile image
raofahim6886

I need to secure my REST API in dot net core, for that i used JWT authentication on a simple REST API. After accomplishing JWT Authentication some questions pop up in my mind, it will be great if any one can help me out here. Following are the questions:

  1. How is JWT authentication more secure than basic authentication?
  2. What is the Criteria of Checking the validity of token?
  3. What is the Algorithm for token generation is JWT?
  4. Where/How is the token being compared/Verified?