Add quick example of syntax transport "auth" parameter expects (e.g when using GitHub personal access token)? #175
Labels
type: question or discussion
Issue discussing or asking a question about gql
Might you provide documentation of that parameter?
Here is what I see, now.
gql/gql/transport/requests.py
Lines 50 to 51 in d3f79e7
What might that expect for, say, using a GitHub personal access token (which I've already created)?
tuple(<user>, <token>) ?
tuple('Bearer', '<user>:<token>') ?
tuple('Authorization', <user>, <token>) ?
I guess this must be passed off to requests, and dependent on https standards and/or attributes the service expects/defines.
So "tuple" seems to imply there is a specific number and order of arguments, we must already know about. If it were a dict, I guess that could give more clues about what types of information are expected.
Maybe just provide a link to that standard or documentation in the requests module, or whatever?
Thanks.
The text was updated successfully, but these errors were encountered: