Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MM-809]: Fixed the issue of getting errors when using github api with revoked/invalid token #832

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kshitij-Katiyar
Copy link
Contributor

@Kshitij-Katiyar Kshitij-Katiyar commented Sep 26, 2024

Summary

  • Fixed the issue of getting errors when using GitHub API with revoked/invalid tokens.
  • Created a wrapper function and used it on all the githubClient calls, in case of invalid token error, disconnected the user and DMed him to reconnect

Issue Link

Fixes #809

Testing steps

  • Connect your mattermost to Github plugin
  • Revoke the user access token on the Github Oauth app as shown in the screenshot
    Screenshot from 2024-09-27 13-30-52
  • Perform any action which involves API call using the Github client like LHS refresh, LHS button click

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub plugin issues on community after switching to SSO
2 participants