Fix Google oauth_state KeyError

This commit is contained in:
Son NK 2020-05-10 11:34:32 +02:00
parent 8fa0927826
commit cde8452e5b
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ def google_callback():
google = OAuth2Session(
GOOGLE_CLIENT_ID,
state=session["oauth_state"],
# some how Google Login fails with oauth_state KeyError
# state=session["oauth_state"],
scope=_scope,
redirect_uri=_redirect_uri,
)