Hello, I’m contacting you to solve my problem.
I’m just following https://github.com/hgezim/express-shopify-auth to authenticate my app.
But I can’t replace the ‘COOKIE_SESSION_SECRET’ in the code.
Someone please tell me how can I get my cookie session secret key and replace the word.
I represent the code on the github page below:
const verifyRequest = new VerifyAuthMiddleware()
// sets up secure session data on each request
app.use(cookieSession({ secure: true, sameSite: 'none', secret: **COOKIE_SESSION_SECRET** }))
// bind instance of ShopifyAuthMiddleware
.use(shopifyAuth.use.bind(shopifyAuth))
// bind instance of VerifyAuthMiddleware
.use(verifyRequest.use.bind(verifyRequest))
// application code
.use((req, res, next) => {
res.send('?')
})
;
app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))