heroku
Version:
CLI to interact with Heroku
19 lines (18 loc) • 693 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const color_1 = require("@heroku-cli/color");
const command_1 = require("@heroku-cli/command");
class TwoFactor extends command_1.Command {
async run() {
const { body: account } = await this.heroku.get('/account');
if (account.two_factor_authentication) {
this.log(`Two-factor authentication is ${color_1.default.bold('enabled')}`);
}
else {
this.log(`Two-factor authentication is ${color_1.default.bold('not enabled')}`);
}
}
}
exports.default = TwoFactor;
TwoFactor.description = 'check 2fa status';
TwoFactor.aliases = ['2fa', 'twofactor'];
;