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

I followed the SPA Quickstart religiously (Auth0 React SDK Quickstarts: Login) 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

Did you even get this to work?

I got this to work. I used auth-spa-js, and got it to work with firebase. My limited knowledge of angular is what was holding me back. That above post worked.

1 Like

Perfect! Glad to hear that!