What is a JWT?
A JWT is a signed JSON object with a specific structure. Our Flask app will sign the JWTs with the secret key, proving that it generated them. The Flask app generates a JWT when a user logs in (with their username and password). In the JWT, we’ll store the user ID. The client then stores the …