# Deployed React App: Unable to issue redirect for OAuth 2.0 transaction

**URL:** <https://community.auth0.com/t/deployed-react-app-unable-to-issue-redirect-for-oauth-2-0-transaction/99929>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [February 7, 2023, 6:57pm UTC](https://community.auth0.com/t/deployed-react-app-unable-to-issue-redirect-for-oauth-2-0-transaction/99929 "2023-02-07T18:57:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![n1ghtrider](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@n1ghtrider](https://community.auth0.com/u/n1ghtrider)\
**Post date:** [February 7, 2023, 6:57pm UTC](https://community.auth0.com/t/deployed-react-app-unable-to-issue-redirect-for-oauth-2-0-transaction/99929/1 "2023-02-07T18:57:26Z")

</div>

Hi, I have a React app deployed on [render.com](http://render.com). I have a /login URL which has a button that calls the Auth0 loginWithRedirect() function. After entering my details, I get the “Unable to issue redirect for OAuth 2.0 transaction” error. This error also happens when hosting the app locally on localhost:24423. The callback, origin and logout URL’s are set on the Application Details page in Auth0’s website. How can I fix this? Here is my code:

index.js

```auto
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Auth0Provider domain="MY-DOMAIN.auth0.com" clientId="MY CLIENT ID" redirectUri={window.location.origin}>
    <BrowserRouter>
      <App />
    </BrowserRouter>
  </Auth0Provider>
);

```

App.js route setup

```auto
<div id="wrapper">
{!isAuthenticated ? (
  <>
  <div>
      <Routes>
          <Route path="/login" element={<Login/>} />
      </Routes>
  </div>
  
  <NavLink to="/login">Login</NavLink>
  </>
):(
  <>
  <Header />
  <div>
      <Routes>
          <Route path="/" element={<Landing/>} />
          <Route path="/login" element={<Login/>} />
          <Route path="/properties" element={<Properties/>} />
          <Route path="/properties/:id" element={<Property/>} />
      </Routes>
  </div>
  </>
)}

```

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 8, 2023, 12:38am UTC](https://community.auth0.com/t/deployed-react-app-unable-to-issue-redirect-for-oauth-2-0-transaction/99929/2 "2023-02-08T00:38:44Z")

</div>

Hello @n1ghtrider welcome to the community!

Please see the following post to start:

> [@React+Auth0 - Unable to issue redirect for OAuth 2.0 transaction](https://community.auth0.com/t/react-auth0-unable-to-issue-redirect-for-oauth-2-0-transaction/99375/3):
>
> Hello @he_man_she welcome to the community smiley_cat Typically, that error is thrown when there is an issue with the redirect\_uri - If you inspect the network tab when clicking to log in, do you see the redirect\_uri param included in the authorize request? Additionally, I would double check to make sure whatever you expect the redirect\_uri to be is defined as an allowed callback url in your application settings in Auth0: Keep us posted!

I’d also be curious to know if our [react sample](https://github.com/auth0-samples/auth0-react-samples) functions properly in your environment?

Keep us posted!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 23, 2023, 12:39am UTC](https://community.auth0.com/t/deployed-react-app-unable-to-issue-redirect-for-oauth-2-0-transaction/99929/4 "2023-02-23T00:39:49Z")

</div>

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