Skip to content

Commit

Permalink
create_client
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKalopsia committed Nov 14, 2024
1 parent 2c94109 commit ff376fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ff376fa

Please sign in to comment.