Hi there, I am having a couple of issues with the customer account. I am following this documentation https://shopify.dev/docs/custom-storefronts/building-with-the-storefront-api/customer-accounts to create my sign-up and login flow. I tested all these mutations and query in the Graphql playground and it works great. I then started coding it using Next.js 14. I create the customer account and then prompt the user to log in, when the user submits the log in form I send the request to my /api/login route, which creates the access token and saves it to an http only cookie. I then redirect the user to the /my-account page where I get this cookie and fetch for the customer itself.
The first issue I have is that this flow doesn’t work locally, not even tunneling with ngrok. It only works when I deploy it to prod. The second issue is that the accessToken I generate in my API doesn’t work in the Graphql playground, I always get customer as null.
I really would like to test this flow locally, has anyone had the same issues?