I am trying to use the Auth0 service for a Login development on React. But by the moment I can't figure out why is not working.
This is my code:
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { Auth0Provider } from '@auth0/auth0-react';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<Auth0Provider domain="lafarfalledar.eu.auth0.com" clientId="Qwzp67jsGIXKk6Swnj7hUuzLMSiU9mIG" recirectUri={window.location.origin}>
<App />
</Auth0Provider>
</React.StrictMode>
);
reportWebVitals();
And this is the error that appears:
Unable to issue redirect for OAuth 2.0 transaction
Could somebody help me?
You have a Typo there "recirectUri" should be "redirectUri"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.