UNPKG

@octokit/auth-oauth-user

Version:

Octokit authentication strategy for OAuth clients

4 lines (3 loc) 391 B
import type { OAuthAppState, GitHubAppState, OAuthAppAuthentication, GitHubAppAuthentication, GitHubAppAuthenticationWithExpiration } from "./types.js"; export declare function getAuthentication(state: OAuthAppState): Promise<OAuthAppAuthentication>; export declare function getAuthentication(state: GitHubAppState): Promise<GitHubAppAuthentication | GitHubAppAuthenticationWithExpiration>;