Why are you giving "Non-Web Application Flow" document link?
(I'm assuming "Non-Web Application Flow" means "resource owner password grant" or "implicit grant" flow)
In that flow, you shouldn't get authorization code.
If you are actually using web application flow, and not getting any error nor code, then it's probably github api issue.
Please ask github api support in that case.