mirror of https://github.com/M66B/FairEmail.git
Handle no auth token
This commit is contained in:
parent
7533fc067c
commit
09d21c070b
|
@ -1045,6 +1045,8 @@ public class Helper {
|
|||
Log.i("Refreshing token");
|
||||
am.invalidateAuthToken(type, current);
|
||||
String refreshed = am.blockingGetAuthToken(account, getAuthTokenType(type), true);
|
||||
if (refreshed == null)
|
||||
throw new OperationCanceledException("no token");
|
||||
Log.i("Refreshed token");
|
||||
return refreshed;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue