TF-886 Implement GetAuthenticationInfo stored in repository and datasource

This commit is contained in:
dab246
2022-09-06 19:10:50 +07:00
committed by Dat H. Pham
parent b95d294a3c
commit f108f5c726
7 changed files with 21 additions and 40 deletions
@@ -46,10 +46,7 @@ class DownloadAttachmentForWebInteractor {
if (currentAccount.authenticationType == AuthenticationType.oidc)
_authenticationOIDCRepository.getStoredTokenOIDC(currentAccount.id)
else
...[
credentialRepository.getUserName(),
credentialRepository.getPassword()
]
credentialRepository.getAuthenticationInfoStored()
], eagerError: true).then((List responses) async {
AccountRequest accountRequest;
@@ -40,10 +40,7 @@ class DownloadAttachmentsInteractor {
if (account.authenticationType == AuthenticationType.oidc)
_authenticationOIDCRepository.getStoredTokenOIDC(account.id)
else
...[
credentialRepository.getUserName(),
credentialRepository.getPassword()
]
credentialRepository.getAuthenticationInfoStored()
], eagerError: true
).then((List responses) async {
AccountRequest accountRequest;
@@ -39,10 +39,7 @@ class ExportAttachmentInteractor {
if (account.authenticationType == AuthenticationType.oidc)
_authenticationOIDCRepository.getStoredTokenOIDC(account.id)
else
...[
credentialRepository.getUserName(),
credentialRepository.getPassword()
]
credentialRepository.getAuthenticationInfoStored()
], eagerError: true
).then((List responses) async {
AccountRequest accountRequest;