UNPKG

@sigstore/cli

Version:
20 lines (19 loc) 563 B
import { BaseClient } from 'openid-client'; interface OAuthClientOptions { issuer: string; redirectURL: string; clientID: string; clientSecret?: string; } export declare function initializeOAuthClient(options: OAuthClientOptions): Promise<OAuthClient>; declare class OAuthClient { private client; private redirectURL; private verifier; private nonce; private state; constructor(client: BaseClient, redirectURL: string); get authorizationUrl(): string; getIDToken(callbackURL: string): Promise<string>; } export {};