Login and Registration (with JWT)
In this episode we are going to learn how to register and login users using Vue, OctoberCMS and JWT.
Now we are going to create next checkout step in our app, and on that step the user will leave us his or hers data by registering into our app. To do that we are of course going to create an interface in our Vue.js app, and on the backend we will install a User plugin from Rainlab instead of creating our User model manually.
And also instead of creating our own routes for register and login we are going install JWTAuth plugin which is going to do all the heavy lifting for us.
Lastly I’m going to show you how to login a user using this method.