From f4e80195905619bdf21fe25e67087a12d21617dd Mon Sep 17 00:00:00 2001 From: Piotr Tabor Date: Wed, 19 Oct 2022 14:24:51 +0200 Subject: [PATCH] fix(docs): refer to `Authorization` header in the README, not `Authentication` (#418) 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" } ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52f7da50..df9c2847 100644 --- a/README.md +++ b/README.md @@ -222,7 +222,7 @@ const { withCustomRequest } = require("@octokit/graphql"); let requestCounter = 0; const myRequest = request.defaults({ headers: { - authentication: "token secret123", + authorization: "bearer secret123", }, request: { hook(request, options) {