News for hackers. Stuff that matters.
Re:Ask HN: What's the recommended method of adding authentic... by ashleycole on Thursday January 18, 2018 @06:31PM (#16182625)
What do you mean when you say: "you do not need to mess around with localStorage"? Aren't you supposed to store this token on the client side (presumably using localStorage/cookies), and then include it in the request?

You seem to know what you're talking about, but i'm a bit confused. With JWT I just store the token in localStorage and then add Authentization Bearer header with the token. What's the recommended approach? To send username + token as part of the form data?

There are no comments on this comment yet.