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 #5

Open
Inrego opened this issue Mar 15, 2023 · 3 comments
Open

Error: malformed auth code #5

Inrego opened this issue Mar 15, 2023 · 3 comments
Assignees

Comments

@Inrego
Copy link

Inrego commented Mar 15, 2023

The request to get an auth code fails with the error:

{ "error": "invalid_grant", "error_description": "Malformed auth code." }

Posts on Stack overflow suggests that the code needs to be url decoded before being sent. And yes, sure enough.. I can see in the request part, that the code contain %2F which should be converted to /.

@Vyrastas
Copy link
Collaborator

@YigitUyan is this something you can check? I don't recall this being a problem before.

@Inrego
Copy link
Author

Inrego commented Mar 16, 2023

It worked on my desktop PC, but not on my phone (Pixel 6 Pro).
I didn't check if it's just a case of coincidence that the token i got at the time i tried on desktop didn't include any special characters

@Vyrastas
Copy link
Collaborator

I believe the authorization code will always be in that general format with the / in it.

I don't know if this was ever tested on any mobile devices, the sample is primarily for desktop use.

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

3 participants