What is JWT
As per JWT.io
JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
It is a tokenization format in which we pass our credentials and content in a single format wrapped inside token.
Parts of JWT
- Contains info of Hashing methodology we have used to encode our message
- Algorithm and Token Type info
- Data/Message to be transferred
- Encoded Header and Payload then merge them along with a secret
To access the full working code sample, click here