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: Call logout on soft logout fail #1895

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

krille-chan
Copy link
Contributor

If we fail to handle the
soft logout, we should call
the logout endpoint to
delete the device from
the server instead of just
clear the client.

Closes https://github.com/famedly/product-management/issues/2292

If we fail to handle the
soft logout, we should call
the logout endpoint to
delete the device from
the server instead of just
clear the client.
@krille-chan krille-chan requested a review from a team as a code owner July 31, 2024 10:54
Copy link
Member

@nico-famedly nico-famedly left a comment

Choose a reason for hiding this comment

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

I'm a bit concerned if logging the user out on any exception might be overly eager (i.e. you could fail the relogin if there is currently no network available), but in general this seems to be fine.

@krille-chan krille-chan merged commit 6dbc111 into main Jul 31, 2024
15 checks passed
@krille-chan krille-chan deleted the krille/call-logout-on-soft-logout-cancel branch July 31, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants