Buy Now and unlock this series
$
49
.99
$
29
.99
yours forever
$
49
.99
$
29
.99
Become a Pro and unlock everything
$
24
.99
per month
$
24
.99
Creating Sessions
In this video, we will create a session. The session will be the majority of the information that is sent along with our JWT.
Downloads
Become a pro to download code and videos
Node Fundamentals Authentication
23 videos
Released: February 28 2021Course Instructor
Scott Tolinski
- Node Fundamentals Authentication
0m52s - ESM and Getting Started
10m1s - Fastify Up and Running
17m46s - Dot ENV
6m51s - Connecting To MongoDB
17m49s - Mongo Compass
5m28s - Forms with VanillaJS
14m6s - Fetch Post Requests
9m34s - What Is Encryption, Salting, and Hashing
11m37s - Salting and Hashing
12m9s - User Records
9m36s - Login UI Flow
9m20s - Authorization with Compare
10m4s - HttpOnly Cookies Vs Browser
10m36s - WTF Is A JWT
6m56s - Refresh Vs Access Tokens and Sessions
12m51s - Setting and Getting HTTPOnly Cookies
15m26s - Creating Sessions
22m0s - Creating and Storing Our JWTs
15m27s - Decoding Our JWT and UI Access
23m52s - Refresh Tokens
18m9s - Logout
14m57s - Cleanup and Polish
14m24s
Comments
Jon
about 1 year ago
Probably should finish the video before adding a comment but... I found I had to move createSession import inside the logUserIn function as as await to avoid the error of trying to load before the connection to the database. Moving it inside I was able to create a user session in the db and get a SessionToken and that binary looking goodness.
Want to join the conversation?
Become a Pro member today!