# Redirection is not available on /oauth/token endpoint

**URL:** <https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652>\
**Category:** Get Help\
**Tags:** grants, management-api\
**Created:** [February 16, 2023, 3:29pm UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652 "2023-02-16T15:29:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernandat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fernandat/32/44679_2.png) [@fernandat](https://community.auth0.com/u/fernandat)\
**Post date:** [February 16, 2023, 3:29pm UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/1 "2023-02-16T15:29:56Z")

</div>

Hello.

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](https://auth0.com/docs/api/authentication#device-authorization-flow48) and I’m including the same body request and I still get the same error.

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

---

<div class="post-metadata">

**Author:** ![daniel.read](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daniel.read/32/44756_2.png) [@daniel.read](https://community.auth0.com/u/daniel.read)\
**Post date:** [February 20, 2023, 7:16am UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/2 "2023-02-20T07:16:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 20, 2023, 7:30am UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/3 "2023-02-20T07:30:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![filipe.freire](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/filipe.freire/32/46134_2.png) [@filipe.freire](https://community.auth0.com/u/filipe.freire)\
**Post date:** [April 6, 2023, 3:17pm UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/4 "2023-04-06T15:17:39Z")

</div>

We are running into a similar issue. Given a user with a `google-oauth2` connection, trigger a `/passwordless/start` with the same email account, returns the email code.

When we use the received email code in the `/oauth/token` call, with `http://auth0.com/oauth/grant-type/passwordless/otp` as `grant_type` we can see on Auth0 a new user with that email connection, but that first `/oauth/token` call always returns

```auto
Redirection is not available on /oauth/token endpoint.

```

EDIT: also note - this only seems to happen for the initial `/oauth/token` call. Subsequent calls seem to work for a same account, and then we can link the `email` account with `google-oauth2`.

---

<div class="post-metadata">

**Author:** ![ngupta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ngupta/32/60194_2.png) [@ngupta](https://community.auth0.com/u/ngupta)\
**Post date:** [September 9, 2024, 12:44pm UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/5 "2024-09-09T12:44:26Z")

</div>

Hi I am facing same issue when trying to get new access token with refresh token. what could be the possible solution?

Do i need to add rules to bypass it.

---

<div class="post-metadata">

**Author:** ![ngupta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ngupta/32/60194_2.png) [@ngupta](https://community.auth0.com/u/ngupta)\
**Post date:** [September 9, 2024, 12:45pm UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/6 "2024-09-09T12:45:30Z")

</div>

Hi I am facing same issue when trying to get new access token with refresh token. what could be the possible solution?

Do i need to add rules to bypass it. Thanks.

---

<div class="post-metadata">

**Author:** ![ale.vesga1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ale.vesga1/32/60921_2.png) [@ale.vesga1](https://community.auth0.com/u/ale.vesga1)\
**Post date:** [November 23, 2024, 2:36am UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/7 "2024-11-23T02:36:25Z")

</div>

Our team frequently answers questions like this one.

The error you’re encountering usually happens when a redirect is triggered within an Action during a trigger that doesn’t allow redirects, such as during a refresh token exchange. The solution is to add logic to bypass the redirect in these cases.

See documentation for more details:  
[Redirection is not available on /oauth/token endpoint](https://community.auth0.com/t/error-message-redirection-is-not-available-on-oauth-token-endpoint/114349)

Hope this helps

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 7, 2024, 2:36am UTC](https://community.auth0.com/t/redirection-is-not-available-on-oauth-token-endpoint/100652/8 "2024-12-07T02:36:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
