UNPKG

@pnp/cli-microsoft365

Version:

Manage Microsoft 365 and SharePoint Framework projects on any platform

17 lines 573 B
import Command from '../../Command.js'; import auth from '../../Auth.js'; import { accessToken } from '../../utils/accessToken.js'; export default class PowerBICommand extends Command { get resource() { return 'https://api.powerbi.com'; } async initAction(args, logger) { await super.initAction(args, logger); if (!auth.connection.active) { // we fail no login in the base command command class return; } accessToken.assertDelegatedAccessToken(); } } //# sourceMappingURL=PowerBICommand.js.map