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
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Having the same issue. It is definitely related to the AuthResultHandler, since passing in null works fine. In the meantime, I'm having to settle for an ugly workaround that "times out" if the auth state never changes after a set amount of time (could also leverage AddAuthStateDidChangeListener):
Auth.DefaultInstance.SignInWithCustomToken(token, null);
// attempt for 5 seconds before giving up
var attempts = 50;
while(Auth.DefaultInstance.CurrentUser == null && attempts > 0)
{
await Task.Delay(100);
attempts--;
}
return Auth.DefaultInstance.CurrentUser;
I can +1 this issue for me on the Auth 5.0.4 package. SignInWithCustomTokenAsync and SignInWithCustomToken both throws this exception.
My app listens for auth state changes, I validated that the state change handler is fired before crashing. Auth.DefaultInstance.AddAuthStateDidChangeListener((auth, user) => StateDidChange(user, handler));
Re-raising this from #187.
The code below is still valid
The text was updated successfully, but these errors were encountered: