shopify-nextjs-toolbox
shopify-nextjs-toolbox copied to clipboard
A set of tools to authenticate NextJs apps with Shopify's OAuth handshake and AppBridge Session Tokens
After the integration, every time the app has to authenticate, it redirects to domain outside and redirects back to get the flow complete. Is there a way to get the...
Thank you for your amazing work, I couldn't do my own API routing with Shopify's CLI server. I tried using in `home.js`: ``` import { useAppBridge } from "@shopify/app-bridge-react"; const...
### Bug Description: Shopify throws an "Invalid Signature" error on App Subscription Charge acceptance for the merchant and they are unable to continue forward. ### To Reproduce: in pages/api/auth/callback.js: Create...
From ``` res.redirect( `${redirectPath || process.env.HOME_PATH}?${querystring.stringify( req.query )}` ); ``` To: ``` let redirectUrl; if(redirectPath && redirectPath.includes('?')) { redirectUrl = `${redirectPath}&${querystring.stringify(req.query)}` } else{ redirectUrl = `${redirectPath || process.env.HOME_PATH}?${querystring.stringify(req.query)}` } res.redirect(redirectUrl);...
Hello, I'm having a minor issue with `useShopOrigin()` after redirecting between my app routes using next JS router push, for ex: `router.push("/new-page");` after looking into the source code and knowing...
NextJS will soon be introducing a new way of including global or grouped middlewares. We'll just need to make sure `shopify-nextjs-toolbox` plays nicely with this change.