when i click the discord login button, the login session starts.
When i click authorize, I am redirected to the redirect URI I have set but that URL also has some extra queries like this
http://localhost:3000/?code=KqntCqGvR1kWRckoeNZiNoUePQqpvp&state=eyJ0eXipOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfX3N0YXRlX3NlY3JldF8iOiJodk1xcjuwc1dDVlZKMGIzUWdXNkExYTRUZ1I1NWgifQ.As-hU5qrnGZ-q4ghRi2JonTcuuJmg1uMIBcDYgI-zD8
After login, i want to hit /discordInfo to get user information but it always returns {"isAuthorized": False}
Can anyone help me figuring out what I am doing wrong?
So I am trying to set up a flask backend through which i want to do discord authorization in my react app. my flask backed looks like this:
and the frontend code for login button is this:
when i click the discord login button, the login session starts. When i click authorize, I am redirected to the redirect URI I have set but that URL also has some extra queries like this
http://localhost:3000/?code=KqntCqGvR1kWRckoeNZiNoUePQqpvp&state=eyJ0eXipOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfX3N0YXRlX3NlY3JldF8iOiJodk1xcjuwc1dDVlZKMGIzUWdXNkExYTRUZ1I1NWgifQ.As-hU5qrnGZ-q4ghRi2JonTcuuJmg1uMIBcDYgI-zD8
After login, i want to hit
/discordInfo
to get user information but it always returns{"isAuthorized": False}
Can anyone help me figuring out what I am doing wrong?