Exemplo n.º 1
0
 public async void SteamAuth(ulong userid)
 {
     SteamUserId       = userid;
     firebase_database = new DatabaseHandler();
     if (await firebase_database.AccountExistsAsync(SteamUserId.ToString()))
     {
         // If the Steam user exists, sign them in with the Steam user ID appended to '@clanbutton.com'.
         auth.SignInWithEmailAndPassword($"{SteamUserId.ToString()}@clanbutton.com", "nopass");
         StartActivity(new Android.Content.Intent(this, typeof(MainActivity)));
         Finish();
     }
     else
     {
         // Otherwise, create the user.
         auth.CreateUserWithEmailAndPassword($"{SteamUserId.ToString()}@clanbutton.com", "nopass").AddOnCompleteListener(this);
         // This then calls the OnCompleteListener method OnComplete().
     }
 }