Query in GraphQL for customer account login - The one where customer log in using a one-time 6-dig

Query in GraphQL for customer account login - The one where customer log in using a one-time 6-dig

Hwassef
Visitor
1 0 0

Hello Shopify Community!

I’m trying to implement a customer login flow where customers can log in using a one-time 6-digit code sent to their email. I want to know how I can query Shopify’s GraphQL API to handle this authentication process.

Specifically, I need guidance on the following:

  1. How can I create a mutation to send a one-time 6-digit code to the customer's email address via GraphQL?
  2. Once the customer enters the code, how can I verify and log them in using GraphQL?

Any insights, examples, or best practices for implementing this type of login flow in Shopify using GraphQL would be much appreciated!

Thank you in advance!

Replies 0 (0)