UNPKG

@heroku-cli/command

Version:
24 lines (23 loc) 674 B
import { Interfaces } from '@oclif/core'; import { APIClient } from './api-client'; export declare namespace Login { interface Options { browser?: string; expiresIn?: number; method?: 'browser' | 'interactive' | 'sso'; } } export declare class Login { private readonly config; private readonly heroku; loginHost: string; constructor(config: Interfaces.Config, heroku: APIClient); login(opts?: Login.Options): Promise<void>; logout(token?: string | undefined): Promise<any>; private browser; private createOAuthToken; private defaultToken; private interactive; private saveToken; private sso; }