Skip to content

Commit

Permalink
Merge branch 'master' into HAN-39
Browse files Browse the repository at this point in the history
  • Loading branch information
violetamedallia committed Mar 26, 2024
2 parents 7ce12d4 + 53e250b commit 20e21f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ POSTGRES_SCHEMA=

# Google
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=
2 changes: 1 addition & 1 deletion app/service/Users.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _get_access_token(self, authorization_code):
"client_secret": os.environ["GOOGLE_CLIENT_SECRET"],
"code": authorization_code,
"grant_type": "authorization_code",
"redirect_uri": "http://localhost:8000/auth/google/callback"
"redirect_uri": os.environ["GOOGLE_REDIRECT_URI"]
}
response = requests.post(token_url, data=payload)
if response.status_code == 200:
Expand Down

0 comments on commit 20e21f8

Please sign in to comment.