-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing code parameter while fetching token for Google #308
Comments
I had the same issue, just change From # Fetch the access token
google.fetch_token(token_url, client_secret=client_secret,
authorization_response=redirect_response) TO # Fetch the access token
google.fetch_token(token_url, client_secret=client_secret,
code=redirect_response) although add this: os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' and here just pass the code, like: redirect_response = input('Paste the full redirect URL here:\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I followed the Google Oauth2 example and I managed to get the authorization code
but fetching the token I have the following error:
It seems that for Google the parameter is named approvalCode.
The text was updated successfully, but these errors were encountered: