I'm building a project with vue cli and adonis.js. The frontend will be only with Vue.js and backend will only provide REST api. I'm going to use jwt for authentication. The problem is, I don't understand authentication flow with jwt. I recently migrated from Laravel to adonis, so I have little knowledge in Vue + Ajax + REST api. Here are my questions:
Do you have to send token in every Ajax request?
How do you get current user associated with given jwt token?
What is refreshToken?
Providing a link of detailed guide will be enough.