Throw exception on refreshing token in third party builds

pull/156/head
M66B 5 years ago
parent 1f989b2499
commit 6e54c67429

@ -279,6 +279,9 @@ public class ConnectionHelper {
static String refreshToken(Context context, String type, String name, String current)
throws AuthenticatorException, OperationCanceledException, IOException {
if (!Helper.hasValidFingerprint(context))
throw new IllegalArgumentException("Please see the FAQ question 109");
AccountManager am = AccountManager.get(context);
Account[] accounts = am.getAccountsByType(type);
for (Account account : accounts)

Loading…
Cancel
Save