Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
router.get("/settings", async (ctx) => {
const session = await Shopify.Utils.loadCurrentSession(ctx.req, ctx.res);
const shop =;
// This shop hasn't been seen yet, go through OAuth to create a session
if (session === undefined || ACTIVE_SHOPIFY_SHOPS[shop] === undefined) {
ctx.status = 200;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment