Exemple #1
0
 /// <summary>
 /// Sends user an email with a link to verify his email address.
 /// </summary>
 /// <param name="auth"> The authenticated user to verify email address. </param>
 public async Task <User> GetUserAsync(FirebaseAuth auth)
 {
     return(await this.GetUserAsync(auth.FirebaseToken).ConfigureAwait(false));
 }
Exemple #2
0
 /// <summary>
 /// Links the authenticated user represented by <see cref="auth"/> with an account from a third party provider.
 /// </summary>
 /// <param name="auth"> The auth. </param>
 /// <param name="authType"> The auth type.  </param>
 /// <param name="oauthAccessToken"> The access token retrieved from login provider of your choice. </param>
 /// <returns> The <see cref="FirebaseAuthLink"/>.  </returns>
 public async Task <FirebaseAuthLink> LinkAccountsAsync(FirebaseAuth auth, FirebaseAuthType authType, string oauthAccessToken)
 {
     return(await this.LinkAccountsAsync(auth.FirebaseToken, authType, oauthAccessToken).ConfigureAwait(false));
 }
Exemple #3
0
 /// <summary>
 /// Unlinks the given <see cref="authType"/> from the authenticated user represented by <see cref="auth"/>.
 /// </summary>
 /// <param name="auth"> The auth. </param>
 /// <param name="authType"> The auth type.  </param>
 /// <returns> The <see cref="FirebaseAuthLink"/>.  </returns>
 public async Task <FirebaseAuthLink> UnlinkAccountsAsync(FirebaseAuth auth, FirebaseAuthType authType)
 {
     return(await this.UnlinkAccountsAsync(auth.FirebaseToken, authType).ConfigureAwait(false));
 }
Exemple #4
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)
 {
     return(await this.LinkAccountsAsync(auth.FirebaseToken, email, password).ConfigureAwait(false));
 }
Exemple #5
0
 /// <summary>
 /// Sends user an email with a link to verify his email address.
 /// </summary>
 /// <param name="auth"> The authenticated user to verify email address. </param>
 public async Task SendEmailVerificationAsync(FirebaseAuth auth)
 {
     await this.SendEmailVerificationAsync(auth.FirebaseToken).ConfigureAwait(false);
 }
 public FirebaseAuthEventArgs(FirebaseAuth auth)
 {
     this.FirebaseAuth = auth;
 }
 public FirebaseAuthLink(IFirebaseAuthProvider authProvider, FirebaseAuth auth)
 {
     this.CopyPropertiesLocally(authProvider, auth);
 }
 protected void OnFirebaseAuthRefreshed(FirebaseAuth auth)
 {
     this.FirebaseAuthRefreshed?.Invoke(this, new FirebaseAuthEventArgs(auth));
 }