TopShelfCustomer/TopShelfCustomer.Android/AuthDroid.cs
/// <summary>
/// RegisterWithEmailPassword"
///
/// Takes email and password strings and registers a Firebase account with them.
/// </summary>
/// <param name="email"> Email Address </param>
/// <param name="password"> Password </param>
/// <returns> User ID token </returns>


Takes email and password strings and registers a Firebase account with them.
Takes email and password strings and registers a Firebase account with them .
public async Task<string> RegisterWithEmailPassword ( string email, string password ) {
            try {
                var signUpTask = await FirebaseAuth.Instance.CreateUserWithEmailAndPasswordAsync( email, password );
                if ( signUpTask != null ) {
                    return signUpTask.ToString();
                }
                return "";
            } catch ( Exception e ) {
                Debug.WriteLine( e.Message );
                return "";
            }
        }
public async Task < string > RegisterWithEmailPassword ( string email , string password ) { try { var signUpTask = await FirebaseAuth . Instance . CreateUserWithEmailAndPasswordAsync ( email , password ) ; if ( signUpTask != null ) { return signUpTask . ToString ( ) ; } return " " ; } catch ( Exception e ) { Debug . WriteLine ( e . Message ) ; return " " ; } }
RegisterWithEmailPassword"
RegisterWithEmailPassword "
User ID token
User ID token
email
string
None
password
string
None