balena-sdk
Version:
The Balena JavaScript SDK
12 lines (11 loc) • 500 B
TypeScript
import type { InjectedDependenciesParam, InjectedOptionsParam } from '.';
declare const get2fa: (deps: InjectedDependenciesParam, opts: InjectedOptionsParam) => {
isEnabled: () => Promise<boolean>;
isPassed: () => Promise<boolean>;
getSetupKey: () => Promise<string>;
enable: (code: string) => Promise<string>;
verify: (code: string) => Promise<string>;
challenge: (code: string) => Promise<void>;
disable: (password: string) => Promise<string>;
};
export default get2fa;