public static boolean hasOAuthAuthorization(final int tokenPublicPrefKeyId, final int tokenSecretPrefKeyId) {
        return StringUtils.isNotBlank(getString(tokenPublicPrefKeyId, ""))
                && StringUtils.isNotBlank(getString(tokenSecretPrefKeyId, ""));
    }
this method is to be solely used for auto-fixing GC username, see MainActivity.UpdateUserInfoHandler
main/src/main/java/cgeo/geocaching/settings/Settings.java