Loading
Current section: Managed Sessions 6 exercises
Problem

Implementing Session-Based Authentication

Loading exercise

Transcript

00:00 Getting things updated with the new sessions is actually quite a bit of work. So, we're going to split this up into two steps. First, we're going to update the AuthUtils, and then in the next step, we'll update the login and sign-up flows. So, in this step, you're just going to go to the AuthServer utility

00:16 and change everything from being user ID-centric over to sessions and session IDs. We've got a couple of utilities that actually kind of require, like, we have literally require user ID. And so, you're going to have to resolve the cookie value

00:33 that is going to be the session ID now into the user ID for that session. So, there are a couple of like little changes here and there. It's not going to be huge, but yeah, it's enough that I want to split this up. So, just start with updating the AuthServer, and then we'll come back and do it together.