Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);