This is a starter repository about how to use Clerk.dev to enforce SSO across multiple SPAs and APIs.
The repo contains two ExpressJS APIs and two SPAs bootstrapped with CRA. Each SPA is using both APIs to fetch data.
cd backend
npm i
npm run start:jazz
npm run start:rock
cd frontend/jazz
npm i
npm start
cd frontend/rock
npm i
npm start
- Go to localhost:3000 (Jazz SPA)
- Sign up or sign in with a user
- Notice that both API requests are authenticated
- Go to localhost:3001 (Rock SPA)
- Notice that you are automatically signed in with the user from step 2
- Sign out
- Notice that both SPAs sign out (SLO)