Sharing firebase auth state with a watchOS companion app using capacitor?

Hey everyone,

I am trying to figure out how to get a watchOS companion app to share firebase auth with my capacitor/ionic react app.

So far I’m able to send messages between the two device using this nifty cordova plugin but I seem to be hitting a wall when sending the auth state from the capacitor app to the native watch app.

Firebase docs have an explanation on how to share native auth using keychain. And there are a few cordova plugins that make use of the keychain.

Hoping my efforts aren’t futile as the apps use two different SDKs (Web vs iOS). Does anyone have any knowledge in this area? Any input would be appreciated.

I have no working experience, but would it work to exchange authentication tokens?

Like idtoken - I see there is documentation on this that allows u to get the JWT

Thanks for the response! Firebase allows us to retrieve the idToken. But there doesn’t seem to be a way to authenticate the user on the client app with it. Unless I’m missing something :face_with_monocle: