如何在突变客户重置中设置正确的重置令牌

时间:2018-08-27 09:14:43

标签: shopify

您好,我现在有这个查询,是gragh ql突变

mutation  {
  customerReset(
    id: "Z2lkOi8vc2hvcGlmeS9DdXN0b21lci83NTIwODE0MzY3NjE=" , 
    input:{
      resetToken:"ae0f1d2e179c9571122a0595a6ac8125=",
      password: "12345"
    }) {
    userErrors {
      field
      message
    }
    customer {
      id
    }
  }
}

但我收到此错误

{
  "data": {
    "customerReset": {
      "userErrors": [
        {
          "field": null,
          "message": "Invalid reset token"
        }
      ],
      "customer": null
    }
  }
}

如何设置正确的重置令牌:请检查 https://help.shopify.com/en/api/custom-storefronts/storefront-api/reference/scalar/string

预先感谢

0 个答案:

没有答案