# Auth0 redirect not working in chrome while using nodejs as backend and react js on front-end

**URL:** <https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-react\
**Created:** [March 13, 2023, 2:17pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416 "2023-03-13T14:17:02Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 10, 2023, 12:52pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/25 "2023-04-10T12:52:48Z")

</div>

If you click the “View Log” button, does it provide additional context?

---

<div class="post-metadata">

**Author:** ![nishit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nishit/32/45056_2.png) [@nishit](https://community.auth0.com/u/nishit)\
**Post date:** [April 14, 2023, 10:16am UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/26 "2023-04-14T10:16:25Z")

</div>

Yes the following logs come up

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/9/a985a806689d9afef082d59996160cac188a33e1.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 14, 2023, 1:32pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/27 "2023-04-14T13:32:09Z")

</div>

This error suggests there is a problem with the redirect uri you are submitting.

Can you confirm that the redirect uri is correct and matches the allowed callback settings in your application?

Can you also please confirm the version of the auth0-react SDK you are using?

---

<div class="post-metadata">

**Author:** ![mathdoy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathdoy/32/46321_2.png) [@mathdoy](https://community.auth0.com/u/mathdoy)\
**Post date:** [April 14, 2023, 2:31pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/28 "2023-04-14T14:31:14Z")

</div>

We have the same issue since the this week, luckly us it is our staging environment.

We have the URL defined in 4 boxes in the application settings the `@auth0/auth0-react` is doing an infinite redirection loop between our apps and auth0

---

<div class="post-metadata">

**Author:** ![nishit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nishit/32/45056_2.png) [@nishit](https://community.auth0.com/u/nishit)\
**Post date:** [April 15, 2023, 4:37am UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/29 "2023-04-15T04:37:54Z")

</div>

Yes I’ve checked the uri again.

Also the version you asked for is  
“@auth0/auth0-react”: “^1.12.1”

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 17, 2023, 1:00pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/30 "2023-04-17T13:00:51Z")

</div>

@nishit,

That version of the SDK uses a different syntax for the redirect URI. Upgrade to the latest version and that should solve the error.

It’s mentioned in the migration guide: [auth0-react/MIGRATION\_GUIDE.md at master · auth0/auth0-react · GitHub](https://github.com/auth0/auth0-react/blob/master/MIGRATION_GUIDE.md)

---

<div class="post-metadata">

**Author:** ![nishit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nishit/32/45056_2.png) [@nishit](https://community.auth0.com/u/nishit)\
**Post date:** [April 19, 2023, 3:00pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/31 "2023-04-19T15:00:10Z")

</div>

Auth0 (and other deps) are updated now. App is not working still

```auto
"@auth0/auth0-react": "^2.0.1"

```

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 19, 2023, 3:01pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/32 "2023-04-19T15:01:08Z")

</div>

@nishit Do you have any more info?

---

<div class="post-metadata">

**Author:** ![nishit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nishit/32/45056_2.png) [@nishit](https://community.auth0.com/u/nishit)\
**Post date:** [April 22, 2023, 10:35am UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/33 "2023-04-22T10:35:56Z")

</div>

> [@dan.woda](#):
>
> Do you have any more info?

yeah actually we implemented the whole flow with the best practices as you mentioned earlier but now there is a different type of error , while reviewing the logs these were the event that we encountered:-

1. Success Login

```auto
{
  "date": "2023-04-22T10:11:07.948Z",
  "type": "s",
  "connection": "Username-Password-Authentication",
  "connection_id": "example",
  "client_id": "example",
  "client_name": "example",
  "ip": "example",
  "user_agent": "Chrome 107.0.0 / Windows 10.0.0",
  "details": {
    "prompts": [
      {
        "name": "prompt-authenticate",
        "completedAt": 1682158267426,
        "connection": "Username-Password-Authentication",
        "connection_id": "example",
        "strategy": "auth0",
        "identity": "example",
        "stats": {
          "loginsCount": 1245
        },
        "elapsedTime": null
      },
      {
        "name": "login",
        "flow": "universal-login",
        "initiatedAt": 1682158247658,
        "completedAt": 1682158267456,
        "user_id": "example",
        "user_name": "example@test.com",
        "timers": {
          "rules": 3
        },
        "elapsedTime": 19798
      }
    ],
    "initiatedAt": 1682158247643,
    "completedAt": 1682158267947,
    "elapsedTime": 20304,
    "session_id": "example",
    "stats": {
      "loginsCount": 1245
    }
  },
  "hostname": "example",
  "user_id": "example",
  "user_name": "example@test.com",
  "strategy": "auth0",
  "strategy_type": "database",
  "organization_id": "example",
  "organization_name": "techlight",
  "log_id": "example",
  "_id": "example",
  "isMobile": false,
  "id": "example",
  "description": "Successful login"
}

```

1. Success Exchange

```auto
{
  "date": "2023-04-22T10:11:10.463Z",
  "type": "seacft",
  "description": "Authorization Code for Access Token",
  "connection_id": "",
  "client_id": "example",
  "client_name": "example",
  "ip": "example",
  "user_agent": "Chrome 107.0.0 / Windows 10.0.0",
  "details": {
    "code": " ****************************************** ECA"
  },
  "hostname": "example",
  "user_id": "example",
  "user_name": "example@test.com",
  "organization_id": "example",
  "organization_name": "techlight",
  "auth0_client": {
    "name": "auth0-react",
    "version": "2.0.1"
  },
  "log_id": "example",
  "_id": "example",
  "isMobile": false,
  "id": "example"
}

```

1. Failed silent Auth

```auto
{
  "date": "2023-04-22T10:11:10.681Z",
  "type": "fsa",
  "description": "Login required",
  "client_id": "example",
  "client_name": "example",
  "ip": "example",
  "user_agent": "Chrome 107.0.0 / Windows 10.0.0",
  "details": {
    "body": {},
    "qs": {
      "client_id": "example",
      "scope": "openid read:current_user update:current_user_metadata",
      "redirect_uri": "example",
      "audience": "example",
      "prompt": "none",
      "response_type": "code",
      "response_mode": "web_message",
      "state": "example",
      "nonce": "example",
      "code_challenge": "example",
      "code_challenge_method": "S256",
      "auth0Client": "example"
    },
    "connection": null,
    "error": {
      "message": "Login required",
      "oauthError": "login_required",
      "type": "oauth-authorization"
    },
    "session_id": "example,
    "riskAssessment": null,
    "session_connection": "Username-Password-Authentication"
  },
  "hostname": "example",
  "audience": "example",
  "scope": [
    "openid",
    "read:current_user",
    "update:current_user_metadata"
  ],
  "auth0_client": {
    "name": "auth0-react",
    "version": "2.0.1"
  },
  "log_id": "example",
  "_id": "example",
  "isMobile": false,
  "id": "example"
}

```

also we have reviewed our code throughly

Thank you

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 24, 2023, 1:05pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/34 "2023-04-24T13:05:03Z")

</div>

@nishit,

Thanks for providing some more detailed information. 😄

A silent login often fails when the cookie session isn’t able to be used to renew the tokens. Does the silent login fail on all browsers? Determining this can help to narrow down the problem to a specific browser vs. a problem with the setup/config.

---

<div class="post-metadata">

**Author:** ![nishit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nishit/32/45056_2.png) [@nishit](https://community.auth0.com/u/nishit)\
**Post date:** [April 25, 2023, 2:50pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/35 "2023-04-25T14:50:30Z")

</div>

yes the login is not working on any browser

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 25, 2023, 4:28pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/36 "2023-04-25T16:28:01Z")

</div>

What have you tried to resolve the issue?

---

<div class="post-metadata">

**Author:** ![nishit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nishit/32/45056_2.png) [@nishit](https://community.auth0.com/u/nishit)\
**Post date:** [April 27, 2023, 11:21am UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/37 "2023-04-27T11:21:52Z")

</div>

yes we tried to resolve the issue but the issue still persisted with the information that we provided in earlier reply .

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 1, 2023, 1:34pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/38 "2023-05-01T13:34:53Z")

</div>

@nishit,

Apologies for not being clear. I asked **what have you tried** to resolve the new error you are seeing? Besides providing the info that it is _not working_, what have you done to try to resolve the error on your side?

It’s difficult for me to walk through every step of debugging your application because I don’t have access to it. Without you first attempting to solve the error on your own, this process becomes cumbersome. For example, you may start by googling the error code you are seeing and then work through the strategies provided by the top results.

Here are some results I find:

- [Failed Silent Auth - Login required](https://community.auth0.com/t/failed-silent-auth-login-required/33165)
- [Massive failed silent authentication logs with "Login required" error](https://community.auth0.com/t/massive-failed-silent-authentication-logs-with-login-required-error/91577)
- [Error: Login Required at requests to API](https://community.auth0.com/t/error-login-required-at-requests-to-api/64577)
- [Failed Silent Auth - Login required - #10 by tpluscode](https://community.auth0.com/t/failed-silent-auth-login-required/33165/10?page=2)

---

<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:** [June 21, 2023, 6:37pm UTC](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416/39 "2023-06-21T18:37:01Z")

</div>

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

[Previous page](https://community.auth0.com/t/auth0-redirect-not-working-in-chrome-while-using-nodejs-as-backend-and-react-js-on-front-end/102416.md?page=1)
