🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Auth0 Nuxt

by @auth0

Use when implementing Auth0 authentication in Nuxt 3/4 applications, configuring session management, protecting routes with middleware, or integrating API ac...

⚑ When to Use
TriggerAction
- Building Nuxt 3/4 applications with server-side rendering (Node.js 20 LTS+)
- Need secure session management with encrypted cookies
- Protecting server routes and API endpoints
- Accessing Auth0 Management API or custom APIs
**Don't use this when:**
- Using Nuxt 2 (not supported - use different Auth0 SDK)
- Building pure client-side SPA without server (use @auth0/auth0-vue instead)
- Using non-Auth0 authentication provider
- Static site generation only (SSG) without server runtime
πŸ“‹ Tips & Best Practices

| Error | Solution | |-------|----------| | "Module not found" | Install @auth0/auth0-nuxt, not @auth0/auth0-vue | | "Missing domain/clientId/clientSecret" | Check NUXT_AUTH0_ prefix, .env location, runtimeConfig | | "Redirect URI mismatch" | Match Auth0 Dashboard callback to appBaseUrl + /auth/callback | | "useAuth0 is not defined" | Use only in server context with H3 event object | | Cookies too large | Use stateful sessions or reduce scopes |

View on ClawHub
TERMINAL
clawhub install auth0-nuxt

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’