Hello,
I have used ‘customerAccessTokenCreate’ for logged in customer.
For normal flow of Shopify, when submit login form it redirects to CAPTCHA and liquid ‘customer’ object gives all data. BUT, I am trying with Storefront API. I can get AccessToken but Shopify does not give use ‘customer’ object because we haven’t inform Shopify to person logged using StoreFront APIs.
Hope you have understand my question.
Ref. https://shopify.dev/custom-storefronts/customer-accounts#create-an-access-token
const mutation = `mutation { customerAccessTokenCreate(input: {email: "${email}", password: "${password}"}) { customerAccessToken { accessToken, expiresAt }, customerUserErrors { code } } }`
Thanks.