Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Full-Stack Vue + Node > Lesson 38

Attaching the token to a request

So now we've created our token. We now need to pass it to the user so they can send it back on future requests to authenticate themselves on protected routes.

Attaching header

The canonical way of passing a JSON web token is to add it as an HTTP header, which is basically meta data that you can attach to a request. You could also add the token to the body or attach it as a cookie, but we'll be using the header.


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom