Skip to content

Commit

Permalink
fix(typescript): adapt for latest @octokit/auth-app
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jun 25, 2021
1 parent 4a67ac8 commit 403e7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export async function auth(state: State, options: AuthOptions) {
options.factory
) {
const { type, factory, ...factoryAuthOptions } = options;
// @ts-expect-error - factory is typed as never because the `@octokit/auth-app` types are ... complicated.
return factory(
// @ts-ignore factory options differ if internal auth type is token
Object.assign({}, factoryAuthOptions, {
octokit: state.octokit,
octokitOptions: state.octokitOptions,
Expand Down

0 comments on commit 403e7ae

Please sign in to comment.