0👍
If you are developing a Single Page Application, maybe you need a JWT. The user must login once at the beginning, after login you will have a Json Web Token, and the next requests need to use the token in order to authenticate.
You can take a look a devise-jwt gem, to implement these feature.
- [Vuejs]-Vue Router – How to lock user in a specific page
- [Vuejs]-Axios doesn't get cookies/sessions from PHP with vue.js
Source:stackexchange.com