How to use the @shopify/koa-shopify-auth.createVerifyRequest function in @shopify/koa-shopify-auth

To help you get started, we’ve selected a few @shopify/koa-shopify-auth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Shopify / unite-react-node-app-workshop / server / index.js View on Github external
afterAuth(ctx) {
      const {shop, accessToken} = ctx.session;

      console.log('We did it!', shop, accessToken);

      ctx.redirect('/');
    },
  }),
);

app.keys = [SHOPIFY_SECRET];



// secure all middleware after this line
app.use(createVerifyRequest());

app.use(async function(ctx, next) {
  // log 'middleware 1'
  console.log('middleware 1');
  // then pause and wait for the next middleware
  await next();
  // then log 'back to middleware 1'
  console.log('back to middleware 1');
});

app.use(webpack());
app.use(graphQLProxy);
app.use(renderReactApp);

@shopify/koa-shopify-auth

Middleware to authenticate a Koa application with Shopify

MIT
Latest version published 2 years ago

Package Health Score

47 / 100
Full package analysis

Similar packages