@microsoft/teamsfx 2.2.2-alpha.8828ab140.0 → 2.2.2-alpha.9fd4f497a.0
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.node.cjs.js
CHANGED
@@ -713,8 +713,9 @@ class OnBehalfOfUserCredential {
|
|
713
713
|
internalLogger.warn(fullErrorMsg);
|
714
714
|
return new ErrorWithCode(fullErrorMsg, exports.ErrorCode.UiRequiredError);
|
715
715
|
}
|
716
|
-
else if (errorMessage && errorMessage.indexOf("
|
717
|
-
const fullErrorMsg = "Failed to get access token from AAD server,
|
716
|
+
else if (errorMessage && errorMessage.indexOf("AADSTS50013") >= 0) {
|
717
|
+
const fullErrorMsg = "Failed to get access token from AAD server, assertion is invalid because of various reasons: " +
|
718
|
+
errorMessage;
|
718
719
|
internalLogger.error(fullErrorMsg);
|
719
720
|
return new ErrorWithCode(fullErrorMsg, exports.ErrorCode.TokenExpiredError);
|
720
721
|
}
|