Install
$ agentstack add skill-thunder-id-skills-integrate-nuxt ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
ThunderID — Nuxt Integration
Assumes ThunderID is running at https://localhost:8090. If not, run /setup-thunderid first.
Step 1 — Register an Application
Ask the developer to create an application in ThunderID and share the Client ID and Client Secret before continuing.
Guide them through these steps:
- Open
https://localhost:8090/consoleand sign in (default:admin/secret) - Navigate to Applications → New Application
- Fill in:
- Name: their app name (e.g.
my-nuxt-app) - Type: Web Application
- Authorized Redirect URL:
http://localhost:3000/api/auth/callback
- Click Create and copy the Client ID and Client Secret shown on the next screen
The /api/auth/callback path is registered automatically by the @thunderid/nuxt module — no manual route needed.
Once they paste both values, use them in all subsequent steps. Do not use placeholders — wait for the real values.
Step 2 — Install
Detect the package manager from lockfiles: pnpm-lock.yaml → pnpm add, yarn.lock → yarn add, bun.lockb → bun add, else npm install.
npm install @thunderid/nuxt
Step 3 — Register the Module
Edit nuxt.config.ts:
export default defineNuxtConfig({
modules: ['@thunderid/nuxt'],
})
The module auto-registers /api/auth/callback as a Nitro server route — no manual callback route needed. It also auto-imports all components and composables.
Step 4 — Set Environment Variables
Create .env:
NUXT_PUBLIC_THUNDERID_BASE_URL=https://localhost:8090
NUXT_PUBLIC_THUNDERID_CLIENT_ID=
THUNDERID_CLIENT_SECRET=
THUNDERID_SESSION_SECRET=
Generate THUNDERID_SESSION_SECRET with openssl rand -base64 32. THUNDERID_CLIENT_SECRET and THUNDERID_SESSION_SECRET have no NUXT_PUBLIC_ prefix — Nuxt keeps them server-side only.
Step 5 — Wrap App with ThunderIDRoot
Edit app.vue:
Step 6 — Add Auth UI
All components and composables are auto-imported. Create pages/index.vue:
ThunderID Auth Demo
Sign Out
Sign In
Welcome, {{ user.name || user.username }}!
Step 7 — Protect a Page
definePageMeta({ middleware: ['thunderIDMiddleware'] });
Unauthenticated users are automatically redirected to the sign-in page.
Step 8 — Run and Verify
npm run dev
Click Sign In — you should be redirected to https://localhost:8090 and returned after login.
Troubleshooting
Certificate error — Visit https://localhost:8090 in your browser and accept the warning once.
invalid_client — Double-check the Client ID and Client Secret in .env.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: thunder-id
- Source: thunder-id/skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.