diff --git a/src/auth.ts b/src/auth.ts index f24205db3..c9180ab12 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -1,14 +1,10 @@ -import { - AuthOptions, - StrategyOptionsWithDefaults, - Authentication, -} from "./types"; +import { AuthOptions, Authentication, State } from "./types"; import { getAppAuthentication } from "./get-app-authentication"; import { getInstallationAuthentication } from "./get-installation-authentication"; import { getOAuthAuthentication } from "./get-oauth-authentication"; export async function auth( - state: StrategyOptionsWithDefaults, + state: State, options: AuthOptions ): Promise { if (options.type === "app") { diff --git a/src/get-installation-authentication.ts b/src/get-installation-authentication.ts index 3b187caa9..f56d6b51b 100644 --- a/src/get-installation-authentication.ts +++ b/src/get-installation-authentication.ts @@ -2,14 +2,14 @@ import { get, set } from "./cache"; import { getAppAuthentication } from "./get-app-authentication"; import { toTokenAuthentication } from "./to-token-authentication"; import { - RequestInterface, InstallationAuthOptions, - StrategyOptionsWithDefaults, InstallationAccessTokenAuthentication, + RequestInterface, + State, } from "./types"; export async function getInstallationAuthentication( - state: StrategyOptionsWithDefaults, + state: State, options: InstallationAuthOptions, customRequest?: RequestInterface ): Promise {