I simply used this url myapp://callback , but after signing in to github, it was redirected to a page showing error code 404 not found.
I simply used this url myapp://callback , but after signing in to github, it was redirected to a page showing error code 404 not found.
The OAuth flow consists of three steps:
What you're seeing is step 2, and it's important because the callback contains data that your application needs to create an access
If the user accepts your request, GitHub redirects back to your site with a temporary code in a
codeparameter as well as the state you provided in the previous step in astateparameter. If the states don't match, the request was created by a third party and the process should be aborted.
More details about this flow can be found in the GitHub docs: