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

When the user is deleted and requesting new token: Internal Server Error. #181

Open
BryarGh opened this issue Jan 8, 2024 · 0 comments
Open

Comments

@BryarGh
Copy link

BryarGh commented Jan 8, 2024

So I want to resolve two things...

First:
When I'm trying to Refresh the token and the user had been deleted...
Second:
When I'm trying to get data but token had been expired.
Third:
When I'm trying to get data but the user had been deleted...

Currently this is what I'm getting back from the server when the user had been deleted in the database..:

  "errors": [
    {
      "debugMessage": "Expected a value of type \"String\" but received: instance of WP_Error",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 8,
          "column": 15
        }
      ],
      "path": [
        "refreshJwtAuthToken",
        "authToken"
      ]
    }
  ],
  "data": {
    "refreshJwtAuthToken": {
      "authToken": null
    }
  },
  "extensions": {
    "debug": [],
    "queryAnalyzer": {
      "keys": "cdaff48a05f1e2423af450a1f1fd0862b5691026a6bb2f0493c45f97d18d580b graphql:Mutation operation:RefreshAuthToken",
      "keysLength": 108,
      "keysCount": 3,
      "skippedKeys": "",
      "skippedKeysSize": 0,
      "skippedKeysCount": 0,
      "skippedTypes": []
    }
  }
}

Query:

mutation RefreshAuthToken($jwtRefreshToken: String!) {
            refreshJwtAuthToken(
              input: {
                jwtRefreshToken: $jwtRefreshToken
              }
            ) {
              authToken
            }
          }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant