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

fix(install-provider): do not duplicate installation if tokens werent… #1497

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

omermizr
Copy link
Contributor

… refreshed

Summary

Today, if a token is expired we try to refresh it and store the installation - but we call storeInstallation even if no tokens were successfully refreshed. This PR aims to avoid that so we don't store the same installation over and over again.

Requirements (place an x in each [ ])

@CLAassistant
Copy link

CLAassistant commented Jun 15, 2022

CLA assistant check
All committers have signed the CLA.

@seratch seratch self-assigned this Jun 15, 2022
@seratch seratch self-requested a review June 15, 2022 22:19
@seratch seratch added bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented pkg:oauth applies to `@slack/oauth-helper` labels Jun 15, 2022
@seratch seratch added this to the oauth@2.5.3 milestone Jun 15, 2022
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Thanks for fixing this! We will release a new patch version shortly once we merge this.

@seratch seratch merged commit cdab343 into slackapi:main Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented pkg:oauth applies to `@slack/oauth-helper`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants