With the release of Go 1.22, the standard library now has
all the necessary functions that allow us to abandon Gin.
I hope this rewrite will lower the entry barrier for new developers.
As a nice bonus, the size of the program has decreased from 20 to 15.4 MB.
To solve issue #81, request logging has been improved.
Now all errors are displayed in the logs.
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.