Quick Start

1. Deploy

git clone https://github.com/authworks/authworks
cd authworks
wrangler deploy

2. Create a Tenant

curl -X POST https://api.authworks.dev/tenants \
  -H "Authorization: Bearer $API_KEY" \
  -d '{"name": "acme-corp"}'

3. Register a User

const credential = await authworks.registerPasskey({
  tenantId: 'acme-corp',
  email: 'user@example.com'
});

4. Authenticate

const session = await authworks.authenticate({
  tenantId: 'acme-corp'
});

API Reference

See the API documentation for complete endpoint reference.

SDK

JavaScript SDK available on npm:

npm install @authworks/client