Everything you need to know about the `passport-jwt` Passport JS Strategy (and Angular implementation)

Zach Gollwitzer
The Startup
Published in
16 min readJan 11, 2020

--

Table of Contents

What is JWT Based Authentication?

Before I start getting lost in the details, I must mention that if you read my post on the passport-local authentication strategy, this post will be much much easier! We have already covered a lot of the topics needed to understand how to use the passport-jwt authentication strategy in that post.

Additionally, as we walk through the basics of JWT authentication, we will start to understand why JWT authentication is far better for Angular front-end applications than session-based authentication (hint: stateless auth!).

Review and Preview

--

--

The Startup
The Startup

Published in The Startup

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +772K followers.

Zach Gollwitzer
Zach Gollwitzer

Written by Zach Gollwitzer

I write software tutorials and golf software