private static ExpressionList<User> getAuthUserFind(final AuthUserIdentity identity) { return find.where() .eq("active", true) .eq("linkedAccounts.providerUserId", identity.getId()) .eq("linkedAccounts.providerKey", identity.getProvider()); }
private static ExpressionList<User> getEmailUserFind(final String email) { return find.where().eq("active", true).eq("email", email); }