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

Do not remove spotify access token on invalid_grant error #1921

Merged
merged 1 commit into from Mar 21, 2022

Conversation

amCap1712
Copy link
Member

We used to remove spotify access tokens from our database whenever we detected token revocation at one point. But one day spotify had a downtime while resulted in false revocation errors, and we ended up deleting most of our users' spotify access tokens. Now we don't remove the token from database, this is more resilient and without downsides. If a user actually revoked their token, then its useless anyway so doesn't matter if we remove it. And if it is a false revocation error, we are saved! :) In any case, we do set an error message for the user in the database so that we can skip in future runs and notify them to reconnect if they want.

We used to remove spotify access tokens from our database whenever we
detected token revocation at one point. But one day spotify had a
downtime while resulted in false revocation errors, and we ended up
deleting most of our users' spotify access tokens. Now we don't remove
the token from database, this is more resilient and without downsides.
If a user actually revoked their token, then its useless anyway so
doesn't matter if we remove it. And if it is a false revocation error,
we are saved! :) In any case, we do set an error message for the user
in the database so that we can skip in future runs and notify them to
reconnect if they want.
@amCap1712 amCap1712 merged commit d4dce4e into master Mar 21, 2022
@amCap1712 amCap1712 deleted the do-not-revoke branch March 21, 2022 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants