mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 08:43:21 +00:00
20 lines
561 B
C#
20 lines
561 B
C#
using System.Threading.Tasks;
|
|
using Bit.App.Models.Api;
|
|
|
|
namespace Bit.App.Abstractions
|
|
{
|
|
public interface IAuthService
|
|
{
|
|
bool IsAuthenticated { get; }
|
|
bool IsAuthenticatedTwoFactor { get; }
|
|
string Token { get; set; }
|
|
string UserId { get; set; }
|
|
string Email { get; set; }
|
|
string PIN { get; set; }
|
|
|
|
void LogOut();
|
|
Task<ApiResult<TokenResponse>> TokenPostAsync(TokenRequest request);
|
|
Task<ApiResult<TokenResponse>> TokenTwoFactorPostAsync(TokenTwoFactorRequest request);
|
|
}
|
|
}
|