How to integrate auth0-spa-js with Firebase authentication?

I followed the SPA Quickstart religiously (https://auth0.com/docs/quickstart/spa/react) to integrate Auth0 into my React 16.12 app, and everything works fine on the React+Auth0 front. The last step I need to integrate now is to intercept the redirect in order to get the Auth0 access token, send it to my backend to exchange it for a Firebase token (Firebase function call), and then use the Firebase token to open a Firebase session (custom token authentication).

Any idea of how I can do that?

1 Like

Hello!

It seems like someone had this question in the past and it was resolved here

I hope this helps.

Thank you!

1 Like

I used that before, but that won’t work with the new hook-based SDK