mirror of https://github.com/M66B/FairEmail.git
Throw exception on refreshing token in third party builds
This commit is contained in:
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…
Reference in New Issue