How to pass access token to Auth0Provider in auth0-react sdk

I’m using Google login with Auth0’s default UI and callbacks and Passwordless login with Custom UI in a NextJS app.
We are using auth0-react package and everything works perfectly with Google login.
But with custom passwordless login, I’m able to hit the API and get an access token successfully. But I don’t know how to parse and pass it to the localstorage so that the Auth0Provider would be able to read from it.

I tried using the webAuth.parseHash as well. But didn’t had any luck.