Advice for silent login after custom sign up

Hi,

We’re implementing our own sign up form. Our SPA calls our backend to create a user, which handles creation in auth0 via management api and also a bunch of other tasks in our infrastructure. We then want the user to be redirected to the app without needing to go via the login screen.

I understand that we cannot login via the JS SDK client-side using username and password. I know our backend could login and get an id token which it passed back to the frontend but how do I authenticate the auth0 client on the frontend using an access token? The best I could come up with was constructing a local storage entry myself to ‘spoof’ a login but this seems hacky and breakable.

Any advice?

Previous message deleted due to SPAM reasons