Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): refer to Authorization header in the README, not Authentication #418

Merged
merged 1 commit into from
Oct 19, 2022

Commits on Oct 19, 2022

  1. Update README.md

    The correct name of the header is 'Authorization' and not 'Authentication'. 
    
    Tested with: 
    
    ```
    curl -H "Authorization: bearer {edited}" -X POST -d " \
     { \
       \"query\": \"query { viewer { login }}\" \
     } \
    " https://api.github.com/graphql
    ```
    
    Previously:
    ```
    $ curl -H "Authentication: bearer {edited}" -X POST -d " \
     { \
       \"query\": \"query { viewer { login }}\" \
     } \
    " https://api.github.com/graphql
    {
      "message": "This endpoint requires you to be authenticated.",
      "documentation_url": "https://docs.github.com/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql"
    }
    ```
    ptabor committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    77be5ec View commit details
    Browse the repository at this point in the history