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

The original posts this tutorial was based on Vue.js , Setting up Auth0,and the Documentation of Auth0 with Vue.

A tutorial by Gleb Bahmutov @bahmutov