graphql-python / graphql-python/graphene

401 status code for token authentication

Open
#1,269 4 comments 8 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8.2k
Forks
818
PR merge metrics
No merged PRs in 30d

Description

I think in the case of token authentication, it would make sense to be able to return a 401, **even if** only one field errors out this way (referring to the example given in the original post). This status code is necessary to make this library compatible with authMiddleware in [React Relay Network Modern](https://github.com/relay-tools/react-relay-network-modern), which expects a 401 status code to refresh tokens.

_Originally posted by @berkcoker in https://github.com/graphql-python/graphene/issues/946#issuecomment-698617718_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.