TF-1974 Check refreshToken is not empty when calling appAuth.token()
(cherry picked from commit 4d06516a91d0c8c9ecf66275abe5f825309c4bba)
This commit is contained in:
@@ -72,7 +72,8 @@ class DownloadAttachmentsInteractor {
|
||||
}
|
||||
} catch (exception) {
|
||||
log('DownloadAttachmentsInteractor::execute(): $exception');
|
||||
if (exception is DownloadAttachmentHasTokenExpiredException) {
|
||||
if (exception is DownloadAttachmentHasTokenExpiredException &&
|
||||
exception.refreshToken.isNotEmpty) {
|
||||
yield* _retryDownloadAttachments(
|
||||
accountId,
|
||||
baseDownloadUrl,
|
||||
|
||||
Reference in New Issue
Block a user