public IAuthCredential GetCredential(string email, string password)
        {
            var credential = EmailAuthProvider.GetCredentialFromPassword(email, password);

            return(new AuthCredentialWrapper(credential));
        }
        /// <summary>
        /// Attaches the given email credentials to the user. This allows the user to sign in to this account in the future with credentials for such provider.
        /// </summary>
        /// <param name="email">The user’s email address.</param>
        /// <param name="password">The user’s password.</param>
        /// <returns>Task of IFirebaseAuthResult</returns>
        public IObservable <IFirebaseAuthResult> LinkWithEmail(string email, string password)
        {
            AuthCredential credential = EmailAuthProvider.GetCredentialFromPassword(email, password);

            return(LinkWithCredentialAsync(credential).ToObservable());
        }
 public Task <AuthCredential> GetCredentialAsync(string email, string password)
 {
     return(Task.FromResult(EmailAuthProvider.GetCredentialFromPassword(email, password)));
 }