import { registerShop, getShopWithDecryptedToken } from "./shop.server";

export async function ensureStore(shop: string) {
  return registerShop({
    shopifyDomain: shop,
    accessToken: "shpss_sample_token",
    scopes: "read_products,read_content,read_orders,write_orders,read_customers,write_customers",
  });
}

export async function getStoreById(storeId: string) {
  return getShopWithDecryptedToken(storeId);
}
