-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathIFirebaseAuthService.cs
More file actions
42 lines (36 loc) · 1.45 KB
/
IFirebaseAuthService.cs
File metadata and controls
42 lines (36 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using Firebase.Auth.Payloads;
using System.Threading.Tasks;
namespace Firebase.Auth
{
/// <summary>
/// Service interface for connecting and communicating with the Firebase Auth REST API
/// </summary>
public interface IFirebaseAuthService
{
/// <summary>
/// Creates a new user in Firebase.
/// </summary>
Task<SignUpNewUserResponse> SignUpNewUser(SignUpNewUserRequest request);
/// <summary>
/// Verifies the password for a given user. This is equivalent to signing the user in
/// with an email and password.
/// </summary>
Task<VerifyPasswordResponse> VerifyPassword(VerifyPasswordRequest request);
/// <summary>
/// Verifies the user via refresh token.
/// </summary>
Task<VerifyRefreshTokenResponse> VerifyRefreshToken(VerifyRefreshTokenRequest request);
/// <summary>
/// Sends a verification email to the provided email address
/// </summary>
Task<SendVerificationEmailResponse> SendVerification(SendVerificationEmailRequest request);
/// <summary>
/// Sends a password change request to the provided user (id token)
/// </summary>
Task<ChangePasswordResponse> PasswordChange(ChangePasswordRequest request);
/// <summary>
/// Gets the data of a specific account
/// </summary>
Task<GetUserDataResponse> GetUserData(GetUserDataRequest request);
}
}