Simple Auth server with JWT
npm install
npm startDo not forget to provide RSA keys (see below).
JWT tokens are signed with the asymmetric RS256 algorithm.
We need to provide an RSA key pair for that:
openssl genpkey -algorithm RSA -out keys/private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -pubout -in keys/private.pem -out keys/public.pem