Ichen Chhoeng ff0e97e36b blah
2025-11-17 11:25:33 +07:00

13 lines
560 B
C#

using khmereid_backend.Dtos;
namespace khmereid_backend.Integrations;
public interface IAuthnApi
{
public Task<dynamic> Logout(string sessionToken);
public Task<SessionDto> GetMeAsync(string sessionToken);
public Task<FlowDto> CreateOtpLoginFlowAsync(string phone);
public Task<FlowDto> CreateOtpRegistrationFlowAsync(string phone);
public Task<LoginResultDto> CompleteOtpLoginFlowAsync(string flowId, string phone, string otp);
public Task<SignupResultDto> CompleteOtpRegistrationFlowAsync(string flowId, string phone, string otp);
}