    def check_scopes(self, required_scopes, user):
        """Check whether the user has required scope(s)"""
        return check_scopes(required_scopes, set(user["scopes"]))
Check whether the user has required scope(s)
jupyterhub/services/auth.py