problem in getting authorization code

While making the GET call to https://api.codechef.com/oauth/authorize if the user is already logged in to codechef it opens https://www.codechef.com/ and shows the message ‘invalid authorization request’. If the user was not logged in before, it works fine. What is the problem here?

@priyanshi_, you can use this sample app for reference: https://github.com/miss-invincible/codechef-sample-app
If you still face some issue, please let us know.

The problem still persists for my app, when I was already logged in and requested for authorization code it showed ‘invalid request error’, but when I logged out and tried again I got the grant code on my redirect uri.Can you please suggest what is the problem here?

@priyanshi_ can you please send the response that you are getting (the json object) or the screenshot. Also, please email me the request that you are trying to make on [email protected]