This repository is intended as an example to do authentication using JWT
Things to do :
- You have to install Consul Server first from here
- Run the Consul agent from here
consul agent -dev
- Consul Command
Before authorized every request, the request has to check whether the token still valid by checking the registered ID in Consul KV Database.
If the token expired, then the registered ID has to be removed from KV database References