    async def run_auth_state_hook(self, auth_state):
        """Run the auth_state_hook if defined"""
        if self.auth_state_hook is not None:
            await maybe_future(self.auth_state_hook(self, auth_state))
Run the auth_state_hook if defined
jupyterhub/spawner.py