@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
24 lines • 716 B
TypeScript
export type Credentials = {
access_token: string;
refresh_token: string;
expires_in: number;
residency?: string;
token_type?: string;
};
export declare class RedoclyOAuthDeviceFlow {
private baseUrl;
private apiClient;
private clientName;
constructor(baseUrl: string);
run(): Promise<Credentials>;
private openBrowser;
verifyToken(accessToken: string): Promise<boolean>;
verifyApiKey(apiKey: string): Promise<boolean>;
refreshToken(refreshToken?: string): Promise<Credentials>;
private pollingAccessToken;
private getAccessToken;
private getDeviceCode;
private sendRequest;
private withResidency;
}
//# sourceMappingURL=device-flow.d.ts.map