Full Stack Developer

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.

55 min

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

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans