Replies: 1 comment 2 replies
-
|
Is this issue still happening to you? Since it's using Octokit.js, I suggest you post this post in https://github.com/octokit/octokit.js/discussions |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm building a GitHub App and have enabled "Request user authorization (OAuth) during installation" so after installing my app, users get redirected to a URL like https://my.app.tld/github/install?code=d03d40d3f5ffe88facb6&installation_id=454565&setup_action=install. I then try and exchange that code for a proper token to get some basic info about the user:
However, I keep receiving a
bad_verification_codeand I'm out of ideas why that might be happening.It's basically impossible for the code to be expired as I see the error right after the installation completes. I'm sure I'm doing sth. obvious wrong but can't seem to find out what that might be.
Also I realized that the logged request/response in the console look like this:
which seems strange as it says
status: 400,andstatus: 200,further down?Beta Was this translation helpful? Give feedback.
All reactions