Hi from Belgium everyone ! I wave a React website using “@auth0/auth0-react”: “^1.9.0”, and both works fine and smoothly. My two left concerns are the following (long questions, but surely with easy answers):
-
is there a way for React to be aware of auto disconnection from Auth0 (callback, webhook)? I’d like to warn the user reading a long text that he has been automatically disconnected, but to succeed that I have to catch the corresponding event, if any.
-
I would like permit my users to connect from any page within my website (Connect button available on every “unregistered area” pages) AND stay on that page after login. The problem is that, on Auth0 dashboard, I don’t see any way of wildcarding “Allowed Callback URLs”, and as my website is dynamic, I am just not able to add all possibles callback URLs. Any hint on this? Or, at least, may I pass to Auth0 some data which will, in return, be sent back to my website? In that case, I would be able to manage the redirection myself.
Thank you very much for your help.