mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Throw exception on refreshing token in third party builds
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user