Skip to content

Nexus returns status code 500 when JWT is expired #10

@sreuter

Description

@sreuter

Nexus Report

{
  "node": "v12.14.0",
  "os": {
    "platform": "darwin",
    "release": "18.7.0"
  },
  "nexus": "^0.26.1",
  "plugins": [
    "nexus-plugin-auth0",
    "nexus-plugin-user-context",
    "nexus-plugin-shield",
    "nexus-plugin-prisma"
  ],
  "otherDependencies": {
    "@types/jwt-decode": "^2.2.1",
    "jwt-decode": "^2.2.0",
    "typescript": "^3.7.5"
  },
  "devDependencies": {
    "@types/jest": "^26.0.8",
    "jest": "^26.2.2",
    "nodemon": "^2.0.2",
    "prettier": "^2.0.5",
    "ts-jest": "^26.1.4",
    "ts-node": "^8.6.2"
  },
  "hasAppModule": true,
  "packageManager": "yarn",
  "errorsWhileGatheringReport": {
    "gettingLayout": null,
    "gettingPluginManifests": null
  }
}

Description

Nexus returns 500 with this plugin whenever a JWT is expired. It should return a 401 instead, so that a client can react according and refresh its token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions