diff --git a/api/backend/app.py b/api/backend/app.py index 7d03ddc..da6f415 100644 --- a/api/backend/app.py +++ b/api/backend/app.py @@ -130,10 +130,12 @@ def login(): # Use library to construct the request for Google login and provide # scopes that let you retrieve user's profile from Google - print(f'callback uri: {request.base_url + "/callback"}') + redirect_uri = "https://drive-gooder.com/api" + # print(f'callback uri: {request.base_url + "/callback"}') + print(f'callback uri: {redirect_uri + "/callback"}') request_uri = client.prepare_request_uri( authorization_endpoint, - redirect_uri=request.base_url + "/callback", + redirect_uri=redirect_uri + "/callback", scope=["openid", "email", "profile"], ) return redirect(request_uri)