1
0
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:
Kyle Spearrin
2016-07-23 02:17:11 -04:00
parent 2911af2c16
commit cf27ace05e
7 changed files with 169 additions and 14 deletions

View File

@@ -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);
}
}
}