SPA authentication with Auth0 and Vue.js
SPA authentication with Auth0 is a tutorial with the goal to give access to users to your single page application and serve, without much trouble. Additionally, it is written with the following goals in mind. Have a small username/password database on Auth0, invite specific users by email, and do not let people sign up. Restrict some routes in the SPA to authenticated users and some API end points to authenticated users who logged in through the web application.
The tutorial consist of the following section:
- Auth0 setup
- SPA code
- Server code
- Cleaner separation of secured API calls