Comments (10)
For the Storefront API, customer login on Shopify checkout is currently not supported, except through the header (via a mobile app). We are planning on adding support for Multipass, but please note that this is only available to Plus merchants.
I have added an issue to our backlog to update the checkout guide with more explicit information regarding this.
from storefront-api-examples.
Dealing with your undocumented SDK's, poor implementations and half baked methodology is a real pain. Not a day goes passed where we hit "Wait you can't do that?".......
from storefront-api-examples.
Just want to bump this and confirm that there is still no (documented) Storefront API method to auto-login customers to the Shopify Checkout.
Multipass has been released and works as described but is not a part of the Storefront API and trying to achieve different goals.
There is a Storefront API mutation called checkoutCustomerAssociateV2 but unfortunately it only appears to set the checkout.email
property to that of the customer - which I suppose does technically meet the criteria of assigning the checkout to a customer.
FWIW the removal of the customer_access_token
query parameter would suggest that there is no Storefront API solution possible that would meet the security requirements (as they would all be effectively no more secure than a query parameter.)
The main reason this feature is important is it would remove the need for any server side logic (eg, Multipass) - however I'd assume the majority of merchants opting for custom storefronts probably don't see this as a big value add and already have server side logic.
@rebeccajfriedman is there any update on this feature coming to the Storefront API?
from storefront-api-examples.
I’ve just realised that we can associate a shipping address to a checkout. Oh man. Not sure how I’ve missed that. That way the customer has no need to log in again as they’ll see their email address and shipping already prefilled. Awesome!
from storefront-api-examples.
Just bumped into this frustrating limitation myself. Spent hours upon hours huilding a headless storefront, to find out you can't login someone via the Storefront Api when you redirect them to the check out.
Kinda weird it's possible for the mobile SDK. There has to be a way where we can generate a token server side to send along?
I'm actually sad 😞
from storefront-api-examples.
@rebeccajfriedman Thanks Rebecca! Appreciate the response. Having more explicit info in the guide will be much appreciated. Looking forward to the Multipass support for Plus clients.
from storefront-api-examples.
Facing this issue today too. Any update on implementing this into the Storefront API for non-Plus users @rebeccajfriedman?
from storefront-api-examples.
I’ve just realised that we can associate a shipping address to a checkout. Oh man. Not sure how I’ve missed that. That way the customer has no need to log in again as they’ll see their email address and shipping already prefilled. Awesome!
Looks like a good approach to associate shipping address to Checkout. However, I couldn't find any Mutation for associating Shipping Address to Checkout just like we have 'checkoutCustomerAssociateV2'. Could you please provide some more detail about how did you associate Shipping Address to Checkout? Thanks! :)
from storefront-api-examples.
@arslanramay some forum posts suggest the use of checkoutShippingAddressUpdateV2
to add the address, other Shopify docs imply you should log in with Multipass, but there are no examples of how to actually do that when you don't have a separate user system and just have a headless front end. Super frustrating!
from storefront-api-examples.
I’ve just realised that we can associate a shipping address to a checkout. Oh man. Not sure how I’ve missed that. That way the customer has no need to log in again as they’ll see their email address and shipping already prefilled. Awesome!
But you can't do it with a cart, and you need to use the cart workflow to access subscriptions.
from storefront-api-examples.
Related Issues (20)
- How can we modify checkout weburl
- Query Products within collectionByHandle HOT 1
- React-graphql-client HOT 1
- Modifying Shipping Options (Rates, Description, etc)?
- react-js-buy example: checkout.totalTax and checkout.totalPrice do not exist on type 'Cart' HOT 1
- Unable to query checkout after it's created HOT 1
- Angular 9
- Customer Mutate storefront API limitations
- variantBySelectedOptions field doesn't exist on Product HOT 2
- How to Associate Checkout when click login? HOT 20
- Shopify Storefront API returning an empty products array HOT 2
- Is it secure to store API keys on the customer with unauthenticated_read_customers?
- Unable to Generate Storefront Token HOT 1
- How to get CustomerRecover to work? Getting undefined
- CustomerRecover not returning token it returns only userErrors HOT 1
- how to check valid or expired generated token by customerRecover before customerReset HOT 1
- Payment status callback
- How to clear localstorage/cookies (cart/checkout) on custom front-end?
- shopify returning an error indicated that the cart does not exist however fetching the same cart is successful
- Wrong response body when adding cart item to cart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storefront-api-examples.