You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meaning that this service is lazy, not created until requested.
However, that leads to a failure in FirebaseAuthGoogleImplementation.HandleActivityResultAsync if IFirebaseAuthGoogle wasn't ever requested.
So in my case, OnActivityResult is invoked for reasons not related to Google Auth. FirebaseAuthGoogleImplementation.HandleActivityResultAsync should simply do nothing. But because FirebaseAuthGoogleImplementation._googleAuth is null, it fails with NRE.
I was able to workaround that be replacing DI setup with this:
In this case, FirebaseAuthGoogleImplementation is initialized on startup, and therefore doesn't fail. However, that probable negatively affects startup performance.
The text was updated successfully, but these errors were encountered:
The suggested DI setup for Google Auth is the following:
Meaning that this service is lazy, not created until requested.
However, that leads to a failure in
FirebaseAuthGoogleImplementation.HandleActivityResultAsync
ifIFirebaseAuthGoogle
wasn't ever requested.So in my case,
OnActivityResult
is invoked for reasons not related to Google Auth.FirebaseAuthGoogleImplementation.HandleActivityResultAsync
should simply do nothing. But becauseFirebaseAuthGoogleImplementation._googleAuth
is null, it fails with NRE.I was able to workaround that be replacing DI setup with this:
In this case,
FirebaseAuthGoogleImplementation
is initialized on startup, and therefore doesn't fail. However, that probable negatively affects startup performance.The text was updated successfully, but these errors were encountered: