Scott shares a brief code snippet demonstrating how to work with JWT. A token is generated by hashing some identifying user data with a secret key. During subsequent requests, the server will use the same secret to verify that the request’s token is valid.
In this case, the secret is just this string that I made.…shhhh, it's a secret.…Alright, and what that's going to do…is it's going to spit out a token.…It's like, Cool, here you go, here's a token.…Alright, it's just a hash…using, I think it's like a SHA-256, what is it?…Oh yeah, we're using a SHA-256…and it's just going to spit back that token,…which is like some long, crazy string right?…So, the bigger the payload, the bigger the string.…
This course was created by Frontend Masters. It was originally released on 12/30/2015. We're pleased to host this training in our library.
- Executing Node.js
- Using Express
- What is middleware?
- Testing in Node.js
- Using Mongo with Node.js
- Data modeling
- Querying data with Mongoose
- Identifying sensitive routes
- Configuring the deployment
Skill Level Intermediate
Building a Slack Bot with Node.js Microserviceswith Daniel Khan2h 9m Intermediate
Building APIs Using Hapi in Node.jswith Kirsten Hunter2h 23m Intermediate
2. REST APIs
5. Organization and Configuration
7. Data Modeling
10. Securing Routes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.