What is JWT?
    1/4
    JWT is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted, as it is digitally signed.
    • It is a method to implement authorization in the application
    • It is a token that only the server can generate, and can contain a payload of data.
    • JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA.
    • Signed tokens can verify the integrity of the claims contained within it, while encrypted tokens hide those claims from other parties
    • A JWT payload can contain things like user ID so that when the client sends you a JWT, you can be sure that it is issued by you, and you can see to whom it was issued.