/verify page to your Nuxt app. The Authbound module adds the server routes for you, so there’s no backend code to write.
With
@authbound/nuxt 0.5.0, this quickstart can’t finish a verification on the test API. The module’s browser side has no setting for the API URL, so the page checks status at the SDK’s default host, which doesn’t know verifications created with test keys. Until the module takes the API URL, use the Vue quickstart, which pairs a Vue page with a small Express server.Before you start
- A Nuxt 4 app.
- Test keys from the Authbound dashboard. See Get API keys.
- A wallet that can answer your policy. Test with a wallet shows how to set one up.
Add your keys
.env
openssl rand -base64 32. AUTHBOUND_API_URL is the API URL for your key’s mode. The module reads these variables itself. The secret key and session secret stay on the server.Try it
Runpnpm dev, open localhost:3000/verify, scan the QR code with your wallet and approve the request. The page switches to “You’re verified”.
Protect pages
List the pages that need a verified user. The module sends unverified visitors to/verify:
nuxt.config.ts
Receive webhooks
The module always servesPOST /api/authbound/webhook. Add your signing secret to .env and the module picks it up:
.env
https://your-app.example/api/authbound/webhook as an endpoint on your project’s Webhooks page in the dashboard. See Webhooks and results.
Set EUDI wallet options
Some EUDI flows need a response mode or the origins the wallet should expect. These are security-sensitive, so they’re set in the module config, never from the browser:nuxt.config.ts
Routes the module adds
| Route | What it does |
|---|---|
POST /api/authbound/verification | Starts a verification and returns the wallet handoff to the browser. |
POST /api/authbound/session | Sets the session cookie after a successful verification. |
POST /api/authbound/webhook | Receives webhooks. |
/api/authbound/stations/... | Station entry, display and operator routes, used by the Vue station components. |
Station UI
For enabled organizations, useStationEntry, StationEntryDisplay and StationOperatorConsole from @authbound/vue with explicit imports. The station UI guide explains token scopes and direct Gateway versus same-origin proxy mode.