Skip to content

Commit

Permalink
fix: revert "feat: createCallbackAuth(callback) is now `createCallb…
Browse files Browse the repository at this point in the history
…ackAuth({ callback })` (#3)"

This reverts commit 5771383.
  • Loading branch information
gr2m committed Nov 23, 2020
1 parent 5771383 commit 71c52dd
Show file tree
Hide file tree
Showing 6 changed files with 451 additions and 359 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const { createCallbackAuth } = require("@octokit/auth-callback");
```js
let token;

const auth = createCallbackAuth({ callback: () => token });
const auth = createCallbackAuth(() => token);
await auth();
// {
// type: 'unauthenticated'
Expand All @@ -58,9 +58,9 @@ await auth();
// }
```

## `createCallbackAuth(options)`
## `createCallbackAuth(callback)`

The `createCallbackAuth` method accepts a single `options` parameter
The `createCallbackAuth` method accepts a single `callback` parameter

<table width="100%">
<thead align=left>
Expand All @@ -79,10 +79,10 @@ The `createCallbackAuth` method accepts a single `options` parameter
<tbody align=left valign=top>
<tr>
<th>
<code>options.callback</code>
<code>callback</code>
</th>
<th>
<code>function</code>
<code>string</code>
</th>
<td>
<strong>Required</strong>. A method that returns or resolves with a token string.
Expand Down
Loading

0 comments on commit 71c52dd

Please sign in to comment.