public FirebaseAuthEventArgs(FirebaseAuth auth)
 {
     this.FirebaseAuth = auth;
 }
 protected void OnFirebaseAuthRefreshed(FirebaseAuth auth)
 {
     this.FirebaseAuthRefreshed?.Invoke(this, new FirebaseAuthEventArgs(auth));
 }
Exemple #3
0
        /// <summary>
        /// Links the authenticated user represented by <see cref="auth"/> with an email and password.
        /// </summary>
        /// <param name="auth"> The authenticated user to link with specified email and password. </param>
        /// <param name="email"> The email. </param>
        /// <param name="password"> The password. </param>
        /// <returns> The <see cref="FirebaseAuthLink"/>. </returns>
        public async Task <FirebaseAuthLink> LinkAccountsAsync(FirebaseAuth auth, string email, string password)
        {
            var content = $"{{\"idToken\":\"{auth.FirebaseToken}\",\"email\":\"{email}\",\"password\":\"{password}\",\"returnSecureToken\":true}}";

            return(await this.SignInWithPostContentAsync(GoogleSetAccountUrl, content).ConfigureAwait(false));
        }
 public FirebaseAuthLink(FirebaseAuthProvider authProvider, FirebaseAuth auth)
 {
     this.CopyPropertiesLocally(authProvider, auth);
 }