Okta integration with Firebase


Has anyone integrated Okta with Firebase?

I want to use Okta for auth rather than the Firebase, however, I am running into a lot of issues.

I tried to login to Firebase using the Okta access token, using the Firebase method “signInWithCustomToken”.
However, it looks like Firebase needs a very specific JWT format which is different from the Okta produced one.

Right now I am planning to redirect from Okta login to a server where I can re-encode the JWT token in the format Firebase wants it, however, I’m running into problems because for the redirect URL, the token is provided in the # part of the URL, hence I can’t access from the server.

I feel like I’m doing something very wrong here!

Any help or pointers are greatly appreciated.