diff --git a/server.py b/server.py index f6404c9..7ac12a7 100644 --- a/server.py +++ b/server.py @@ -152,8 +152,9 @@ def handle_error(error): @app.route("/authorized") def oauth_authorized(): + # Get existing oauth client instance = session["instance"] - client = oauth._clients.get(instance) + client = oauth.create_client(instance) token = client.authorize_access_token() response = client.get(