@microsoft/teamsfx 2.2.2-alpha.be4f5dfbf.0 → 2.2.2-alpha.c490a81d4.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.
@@ -680,8 +680,9 @@ class OnBehalfOfUserCredential {
680
680
  internalLogger.warn(fullErrorMsg);
681
681
  return new ErrorWithCode(fullErrorMsg, ErrorCode.UiRequiredError);
682
682
  }
683
- else if (errorMessage && errorMessage.indexOf("AADSTS500133") >= 0) {
684
- const fullErrorMsg = "Failed to get access token from AAD server, sso token expired: " + errorMessage;
683
+ else if (errorMessage && errorMessage.indexOf("AADSTS50013") >= 0) {
684
+ const fullErrorMsg = "Failed to get access token from AAD server, assertion is invalid because of various reasons: " +
685
+ errorMessage;
685
686
  internalLogger.error(fullErrorMsg);
686
687
  return new ErrorWithCode(fullErrorMsg, ErrorCode.TokenExpiredError);
687
688
  }