How to logout without reload

Hi,

I am testing auth0 and I’ve got everything working.
But I notice both login and logouts perform a page reload.
I’ve discovered auth0-lock, which allows me to show a login screen without a form reload or redirect.
But the logout method still performs a reload.
I saw another community answer where it said to clear out the tokens, but I can’t seem to figure out how to do that.

Is there a way, with or without lock, to perform a logout without reloading the page?

Thanks

here’s how I did it: Auth0js - logout without redirect - #7 by NullVoxPopuli