PedroBern / django-graphql-auth

Django registration and authentication with GraphQL.
https://django-graphql-auth.readthedocs.io/en/latest/
MIT License
329 stars 106 forks source link

No specific error code for JWT errors #67

Open jcampbell05 opened 4 years ago

jcampbell05 commented 4 years ago

Prerequisites

For more information, see the CONTRIBUTING guide.

Description

When there is a JWT issue the error returned will be a HTTP code 200 and the error message won't have any specific error code that can be used to identify the issue without comparing the error message itself (bad idea)

It would be great if a 400 error code could be returned or a specific error type i.e "UNAUTHENTICATED" could be returned to identify this issue

PedroBern commented 4 years ago

Related to #55, we definitely can change this if you can work on a PR :)

jcampbell05 commented 4 years ago

@PedroBern sure thing it's not super high priority in the current project I am working on but I'll contribute any tweaks I make