worksheets-cli
Version:
20 lines (19 loc) • 590 B
TypeScript
declare class AuthService {
private readonly SECURITY_URL;
private readonly TOKEN_PATH;
private token;
authenticate(): Promise<boolean>;
getAuthHeaders(): {
[key: string]: string;
};
getCurrentToken(): string;
private isAuth;
private getToken;
private getCredentials;
login(username?: string, password?: string): Promise<boolean>;
simpleLogin(username?: string, password?: string): Promise<string | null>;
private isTokenValid;
private printUser;
}
export declare const authService: AuthService;
export {};