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

hotfix(frontend): Logout and clear token if retrieving user fails #6436

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

amanape
Copy link
Member

@amanape amanape commented Jan 23, 2025

End-user friendly description of the problem this fixes or functionality that this introduces
IF the GET user fails, it is most likely due to an invalid token. The problem is we no longer have a method of refreshing or removing this token on fail, so the app can get confused

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Give a summary of what the PR does, explaining any non-trivial design decisions
Logout and clear token if GET user fails


Link of any specific issues this addresses


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:f62968f-nikolaik   --name openhands-app-f62968f   docker.all-hands.dev/all-hands-ai/openhands:f62968f

@amanape amanape self-assigned this Jan 23, 2025
@rbren rbren merged commit 358d9cb into main Jan 24, 2025
19 checks passed
@rbren rbren deleted the hotfix/auth-prob branch January 24, 2025 14:49
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