@sprucelabs/spruce-skill-utils
Version:
Loosely coupled classes and functions to make skill development faster! 🏎
20 lines (19 loc) • 743 B
TypeScript
import { PersonWithToken, SkillAuth } from '../types/skill.types';
import EnvService from './EnvService';
import PkgService from './PkgService';
export default class AuthService {
static homeDir: string;
private env;
private pkg;
static Class?: typeof AuthService;
protected constructor(envService: EnvService, pkgService: PkgService);
static Auth(cwd: string): AuthService;
getLoggedInPerson(): PersonWithToken | null;
setLoggedInPerson(person: PersonWithToken): void;
logOutPerson(): void;
getCurrentSkill(): SkillAuth | null;
logoutCurrentSkill(): void;
updateCurrentSkill(skill: SkillAuth): void;
updateCurrentSkillNamespace(namespace: string): void;
private get personJsonPath();
}