YUNOVA · Vue.js · Module 13: Production Vue apps
Authentication in Vue with JWT
Authentication in Vue with JWT
Key points
- After login the server returns a JWT that proves who the user is.
- Send the token in the Authorization header on API calls.
- Route guards redirect users who are not logged in.