https://lilanga.github.io/posts/token-based-authorisation-with-jwt/
Token based authorisation with JSON Web Tokens (JWT) - Bitsfactory