Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 451 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 451 Bytes

clauth-server

Simple Auth server with JWT

Installation and start

npm install
npm start

Do not forget to provide RSA keys (see below).

Generating RSA key pair

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