@pnp/cli-microsoft365
Version:
Manage Microsoft 365 and SharePoint Framework projects on any platform
17 lines • 597 B
JavaScript
import auth from '../../Auth.js';
import { accessToken } from '../../utils/accessToken.js';
import GraphCommand from './GraphCommand.js';
/**
* This command class is for delegated-only Graph commands.
*/
export default class DelegatedGraphCommand extends GraphCommand {
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=DelegatedGraphCommand.js.map