How I can get token created after auth0-react login inside a vanilla js using auth0-spa-js?

After auth–react login, I wanted to get token silently into a vanilla script page without any dependency, how can I achieve this. Now when I am trying to get the toke using auth0-spa-js it is saying “Login required”, even though I logged using auth0-react.
Can someone help me here .?