-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passwordless login in Mobile SDK #1224
Comments
We'd love to be able to support this in our mobile apps as well! |
Any updates on this? I want to implement login with website, and redirect back to the iOS app. Is this possible currently? |
You can implement password less login using the Customer Account API:
Previously, you had to exchange the Customer access token to a Storefront access token using the |
Hi @yalp, how can I use the Customer access token directly in the MobileSDK? It won't work. From the above mentioned 4. The app uses the code to make the /oauth/token request to retrieve a Customer access token., I get this
If take let buyerInput = Storefront.BuyerInput.create(customerAccessToken: accessToken)
let context = Storefront.InContextDirective(buyer: buyerInput)
let customerQuery = Storefront.buildQuery(inContext: context) { $0
.shop { $0
.name()
}
.customer(customerAccessToken: accessToken) { $0
.id()
.firstName()
.lastName()
.email()
.addresses { $0
.edges { $0
.node { $0
.address1()
.address2()
.city()
.company()
.country()
.firstName()
.lastName()
.province()
.provinceCode()
.phone()
.zip()
}
}
}
}
} |
The output is see his profile: <QueryRoot: ["shop": {
name = "The shop name";
}, "customer": <null>]> |
Hi Team,
I was just wondering if we will have a Passwordless login approach in mobile SDK. That will help people who have different authentication inside Mobile apps.
https://www.shopify.com/partners/blog/introducing-customer-account-api-for-headless-stores
Also, Is there any way to use Firebase Authentication to log customers in the Shopify site to retrieve Customer data?
The text was updated successfully, but these errors were encountered: