# vue-cli-plugin-auth0
A plugin for the awesome Vue CLI that simplifies the setup needed to use Auth0 as your authentication and authorization provider.
You can install from npm using the Vue CLI:
vue add auth0
The plugin will update your Vue application in order to wire the @auth0/auth0-spa-js client library. In addition to that:
- Generates a JSON file with the necesary auth0 configuration
- Extends the Vue instance with methods to handle the login/logout workflow
- Updates the main App.vue component with a sample widget that lets users login/logout and see the current user profile.
If it detects that vue-router is installed, it will update the router with a guard that prevents a page from being accessible to anonymous users, as well as an example page using the guard!
Check it on GitHub: