Skip to content
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

Error Malformed auth code #85

Open
xuanlongvts opened this issue Mar 29, 2023 · 2 comments
Open

Error Malformed auth code #85

xuanlongvts opened this issue Mar 29, 2023 · 2 comments
Assignees

Comments

@xuanlongvts
Copy link

xuanlongvts commented Mar 29, 2023

hi there,

from this demo: https://github.com/googleworkspace/go-samples/blob/master/gmail/quickstart/quickstart.go

I got an error with message:

2023/03/29 14:40:18 Unable to retrieve token from web: oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Malformed auth code."
}

After i copy the url redirect from browser and then enter in command line, It shows the above error

@s4m1r0d4
Copy link

In my case it does open the authentication web page but at the end it redirects to an incorrect webpage:
http://localhost/?state=state-token&code=XXXXXXXXX&scope=https://www.googleapis.com/auth/gmail.readonly

Code parameter censured for obvious reasons.

@jsalgado2510
Copy link

In my case it does open the authentication web page but at the end it redirects to an incorrect webpage: http://localhost/?state=state-token&code=XXXXXXXXX&scope=https://www.googleapis.com/auth/gmail.readonly

Code parameter censured for obvious reasons.

There is an workaround for this, I had the same problem:
#76 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants