UNPKG

@viewdo/dxp-story-cli

Version:

DXP Story Management CLI

22 lines (21 loc) 1.07 kB
import { AxiosError } from "axios"; import { ConventionService } from "./ConventionService"; import { ConsoleService } from "./ConsoleService"; export declare class AuthenticationService { private console; private conventions; constructor(console: ConsoleService, conventions: ConventionService); _handleError(err: AxiosError<any>): Promise<never>; /** * Retrieves the current cached M2M auth token from the DXP-Platform BitBucket repository * * @remarks * This is not used by the login command for local tokens, see sendVerificationEmail & getTokenFromVerification * * @returns The auth token stored in the dxp platform as a promise */ getAppTokenFromPlatform(client_id: string, client_secret: string): Promise<string>; getAppToken(client_id?: string, client_secret?: string): Promise<string>; sendVerificationEmail(client_id: string, email: string): Promise<import("axios").AxiosResponse<any>>; getTokenFromVerification(client_id: string, email: string, verification_code: string): Promise<any>; }