Skip to content

GraphQL generateCustomerToken not working with correct credentials while frontend login works fine

Normal customer account login works fine on frontend but GraphQL mutation

mutation {
  generateCustomerToken(email: "[email protected]", password: "*******") {
    token
  }
}

show below error even with same credentials

The account sign-in was incorrect or your account is disabled
temporarily. Please wait and try again later.

I have tried by passing Store in Header, but facing same error.

I am facing this error after I have changed password using GraphQL Mutation changeCustomerPassword, but that updated password is working fine in customer login in website. Facing this error in GraphQL only.

Anyone faced same error or can you help me with this case?