@contentstack/cli-utilities
Version:
Utilities for contentstack projects
14 lines (13 loc) • 451 B
TypeScript
declare class AuthenticationHandler {
private authType;
private isOAuth;
private token;
constructor();
getAuthDetails(): Promise<void>;
get isOauthEnabled(): boolean;
get accessToken(): string;
refreshAccessToken(error: any, maxRetryCount?: number): Promise<void>;
refreshToken(hostName: string): Promise<boolean>;
}
declare const authenticationHandler: AuthenticationHandler;
export default authenticationHandler;