Before this, the user's authentication token would still be stored in the session even when it's found to be invalid. This caused a login action to fail, but not in such a way that we would redirect to the login page of Blender ID. Rather, it would keep you not logged in. By clearing the session we're sure that the invalid token is forgotten, and the next request will handle the login properly.