Redirection is not available on /oauth/token endpoint


Currently, I’m working with a process to linking accounts from different providers, but in some part of the process, It’s fetching POST to https://{yourDomain}/oauth/token to refresh token and It’s retrieven me 400 status code bad request and error message “Redirection is not available on /oauth/token endpoint.”. I checked the documentation API reference Authentication API Explorer and I’m including the same body request and I still get the same error.

¿Does somebody know what I’m getting this error?

I’m guessing you have a redirect in your login flow which is also run when a token is refreshed

1 Like

Yep that can be the thing. Can you actually check that @fernandat ? Thank you!