You’ll add a verification screen to a Vue app. The browser shows the QR code, and a small Express server on the same origin talks to Authbound with your secret key. Using Nuxt? Follow the Nuxt quickstart instead. The module sets up the server side for you.

Before you start

1

Install the SDKs

pnpm add @authbound/vue @authbound/server express cookie-parser
2

Add your keys

.env
AUTHBOUND_SECRET_KEY=sk_test_...
AUTHBOUND_SESSION_SECRET=...
AUTHBOUND_PUBLISHABLE_KEY=pk_test_...
AUTHBOUND_API_URL=https://sandbox-check.authbound.io
VITE_AUTHBOUND_PK=pk_test_...
VITE_AUTHBOUND_POLICY_ID=pol_identity_basic_eudi_v1
VITE_AUTHBOUND_API_URL=https://sandbox-check.authbound.io
Generate the session secret with openssl rand -base64 32. Both API URL variables hold the API URL for your key’s mode. The VITE_ values end up in the browser bundle, which is fine: publishable keys, policy IDs and the API URL aren’t secret.
3

Add the server

The Authbound router adds the routes the browser SDK calls: starting a verification and setting a session cookie when it succeeds.
server.ts
import cookieParser from "cookie-parser";
import express from "express";
import { createAuthboundRouter } from "@authbound/server/express";

const app = express();
app.use(express.json());
app.use(cookieParser());

app.use(
  "/api/authbound",
  createAuthboundRouter({
    apiKey: process.env.AUTHBOUND_SECRET_KEY!,
    apiUrl: process.env.AUTHBOUND_API_URL!,
    publishableKey: process.env.AUTHBOUND_PUBLISHABLE_KEY!,
    secret: process.env.AUTHBOUND_SESSION_SECRET!,
    routes: { protected: [], verify: "/verify" },
  })
);

app.listen(3000);
During development, have Vite forward /api to it so both run on the same origin:
vite.config.ts
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [vue()],
  server: { proxy: { "/api": "http://localhost:3000" } },
});
4

Install the plugin

src/main.ts
import "@authbound/vue/styles.css";
import { asPolicyId, AuthboundPlugin } from "@authbound/vue";
import { createApp } from "vue";
import App from "./App.vue";

createApp(App)
  .use(AuthboundPlugin, {
    publishableKey: import.meta.env.VITE_AUTHBOUND_PK,
    policyId: asPolicyId(import.meta.env.VITE_AUTHBOUND_POLICY_ID),
    gatewayUrl: import.meta.env.VITE_AUTHBOUND_API_URL,
  })
  .mount("#app");
5

Add the verification wall

VerificationWall starts a verification as soon as it appears and shows the QR code. Once the user is verified, it shows its default slot instead. Set :auto-start="false" to show a start button first.
src/App.vue
<script setup lang="ts">
import { VerificationWall } from "@authbound/vue";
</script>

<template>
  <VerificationWall
    title="Verify your identity"
    subtitle="Scan the QR code with your wallet app."
  >
    <h1>You're verified</h1>
  </VerificationWall>
</template>

Try it

Start the server with npx tsx --env-file=.env server.ts and the app with pnpm dev. Scan the QR code with your wallet and approve the request. The page switches to “You’re verified”.

Next steps

Receive webhooks

Add a webhook route to the Express server and confirm results there.

Browser sessions

Session modes, several tabs, time limits and proxies.

How it works

Why access decisions belong on your server.

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.