From ff376fad346ec251f8c3ca57ce0ed6659b3e4780 Mon Sep 17 00:00:00 2001 From: Alex Camilleri Date: Thu, 14 Nov 2024 23:48:30 +0100 Subject: [PATCH] create_client --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(