From 828d77d433703aaa6145c8651fda0189e4358be4 Mon Sep 17 00:00:00 2001 From: stanislavsulc Date: Fri, 28 Jun 2024 16:22:29 +0200 Subject: [PATCH] Fixing google login redirect_url --- webapi/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapi/index.py b/webapi/index.py index fb0125c..7da2fed 100644 --- a/webapi/index.py +++ b/webapi/index.py @@ -220,7 +220,7 @@ def callback(): token_url, headers, body = client.prepare_token_request( token_endpoint, authorization_response=request.url, - redirect_url=str(GOOGLE_REDIRECT_URI).replace('login/callback', ''), + redirect_url=GOOGLE_REDIRECT_URI, # request.base_url str(GOOGLE_REDIRECT_URI) code=code ) token_response = requests.post(