TF-2384 Handle refresh token from flutter side when NSE refreshed token

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 1fddbec1e8030f4e25bc8b0ec5d0d05004215e56)
This commit is contained in:
dab246
2024-01-02 10:04:00 +07:00
committed by Dat H. Pham
parent b1b2bb90a5
commit aac12f5731
4 changed files with 83 additions and 22 deletions
+13
View File
@@ -82,6 +82,19 @@ class IOSSharingManager {
}
}
Future<KeychainSharingSession?> getKeychainSharingSession(AccountId accountId) async {
try {
if (await _keychainSharingManager.isSessionExist(accountId)) {
final keychainSharingStored = await _keychainSharingManager.getSharingSession(accountId);
return keychainSharingStored;
}
return null;
} catch (e) {
logError('IOSSharingManager::getKeychainSharingSession: Exception: $e');
return null;
}
}
Future<TokenOIDC?> _getTokenOidc({required String tokeHashId}) async {
try {
final tokenOidc = await _tokenOidcCacheManager.getTokenOidc(tokeHashId);