jaredhanson / oauth2orize

OAuth 2.0 authorization server toolkit for Node.js.
https://www.oauth2orize.org?utm_source=github&utm_medium=referral&utm_campaign=oauth2orize
MIT License
3.47k stars 469 forks source link

Unable to get the exchange token #238

Open Viraz04 opened 4 years ago

Viraz04 commented 4 years ago

Hi, I was able to get the auth code but when i call the token api, i get Unauthorised 401 Error, I am passing these values in the url http://localhost:3000/oauth/token?grant_type=authorization_code&code=tncHiOrBZRcvjJQ1&redirect_uri=http://localhost:3000/account&client_id=abc123&client_secret=ssh-secret Please help with his, I am stuck.

rognstad commented 3 years ago

This is really old but try POSTing the data as application/x-www-form-urlencoded