Skip to content

Commit 2280e31

Browse files
committed
fix(typescript): auth() can resolve with GitHubAppAuthenticationWithExpiration
1 parent e231b61 commit 2280e31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ export interface OAuthAppAuthInterface {
105105
}
106106

107107
export interface GitHubAppAuthInterface {
108-
(options?: GitHubAppAuthOptions): Promise<GitHubAppAuthentication>;
108+
(options?: GitHubAppAuthOptions): Promise<
109+
GitHubAppAuthentication | GitHubAppAuthenticationWithExpiration
110+
>;
109111

110112
hook(
111113
request: OctokitTypes.RequestInterface,
@@ -114,6 +116,8 @@ export interface GitHubAppAuthInterface {
114116
): Promise<OctokitTypes.OctokitResponse<any>>;
115117
}
116118

119+
// INTERNAL STATE
120+
117121
export type OAuthAppState = {
118122
clientId: string;
119123
clientSecret: string;

0 commit comments

Comments
 (0)