googlesamples/google-signin-unity

When Sign-in flow cancelled, I cannot sign-in again.

berkaytndgn opened this issue · 0 comments

Hello, I am trying to implement Google Sign-In with Firebase in my Android game. So far so good nothing happens till the authentication and I can sign in. When I click the login button the native popup for account selection appears and if I select any account the authentication is successful.
Then links the Firebase anonymous user with a Google account.

But when the user clicks the login button and the native popup for account selection appears then the user clicks outside of the native popup, "which means cancel sign-in flow" I get a 12501 error code which means SIGN_IN_CANCELLED According to this link. Which is expected for sure.

upload_2024-1-7_21-38-56

The problem is, I don't know why but even if I cancelled the sign-in flow, it still authenticates me as an empty user like the picture below.

upload_2024-1-7_21-43-10

After canceling the sign-in flow if I click sign again since I am already logged in with an empty user, it bypasses the sign-in flow and goes to create credentials for Firebase. Then because it is already an empty user I get this error.

upload_2024-1-7_21-46-46

Does anyone have any information on how to resolve this situation? How do I make it to activate sign-in flow again without skipping every time I press login?