[BUG] Login does not work inside Stackblitz
To Reproduce
- Create a new demo store: https://stackblitz.com/github/Shopify/hydrogen/tree/dist/templates/demo-store-ts
- Create an account
- Try to login with that account
- Notice that
const { customerAccessToken } = useSession()is still undefined
Expected behaviour
Logging in after creating an account should give a valid customerAccessToken
Additional context I did also try connecting this to my own store to see if it was an issue with the demo Shopify account, but I was still able to replicate the problem on my store
Hi @selvinkuik,
Thanks for reporting. There seems to be some issue with the cookie within the Stackblitz web container environment.
Could you validate this is an issue also on https://www.hydrogen.shop or when running the demo store locally?
@juanpprieto Ah, yes it works on https://www.hydrogen.shop/ and locally
We detected some changes in packages/*/package.json or packages/*/src, and there are no updates in the .changeset.
If the changes are user-facing and should cause a version bump, run npm run changeset add to track your changes and include them in the next release CHANGELOG.
If you are making simple updates to examples or documentation, you do not need to add a changeset.
Oxygen deployed a preview of your hl-update-change-log branch. Details:
| Storefront | Status | Preview link | Deployment details | Last update (UTC) |
|---|---|---|---|---|
| classic-remix | ✅ Successful (Logs) | Preview deployment | Inspect deployment | June 18, 2024 6:28 PM |
| metaobjects | ✅ Successful (Logs) | Preview deployment | Inspect deployment | June 18, 2024 6:28 PM |
| optimistic-cart-ui | ✅ Successful (Logs) | Preview deployment | Inspect deployment | June 18, 2024 6:28 PM |
| third-party-queries-caching | ✅ Successful (Logs) | Preview deployment | Inspect deployment | June 18, 2024 6:28 PM |
| custom-cart-method | ✅ Successful (Logs) | Preview deployment | Inspect deployment | June 18, 2024 6:28 PM |
| Skeleton (skeleton.hydrogen.shop) | ✅ Successful (Logs) | Preview deployment | Inspect deployment | June 18, 2024 6:28 PM |
Learn more about Hydrogen's GitHub integration.