I have a React web app set up. It’s hooked up to a new tenant. Login/logout functionality all work.
I want to make it so that when the user closes their tab or browser, I log out of Auth0 as well. Normally I would accomplish logout by using the Auth0JS library’s logout method. I could call this method using the onbeforeunload event, I suppose, but I’m concerned that Auth0 won’t have a chance to finish the logout process before the window/tab closes.
Sorry for such a delayed response! We’re doing our best in providing you with the best developer support experience out there but sometimes our bandwidth is just not enough for all the questions coming in. Sorry for the inconvenience!
Can you let us know if you still require further assistance from us?