This JavaScript code sample demonstrates how to implement authentication in a React application that uses React Router 6. You can integrate the Auth0 React SDK with React Router 6 to create route guards in React.
I get this error every time the user logs in, it keeps repeating after login, every time I try to access a path protected by Auth (/profile for example)
Error... Cannot read properties of undefined (reading 'send')
I already tried to use several Auth0 applications with their different clientId, everything else is correct, I don't understand why it really happens.
Steps to follow to repeat the error:
Run the app with all its configuration
Go to the HomePage and press Login or Signup
Register/Log in
The error occurs when entering the path /profile or when redirected to the HomePage after login
I get this error every time the user logs in, it keeps repeating after login, every time I try to access a path protected by Auth (/profile for example)
Error... Cannot read properties of undefined (reading 'send')
I already tried to use several Auth0 applications with their different clientId, everything else is correct, I don't understand why it really happens.
Steps to follow to repeat the error:
/profile
or when redirected to the HomePage after loginFull URL Error:
Image Example