1 | import { configs } from '@bearer/types/lib/authentications';
|
2 | import BaseCommand from '../../base-command';
|
3 | import { TDestroyableServer } from '../../actions/startLocalServer';
|
4 | export default class SetupAuth extends BaseCommand {
|
5 | static description: string;
|
6 | static flags: {
|
7 | help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
8 | path: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
9 | silent: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
10 | };
|
11 | static examples: string[];
|
12 | static args: {
|
13 | name: string;
|
14 | description: string;
|
15 | required: boolean;
|
16 | default: string;
|
17 | }[];
|
18 | _server?: TDestroyableServer;
|
19 | _verifier: string;
|
20 | _challenge: string;
|
21 | private _listerners;
|
22 | run(): Promise<void>;
|
23 | fetchAuthToken(config: configs.TOAuth2Config | configs.TOAuth1Config): Promise<TBase64EncodedString>;
|
24 | private stopServer;
|
25 | private startServer;
|
26 | private persistSetup;
|
27 | private on;
|
28 | }
|
29 | declare type TBase64EncodedString = string;
|
30 | export {};
|