    def post_spawn_stop(self, user, spawner):
        """Hook called after stopping a user container

        Can be used to do auth-related cleanup, e.g. closing PAM sessions.
        """
Hook called after stopping a user container

Can be used to do auth-related cleanup, e.g. closing PAM sessions.
jupyterhub/auth.py