← Files FingerprintARCHIVED FILE

skills/fingerprint-vue/snippets/plugin.js

510 Bytes · Oct 4, 2026 · 12:25 UTC

↓ Download file

// Register once at the app root (e.g. src/main.js). The region MUST match your workspace
// ('us' | 'eu' | 'ap') or identification fails with "API key not found" — read it from env,
// don't hardcode it.
import { createApp } from 'vue'
import { FingerprintPlugin } from '@fingerprint/vue'
import App from './App.vue'

const app = createApp(App)

app.use(FingerprintPlugin, {
  apiKey: import.meta.env.VITE_FINGERPRINT_PUBLIC_API_KEY,
  region: import.meta.env.VITE_FINGERPRINT_REGION,
})

app.mount('#app')

SHA-256: d1ea79ee44cfacb123ccd23321df67456e8e71b6f6cfc7b0f3dddfbccfbe7d36