powerautomate-mcp 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14899,8 +14899,17 @@ async function createDeviceCodeAuthProvider(config, silentOnly = false) {
14899
14899
  const deviceCodeRequest = {
14900
14900
  scopes: mutableScopes,
14901
14901
  deviceCodeCallback: (response) => {
14902
+ const url = response.verificationUri || "https://microsoft.com/devicelogin";
14903
+ const code = response.userCode || "(code missing)";
14904
+ if (!response.message) {
14905
+ logger.warn(
14906
+ { userCode: code, verificationUri: url },
14907
+ "Device-code response missing 'message' field \u2014 using synthesized fallback"
14908
+ );
14909
+ }
14910
+ const display = response.message || `To sign in, open ${url} in a browser on any device and enter the code ${code} to authenticate.`;
14902
14911
  console.log("");
14903
- console.log(` \x1B[36m?\x1B[0m ${response.message}`);
14912
+ console.log(` \x1B[36m?\x1B[0m ${display}`);
14904
14913
  console.log("");
14905
14914
  console.log(` \x1B[33m\u26A0\x1B[0m SECURITY: Do not share this code. It expires in ${Math.floor((response.expiresIn ?? 900) / 60)} minutes.`);
14906
14915
  console.log("");