TopShelfCustomer/TopShelfCustomer.iOS/AuthIOS.cs
/// <summary>
/// LoginWithEmailPassword:
///
/// Takes email and password strings and logs into Firebase with them.
/// Returns UserID token on success, and empty string on failure
/// </summary>
/// <param name="email"> Email address </param>
/// <param name="password"> Password </param>
/// <returns> User ID token </returns>


Takes email and password strings and logs into Firebase with them.
Returns UserID token on success, and empty string on failure
Takes email and password strings and logs into Firebase with them . Returns UserID token on success and empty string on failure
public async Task<string> LoginWithEmailPassword ( string email, string password ) {
            try {
                var user = await Auth.DefaultInstance.SignInWithPasswordAsync( email, password );
                return await user.User.GetIdTokenAsync();
            } catch ( Exception e ) {
                Debug.WriteLine( e.Message );
                return "";
            }
        }
public async Task < string > LoginWithEmailPassword ( string email , string password ) { try { var user = await Auth . DefaultInstance . SignInWithPasswordAsync ( email , password ) ; return await user . User . GetIdTokenAsync ( ) ; } catch ( Exception e ) { Debug . WriteLine ( e . Message ) ; return " " ; } }
LoginWithEmailPassword:
LoginWithEmailPassword :
User ID token
User ID token
email
string
None
password
string
None