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

403 response from Spotify not fully handling the logout #63

Closed
zembrodt opened this issue Jul 25, 2024 · 1 comment
Closed

403 response from Spotify not fully handling the logout #63

zembrodt opened this issue Jul 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@zembrodt
Copy link
Owner

When the Spotify API responds with a non successful and non-401 response (such as 403), the Showtunes app "logs out" and deletes the auth token, but the app stays frozen and doesn't reflect the new logged out state

@zembrodt zembrodt self-assigned this Jul 25, 2024
@zembrodt zembrodt added the bug Something isn't working label Jul 25, 2024
@zembrodt
Copy link
Owner Author

There could be a check here for the 403 case where it's a single failure but the token still works. Need to do some more investigating, but if the token still works after failure, then on a 403 response we could do a simple API call with the auth token to see if it's still valid, then re-do the request (in the interceptor).
Otherwise, we'll need to logout the user and retrieve a new auth token.

zembrodt added a commit that referenced this issue Jul 28, 2024
… if Spotify returns a 'restriction violated' response
zembrodt added a commit that referenced this issue Jul 29, 2024
…e if we should logout for a new auth token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant