main project split, authpassword endpoint created

This commit is contained in:
2026-01-20 02:14:01 +01:00
Unverified
parent a01e8666a3
commit 49e6c8a643
32 changed files with 246 additions and 104 deletions

View File

@@ -0,0 +1,21 @@
namespace TimetableDesigner.Backend.Services.Authentication.Core.Commands.AuthPassword;
public record AuthPasswordResult
{
public bool IsSuccess { get; }
public string? AccessToken { get; }
public string? RefreshToken { get; }
private AuthPasswordResult(bool isSuccess, string? accessToken, string? refreshToken)
{
IsSuccess = isSuccess;
AccessToken = accessToken;
RefreshToken = refreshToken;
}
public static AuthPasswordResult Success(string accessToken, string refreshToken) =>
new AuthPasswordResult(true, accessToken, refreshToken);
public static AuthPasswordResult Failure() =>
new AuthPasswordResult(false, null, null);
}