This app is a local auth playground for the library in the parent repo.
It does not consume a published package. Vite aliases @ouim/logto-authkit directly to ../src, so changes you make to the library are reflected here immediately.
The frontend example lives in src/, and the matching backend-verification sample lives in server/auth-server.mjs.
cd example_app
npm install
copy .env.example .env.localFill in example_app/.env.local with your Logto tenant values.
Required:
VITE_LOGTO_ENDPOINTVITE_LOGTO_APP_ID
Optional:
VITE_LOGTO_RESOURCESVITE_LOGTO_SCOPES
For the backend verification sample, set:
LOGTO_URLLOGTO_AUDIENCE
npm run devUse http://localhost:3002.
Add this redirect URI in Logto:
http://localhost:3002/callback
Keep a real /signin route and /callback route. The example app already handles both and exposes redirect sign-in, popup sign-in, refresh, and sign-out actions for quick manual testing.
For the backend side, see server/README.md.