You’ll add a /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

1

Install the module

pnpm add @authbound/nuxt
2

Add your keys

.env
AUTHBOUND_SECRET_KEY=sk_test_...
AUTHBOUND_SESSION_SECRET=...
AUTHBOUND_API_URL=https://sandbox-check.authbound.io
NUXT_PUBLIC_AUTHBOUND_PK=pk_test_...
NUXT_PUBLIC_AUTHBOUND_POLICY_ID=pol_identity_basic_eudi_v1
Generate the session secret with 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.
3

Configure the module

nuxt.config.ts
import { asPolicyId } from "@authbound/nuxt";

export default defineNuxtConfig({
  modules: ["@authbound/nuxt"],
  css: ["@authbound/vue/styles.css"],
  authbound: {
    policyId: asPolicyId(process.env.NUXT_PUBLIC_AUTHBOUND_POLICY_ID!),
  },
});
4

Add the verify page

AuthboundVerificationWall is auto-imported. It starts a verification as soon as it appears and shows the QR code. Once the user is verified, it shows its default slot instead.
pages/verify.vue
<template>
  <AuthboundVerificationWall
    title="Verify your identity"
    subtitle="Scan the QR code with your wallet app."
  >
    <h1>You're verified</h1>
  </AuthboundVerificationWall>
</template>

Try it

Run pnpm 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
authbound: {
  policyId: asPolicyId(process.env.NUXT_PUBLIC_AUTHBOUND_POLICY_ID!),
  protectedRoutes: ["/dashboard"],
  publicRoutes: ["/", "/verify"],
},
This uses the SDK’s session cookie, which is fine for page access. For anything that must hold up later, record the result on your server from a webhook. See Browser sessions for how the cookie works and how to use your own sessions instead.

Receive webhooks

The module always serves POST /api/authbound/webhook. Add your signing secret to .env and the module picks it up:
.env
AUTHBOUND_WEBHOOK_SECRET=whsec_...
Then add 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
authbound: {
  policyId: asPolicyId(process.env.NUXT_PUBLIC_AUTHBOUND_POLICY_ID!),
  providerOptions: {
    eudi: {
      responseMode: "dc_api.jwt",
      expectedOrigins: ["https://your-app.example"],
    },
  },
},

Routes the module adds

RouteWhat it does
POST /api/authbound/verificationStarts a verification and returns the wallet handoff to the browser.
POST /api/authbound/sessionSets the session cookie after a successful verification.
POST /api/authbound/webhookReceives webhooks.
/api/authbound/stations/...Station entry, display and operator routes, used by the Vue station components.
Stations are for in-person verification, such as a QR code at a venue entrance, and are enabled per organization. The module doesn’t add status or sign-out routes. If you need them, add Nitro handlers that read or clear the session cookie.

Station UI

For enabled organizations, use StationEntry, StationEntryDisplay and StationOperatorConsole from @authbound/vue with explicit imports. The station UI guide explains token scopes and direct Gateway versus same-origin proxy mode.