React Quickstart causing error upon clicking the login button
charlesanthonyalfonso opened this issue · comments
Checklist
- The issue can be reproduced in the auth0-spa-js sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the documentation and API documentation, and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I followed the React Quickstart instruction.
Upon reaching in Add Login to Your Application
section, I can see the button.
however when i click the login button it does not do anything.
and i see a console error
Reproduction
- follow react quickstart instruction
- when you already added a login button, try to click that button and the error message appears
Additional context
No response
auth0-spa-js version
2.2.4
Which framework are you using (React, Angular, Vue...)?
Vite with React
Framework version
Vite@5.0.8 and React@18.2.0
Which browsers have you tested in?
Chrome
Can you show your Auth0Provider (if using Auth0-React) or Auth0Client (if using Auth0-SPA-JS), including the values passed to it?
From the error, it looks like the domain isnt set correctly.
This can be closed now, it was my fault i had provided a wrong domain and clientId in the Auth0Provider.
Thank you.