A standalone web authenticator for accessing a World ID wallet with a passkey and handling requests from apps.
Requires Git, Bun 1.4.2 and a browser with WebAuthn PRF support.
git clone https://github.com/worldcoin/web-authenticator.git
cd web-authenticator
bun install --frozen-lockfile
bun run devOpen localhost:4173. Local development uses staging by default.
By default, IDKit requests route to <base_url>/verify. To test the full IDKit request flow, please set the override_connector_base_url field in your IDKit request builder to http://localhost:4173/verify to test locally
web/ React UI, browser logic and public assets
api/ Bun HTTP server and API routes
packages/ Shared contracts and browser admission policy
tests/ Browser tests and integration fixtures
web/ and api/ own their dependencies. Bun serves both from one origin.
bun run test
bun x playwright install chromium webkit # First run only
bun run test:browserStatic checks:
bun run lint
bun run typecheckbun run build
bun run startVITE_APP_ENV configures the browser build and APP_ENV configures the API/Worker.
Both accept staging or production; the browser origin must match the selected environment.
- Staging: When configured, the staging workflow tests and deploys
mainto authenticator.toolsforhumanity.dev. - Production: The production workflow promotes a staging-reviewed
maincommit to web.world.org after CI and environment approval.