Commit graph

3 commits

Author SHA1 Message Date
Ivan R. 77ddb3747b
Refactor API handlers 2023-11-02 21:50:36 +05:00
Ivan R. 2c08171c7a
Start using JWT tokens
I thought this was a good idea.
Pros: fewer database calls.
Cons: there is no way to revoke the token (except for changing the secret key).

I rewrote the authorization as a middleware. Request handlers no longer need to validate the user.
2023-07-22 13:42:43 +05:00
Ivan R. 16cd7aa635
Initial commit 2023-04-06 10:36:11 +05:00