Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customer query without parameters is not working with just an Auth Header #275

Closed
protob opened this issue May 1, 2020 · 0 comments · Fixed by #255
Closed

customer query without parameters is not working with just an Auth Header #275

protob opened this issue May 1, 2020 · 0 comments · Fixed by #255
Assignees
Labels
bug Something isn't working

Comments

@protob
Copy link

protob commented May 1, 2020

Describe the bug
The customer query with just an Auth Header is not working without parameters

To Reproduce

  1. Fire the customer query with valid Authorization header (Bearer TokenString)
query {
  customer {
    id
    customerId
    orderCount
    totalSpent
    orders {
      nodes {
        id
      }
    }
    username
    email
  }
}
  1. It returns new_customer data
{
  "data": {
    "customer": {
      "id": "new_customer",
      "customerId": null,
      "isVatExempt": false,
      "hasCalculatedShipping": false,
      "calculatedShipping": false,
      "orderCount": 0,
      "totalSpent": 0,
      "orders": {
        "nodes": []
      },
      "username": null,
      "email": null
    }
  }
}

Expected behavior
It should return the data of the user associated with the provided JWT token.

@protob protob changed the title [bug] - customer query with just an Auth Header is not working without parameters [bug] - customer query without parameters is not working with just an Auth Header May 1, 2020
@kidunot89 kidunot89 mentioned this issue May 1, 2020
7 tasks
@kidunot89 kidunot89 added the bug Something isn't working label May 1, 2020
@kidunot89 kidunot89 changed the title [bug] - customer query without parameters is not working with just an Auth Header customer query without parameters is not working with just an Auth Header May 1, 2020
@kidunot89 kidunot89 self-assigned this May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants