I am using ADALjs and Teams SDK to authenticate users and request some permissions.
So user clicks a button "Grant Consent" in my application, MSFT popup appears and there are three possible scenarios:
1) User closes the popup << MSFT always responds with "ERROR CancelledByUser", this is fine.
2) User presses Cancel button
Actual result: In some cases popup closes with the same message "ERROR CancelledByUser" as expected, but in ~50% of cases popup closes without any errors.
Expected result: Popup should always close with "ERROR CancelledByUser" message when user clicks Cancel.
3) User presses Accept button
Actual result: In some cases popup closes without any errors as expected, but in ~50% of cases popup closes with the same message "ERROR CancelledByUser"
Expected result: Popup should close without any error messages when user clicks Accept