# sso-core This is a SvelteKit-powered authentication service. ## Set up 1. Install dependenices - `npm install`. 2. Configure the environment - `cp .env.example .env`. 3. Generate secrets and stuff: 1. Session secret - `node -e 'console.log(require("crypto").randomBytes(16).toString("hex"))'`. 2. Challenge secret - `node -e 'console.log(require("crypto").randomBytes(32).toString("hex"))'`. 3. Generate JWT keys in the `private` directory - `openssl genpkey -out jwt.private.pem -algorithm RSA -pkeyopt rsa_keygen_bits:2048`. 4. Also make the public key - `openssl rsa -in jwt.private.pem -pubout -outform PEM -out jwt.public.pem`. 4. Build the application - `npm run build`. 5. Run the application - `node -r dotenv/config build`.