@microsoft/teamsfx 2.2.2-alpha.d8776a676.0 → 2.2.2-alpha.dc097d3df.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.
@@ -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("AADSTS500133") >= 0) {
717
- const fullErrorMsg = "Failed to get access token from AAD server, sso token expired: " + errorMessage;
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
  }