Using @auth0/auth0-spa-js outside of a React Component

I updated the gist with the solution that is working well for me.