hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

[BUG] Login does not work inside Stackblitz

Open selvinkuik opened this issue 3 years ago • 2 comments

To Reproduce

  1. Create a new demo store: https://stackblitz.com/github/Shopify/hydrogen/tree/dist/templates/demo-store-ts
  2. Create an account
  3. Try to login with that account
  4. 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

selvinkuik avatar Oct 24 '22 14:10 selvinkuik

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 avatar Oct 24 '22 14:10 juanpprieto

@juanpprieto Ah, yes it works on https://www.hydrogen.shop/ and locally

selvinkuik avatar Oct 24 '22 14:10 selvinkuik

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.

github-actions[bot] avatar Jun 18 '24 18:06 github-actions[bot]

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.

shopify[bot] avatar Jun 18 '24 18:06 shopify[bot]