Deleted Users
Managing Inactive User Sessions
π¨βπΌ In the root route of our app, we're loading the user based on the
userId
that's found in the session. But if no user is found then something weird is
going on (most likely, the user account was deleted). So let's redirect the user
to the home page and unset the userId in the session while we're at it.