You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I think this is more about the missing ability (or knowledge) of being able to control the status code being sent from within a nexus plugin. I've solved this for now by simply adding a express middleware to nexus via server.express.use(). Might also be possible via https://nexusjs.org/api/nexus/schema#example-simple-middlewares, but felt less appropriate as its not really related to the schema.
Nexus Report
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.The text was updated successfully, but these errors were encountered: