Shopify / checkout-sheet-kit-swift

Shopify’s Checkout Sheet Kit makes it simple to perform a checkout inside your Swift native app.
MIT License
38 stars 16 forks source link

Login customer using their access token #188

Closed developerjigr closed 4 months ago

developerjigr commented 4 months ago

What area is the issue related to?

Checkout Sheet Kit

What version of Checkout Sheet Kit are you using?

latest

Reproducible sample code

No response

Steps to Reproduce

Set X-Shopify-Customer-Access-Token header. Open Checkout Web View

How do we log in the customer automatically now?

Expected Behavior

Pass header for customer access token and it should log in the customer automatically - Before we used to be able to pass X-Shopify-Customer-Access-Token

Actual Behavior

User needs to log in every time

Screenshots/Videos/Log output

No response

Storefront domain

All

Yiqian-karatpackaging commented 4 months ago

Same issue here. any update?

developerjigr commented 4 months ago

Same issue here. any update?

Shopify has gone too mainstream to think about us poor developers 😂 I feel like Oliver Twist. - @shopify please would it be possible for you to ask someone from your mobile iOS team working on the checkout WebKit project these questions, thank you! And then can you do it?

kiftio commented 4 months ago

Apologies for the delayed response

Unfortunately the X-Shopify-Customer-Access-Token header is not supported in checkout extensibility, in web or in Checkout Sheet Kit.

There will be an alternative mechanism for logging customers in, although it wont be header based. Instead when you associate a customer with a cart via customer access token the customer will be authenticated when they land in checkout. We don't expect any additional changes to your app will be required.

I'm afraid I can't give an exact timeline, other than to say it's currently being worked on.

developerjigr commented 4 months ago

Apologies for the delayed response

Unfortunately the X-Shopify-Customer-Access-Token header is not supported in checkout extensibility, in web or in Checkout Sheet Kit.

There will be an alternative mechanism for logging customers in, although it wont be header based. Instead when you associate a customer with a cart via customer access token the customer will be authenticated when they land in checkout. We don't expect any additional changes to your app will be required.

I'm afraid I can't give an exact timeline, other than to say it's currently being worked on.

Legend, thank you! No worries, understandable with the timeline - but it’s good to know there is the solution for this that we can look forward to making use of! Tyty