mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 23:33:34 +00:00
support for two factor login flow
This commit is contained in:
@@ -131,6 +131,13 @@ namespace Bit.App.Services
|
||||
return _cryptoService.Key != null && Token != null && UserId != null;
|
||||
}
|
||||
}
|
||||
public bool IsAuthenticatedTwoFactor
|
||||
{
|
||||
get
|
||||
{
|
||||
return _cryptoService.Key != null && Token != null && UserId == null;
|
||||
}
|
||||
}
|
||||
|
||||
public string PIN
|
||||
{
|
||||
@@ -179,5 +186,11 @@ namespace Bit.App.Services
|
||||
// TODO: move more logic in here
|
||||
return await _authApiRepository.PostTokenAsync(request);
|
||||
}
|
||||
|
||||
public async Task<ApiResult<TokenResponse>> TokenTwoFactorPostAsync(TokenTwoFactorRequest request)
|
||||
{
|
||||
// TODO: move more logic in here
|
||||
return await _authApiRepository.PostTokenTwoFactorAsync(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user