    def get_next_url(self, state_id='', /):
        """Get the next_url for redirection, given an encoded OAuth state"""
        state = self._decode_state(state_id)
        return state.get('next_url') or self.base_url
Get the next_url for redirection, given an encoded OAuth state
jupyterhub/services/auth.py