UNPKG

@redocly/cli

Version:

[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g

27 lines 796 B
export type AuthToken = { access_token: string; refresh_token?: string; token_type?: string; expires_in?: number; }; export declare class RedoclyOAuthDeviceFlow { private baseUrl; private clientName; private version; private apiClient; constructor(baseUrl: string, clientName: string, version: string); run(): Promise<AuthToken>; private openBrowser; verifyToken(accessToken: string): Promise<boolean>; verifyApiKey(apiKey: string): Promise<boolean>; refreshToken(refreshToken: string): Promise<{ access_token: any; refresh_token: any; expires_in: any; }>; private pollingAccessToken; private getAccessToken; private getDeviceCode; private sendRequest; } //# sourceMappingURL=device-flow.d.ts.map