Authenticating a Flask API Using JSON Web Tokens
In this video, I show you how to use JSON Web Tokens (JWT) to authenticate users of your API. First, a user will have to login using a specially created route which returns a token. Once a token is generated, it can be sent along with the rest of the request to other parts of your API to verify the user’s identity without the user having to provide any additional login information. It’s an easy way to verify the identity of users without making them go through the extra step of logging in every time they make a request.
Source: Pretty Printed (YouTube)