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

Alert the user when their Premium auth token becomes invalid (401 status) and log them out of Premium #1465

Closed
mitchdowney opened this issue Dec 1, 2022 · 1 comment
Assignees
Labels
bug Something isn't working ready to deploy The work has been approved and merged

Comments

@mitchdowney
Copy link
Member

It seems like users are sometimes mysteriously no longer able to use Premium features, even though they have a valid Premium membership, and the app thinks they are logged-in.

One thing that could possibly help is, when a logged-in user receives a 401 response, then we can assume that user no longer has a valid logged-in session, so we can render a "You have been logged out of Podverse. If you would like to resume using Podverse Premium, please log back in..." message, and then remove the auth token from local storage, so the app doesn't get confused by thinking the user still has a valid auth token.

@mitchdowney
Copy link
Member Author

I think I have the correct code for this in #1470

But ALL our alerts are broken in v4.8.0 because of the same type of problem described in facebook/react-native#34562

@mitchdowney mitchdowney added the ready to deploy The work has been approved and merged label Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready to deploy The work has been approved and merged
Projects
None yet
Development

No branches or pull requests

1 participant