Skip to content

Commit b3bfafd

Browse files
committed
docs(README): clarify auth.hook()
1 parent 5cfe08a commit b3bfafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The `auth` function resolves with an authentication object. If multiple authenti
8989
const { token } = await auth({ type: "token" });
9090
```
9191

92-
Additionally, `auth.hook()` can be used to directly hook into [`@octokit/request`](https://github.com/octokit/request.js#readme).
92+
Additionally, `auth.hook()` can be used to directly hook into [`@octokit/request`](https://github.com/octokit/request.js#readme). If multiple authentication types are supported, the right authentication type will be applied automatically based on the request URL.
9393

9494
```js
9595
const requestWithAuth = request.defaults({

0 commit comments

Comments
 (0)