Use when adding Auth0 login, logout, protected routes, or user sessions to a Vue 3 SPA. Integrates @auth0/auth0-vue — use even if the user says \"add login to my Vue app\" or \"protect my Vue routes\" without naming the SDK.
Auth0 Vue.js Integration
Add authentication to Vue.js 3 single-page applications using @auth0/auth0-vue.
Prerequisites
-
Vue 3+ application (Vite or Vue CLI)
-
Auth0 account and application configured
-
If you don't have Auth0 set up yet, use the
auth0-quickstartskill first
When NOT to Use
-
Server-side rendered Vue apps - See Auth0 Nuxt.js guide for SSR patterns
-
Vue 2 applications - This SDK requires Vue 3+, use legacy @auth0/auth0-spa-js wrapper
-
Embedded login - This SDK uses Auth0 Universal Login (redirect-based)
-
Backend API authentication - Use express-openid-connect or JWT validation instead






