I’ve implemented Auth0 in an app made with React-Vite.
The question is that when I do the Login or Logout I get an error that the page does not have access in Allowed Logout URLs.
My main route right now is:
http://localhost:3002
I have other routes like:
http://localhost:3002/contact
http://localhost:3002/blog
I added the following under Allowed Logout URLs and Allowed Callback Origins:
http://localhost:3002
http://localhost:3002/blog
http://localhost:3002/contact
Do I have to add route by route? or
How do I do the login and logout in 1 line and redirect me to the previous page from any page? Something like:
http://localhost:3002/*
In the logout button, I have the following:
onClick={() => logout({ logoutParams: { returnTo: window.location.href } })}