brouberol/5esheets

Define a login API

Closed this issue · 0 comments

The login API will take a username/password, and return a JWT with a given TTL. Any subsequent API calls will need to use the JWT has a bearer token.

Actually checking the presence of the JWT on the API calls will be done later.

We should rely on https://fastapi.tiangolo.com/lo/tutorial/security/oauth2-jwt/