Skip to content

Repository files navigation

World ID Web Authenticator

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.

🚀 Quick start

git clone https://github.com/worldcoin/web-authenticator.git
cd web-authenticator
bun install --frozen-lockfile
bun run dev

Open 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

Repository Structure

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.

🧑‍💻 Developing locally

Testing

bun run test
bun x playwright install chromium webkit # First run only
bun run test:browser

Static checks:

bun run lint
bun run typecheck

Building and running

bun run build
bun run start

🚢 Deployment

VITE_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.

🔗 Related projects

📄 Documentation

Releases

Packages

Used by

Contributors

Languages