I'm attempting to follow the "Quick Start" guide on signing in users. I have successfully retrieved the
CALLBACK_AUTHORIZATION_CODE
, but when I attempt to request the token I get a 400 error.
I'm following this documentation:
https://kinde.com/docs/developer-tools/using-kinde-without-an-sdk/#handling-the-callbackThe request I'm making is to:
https://<your_kinde_sudomain>.kinde.com/oauth2/token
?client_id=<your_kinde_client_id>
&client_secret=<your_kinde_client_secret>
&grant_type=authorization_code
&redirect_uri=<your_app_redirect_url>
&code=<CALLBACK_AUTHORIZATION_CODE>
I have triple checked that each of the credentials being sent is correct, yet I still get a 400 response with no error message in the body of the response.
Note: Probably not super important, but my backend is written in Go, although I can't seem to get it to work even with a basic curl request:
curl -vv -XPOST -H "Content-Type: application/x-www-form-urlencoded" \
"https://karehero.kinde.com/oauth2/token?client_id=${CLIENT_ID}&client_secret=${CLIENT_SECRET}&grant_type=authorization_code&redirect_uri=http://localhost:3000&code=${CODE}"