mattermost / mattermost-plugin-msteams

MS Teams plugin for Mattermost
Other
13 stars 11 forks source link

MM-56685 Differentiate between not connected and oauth error #595

Closed sbishel closed 2 months ago

sbishel commented 4 months ago

Summary

When creating the Client an error can occur if the user isn't connected. (ie. Token == nil) or an error happens attempting to refresh or save the token. This PR distinguished between the two issues and handles them differently.

Ticket Link

Fixes https://mattermost.atlassian.net/browse/MM-57785

This was built on top of https://github.com/mattermost/mattermost-plugin-msteams/pull/593 which needs merged first.