You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For GraphQL request we recommend using [`@octokit/graphql`](https://github.com/octokit/graphql.js#readme)
116
+
113
117
```js
114
118
constresult=awaitrequest("POST /graphql", {
115
119
headers: {
@@ -144,6 +148,45 @@ const result = await request({
144
148
});
145
149
```
146
150
151
+
## Authentication
152
+
153
+
The simplest way to authenticate a request is to set the `Authorization` header directly, e.g. to a [personal access token](https://github.com/settings/tokens/).
For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js).
0 commit comments