JWT

When a user sends a request with required parameters like username and password.

The application checks if username and password are valid. On validation, the application will create a token using a payload and a secret key.

It will then send the token back to the user to store and send it with each request. When user sends request with this token, application verifies validity with same secret key.

If the token is valid, the request is served, else the application will send an appropriate error message.

 

 

 

 

 

https://medium.freecodecamp.org/how-to-make-authentication-easier-with-json-web-token-cc15df3f2228

https://github.com/sudheeshshetty/JWT_Auth

posted @ 2019-06-24 21:11  闻目杉  阅读(102)  评论(0编辑  收藏  举报