@auth0/auth0-react and I would like to display a welcome message (like “Hello user.nickname”) after a login and eventually store
localStorage to prevent same message again when reloading the page.
But I can’t find the right event or hook to do something like that.
onRedirectCallback on the
Auth0Provider component but I don’t have the context of the user yet.
useEffect hook on
user value but I can’t remove
welcome=true when the user logout.
Are there any events to do this? Like onLogin/onLogout or something like that ?