401 when attempting to login to local hydrogen instance #2381
Unanswered
RichKucheraCQL
asked this question in
Help
Replies: 2 comments 2 replies
-
Can you try with That said, I'm not sure if this all works in dev stores... cc @michenly |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for the suggestion. Results:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am following this guide:
https://shopify.dev/docs/storefronts/headless/building-with-the-customer-account-api/hydrogen
I have a local instance of Hydrogen that's running and is connected to a dev store (not a merchant store) via Shopify's Headless app.
When I attempt to login as a customer via the Hydrogen storefront:
GET 401 render /account/authorize?code=&state=&fwd=country%3DUS
I think (but am not certain) the 401 is a result of Hydrogen calling the Customer Account API endpoint:
https://shopify.com//auth/oauth/token
My Hydrogen instance at this point is completely vanilla except for the configuration changes as called out in the Shopify docs:
https://shopify.dev/docs/storefronts/headless/hydrogen/environments#required-environment-variables
https://shopify.dev/docs/storefronts/headless/building-with-the-customer-account-api/hydrogen#add-your-ngrok-domain-to-the-content-security-policy
https://shopify.dev/docs/storefronts/headless/building-with-the-customer-account-api/hydrogen#update-the-application-setup
I suspect I have configured something wrong but I cannot tell what. The 401 returned does not include any details as to what might be missing.
Beta Was this translation helpful? Give feedback.
All reactions