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

Only refresh when server responds with 401. #11

Merged
merged 1 commit into from Oct 26, 2020
Merged

Conversation

@sammacbeth
Copy link
Contributor

@sammacbeth sammacbeth commented Oct 26, 2020

401 error is sent when the access token expires. 402 if the user is not a subscriber. This change prevents access token refresh spam when users are no plus or premium.

401 error is sent when the access token expires. 402 if the user is not
a subscriber.
@sammacbeth sammacbeth requested a review from chrmod Oct 26, 2020
@chrmod
chrmod approved these changes Oct 26, 2020
@chrmod chrmod merged commit 04703bf into master Oct 26, 2020
@chrmod chrmod deleted the no-refresh-not-plus branch Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants