Case File: The Session
The server forgets everything between requests, so it remembers a login with a cookie, and a cookie is text the user can edit. Parse cookies correctly, sign a value with HMAC, verify it in constant time, build a session cookie with the right flags and read the user from a request. Real TypeScript with the standard crypto API, generated for you alone.
Case File: The Session
The server forgets everything between requests, so it remembers a login with a cookie, and a cookie is text the user can edit. Parse cookies correctly, sign a value with HMAC, verify it in constant time, build a session cookie with the right flags and read the user from a request. Real TypeScript with the standard crypto API, generated for you alone.
In this lesson:
- typescript
- cookies
- sessions
- hmac
- web-crypto
- security
- authentication
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans