def METHOD_NAME(client, token):
    return jwt.decode(
        token,
        client._config.credential.key,
        algorithms=["HS256"],
        audience="{}/client/hubs/hub".format(client._config.endpoint)
    )