[auth] Include access token and ID token in auth result

Author: henribruCreated Feb 11, 2025Updated May 16, 2026
Labelsplugin: authenticationimpact: web-implementationKeep Opentype: enhancementNeeds Attention

The upstream SDKs for iOS, Android and web allow you to get the user, additional user info, the access token and the ID token after doing an OpenID Connect sign-in. For the access token and the ID token:

However, this wrapper only seems to expose the user and the additional user info. The auth result is handled by promiseWithAuthResult on Android and iOS, and you can see that they only return those two:

On the React Native side the result goes on to _setUserCredential: https://github.com/invertase/react-native-firebase/blob/main/packages/auth/lib/index.js#L181

It would be useful to have parity with the upstream by including the tokens as well.

Source: invertase/react-native-firebase