Unable to issue redirect for OAuth 2.0 transaction - Vite, React (JSX), .env

Hi, so I’ve been trying to create a login system using Auth0.
This is the repo I’ve used:

I have the url and cliend id inside .env, it redirects me to login, then i get this

On Auth0 settings, I’ve added http://localhost:3000 to:
Allowed Callbacks Url, Allowed Logout Url and Allowed web origins.

Also, I’ve updated the main.jsx file to:

const root = document.getElementById('root');
ReactDOM.createRoot(root).render(
  <Auth0Provider
    domain={domain}
    clientId={clientId}
    redirectUri={window.location.origin}>
    <App />
  </Auth0Provider>
);

Any ideas? Thank you!

Hey there!

Unfortunately we won’t be able to help you here as the repo you are referencing is not developed and maintained by Auth0/Okta so it will be hard to take responsibility for someone’s else job :slight_smile: However for React we have guidance here:

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