Skip to content
Gil Ferreira edited this page Mar 31, 2016 · 1 revision

CoPilot contains some middleware in the main.js file that runs on every route change. This is helpful to protect pages that require authentication.

The preferred method is to use JWT to authenticate a user. This requires some type of backend system that will check credentials and send back an Authorization header. The header is then saved to the store (Vuex) and allows the user to use the system.

Coming soon will be a demo of how to do this. I use sailsJs.

Clone this wiki locally