How to create code in graphql for login page with password field

Topic summary

Implementing a customer login/registration flow in Shopify via GraphQL, with a need to include a password field.

  • Original approach: The poster used an Admin API mutation (customerCreate with CustomerInput) and attempted to store a password as a customer metafield (namespace/key: “password”, value: “rob”), alongside email, lastName, and phone. A screenshot was provided but not essential to follow the discussion.

  • Clarification: A responder asked if this is a customer-facing login page and where it would be accessible. The poster confirmed it’s for customer login and registration.

  • Guidance given: The responder pointed to the Storefront API’s customerCreate mutation for this use case and requested more detail on the exact requirements.

  • Current blocker: The poster specifically wants to know how to add a password field in both the login and registration GraphQL queries.

Status: No final solution provided. The thread remains open, awaiting concrete instructions on implementing a password field for customer login/registration using the Storefront API (versus the attempted Admin-side metafield approach).

Summarized with AI on January 10. AI used: gpt-5.

i want to add [password field in login and registration query how it is possible ?