PedroBern / django-graphql-auth

Django registration and authentication with GraphQL.

Home Page:https://django-graphql-auth.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to use passwordReset mutation

saturne08 opened this issue · comments

Prerequisites

  • Is it a bug?
  • Is it a new feature?
  • Is it a a question?
  • Can you reproduce the problem?
  • Are you running the latest version?
  • Did you check for similar issues?
  • Did you perform a cursory search?

Description

When I use the graphiQL to do a mutation passwordReset it does not work at all.

Steps to Reproduce

mutation {
  passwordReset(
    token: "eyJ1c2VybmFtZSI6InJvbWFyaWM5MSIsImFjdGlvbiI6InBhc3N3b3JkX3Jlc2V0In0:1lFLna:UYzR_982mIBnv6KiTqbMilAHpeSo5GV67-Y_DzBfoi4",
    newPassword1: "mynewpassword123",
    newPassword2: "mynewpassword123"
  ) {
  }
}

Expected behavior

{
  "data": {
    "passwordReset": {
      "success": true,
      "errors": null
    }
  }
}

Actual behavior

{
  "errors": [
    {
      "message": "Syntax Error GraphQL (156:3) Expected Name, found }\n\n155:   ) {\n156:   }\n       ^\n157: }\n",
      "locations": [
        {
          "line": 156,
          "column": 3
        }
      ]
    }
  ]
}

Requirements

GraphiQL

My configuration was wrong.