@Provides
    Account account(Context context) {
        AccountManager accountManager = (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE);
        Account[] accounts = accountManager.getAccountsByType(context.getString(R.string.account_type));
        return accounts[0];
    }
Main module provide services and clients
app/src/main/java/com/github/pockethub/android/PocketHubModule.java