mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-08 17:09:59 +08:00
feat(auth): add user information update feature and refactor the authentication service.
This commit is contained in:
@@ -4,7 +4,7 @@ using Foxel.Models.Request.Auth;
|
||||
|
||||
namespace Foxel.Services.Interface;
|
||||
|
||||
public interface IUserService
|
||||
public interface IAuthService
|
||||
{
|
||||
Task<(bool success, string message, User? user)> RegisterUserAsync(RegisterRequest request);
|
||||
Task<(bool success, string message, User? user)> AuthenticateUserAsync(LoginRequest request);
|
||||
@@ -12,4 +12,7 @@ public interface IUserService
|
||||
Task<User?> GetUserByIdAsync(int userId);
|
||||
Task<(bool success, string message, User? user)> FindOrCreateGitHubUserAsync(
|
||||
string githubId, string? githubName, string? email);
|
||||
Task<(bool success, string message, User? user)> UpdateUserInfoAsync(int userId, UpdateUserRequest request);
|
||||
string GetGitHubLoginUrl();
|
||||
Task<(bool success, string message, string? token)> ProcessGitHubCallbackAsync(string code);
|
||||
}
|
||||
Reference in New Issue
Block a user