Handle no auth token

pull/156/head
M66B 6 years ago
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…
Cancel
Save