13 lines
560 B
C#
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);
|
|
} |