-
Notifications
You must be signed in to change notification settings - Fork 104
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: logout #604
fix: logout #604
Conversation
onSuccess: async () => { | ||
queryClient.removeQueries([CURRENT_USER_KEY]); | ||
await logoutRedirection(); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have this minor suggestion
}, | |
onError: (error) => { | |
toast.error(t("message.logout_failed")); | |
} | |
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IkbelTalebHssan good idea i'll address it in different PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
The issue is fixed like shown in the screenshots 👏
Screencast from 01-22-2025 11:04:27 AM.webm
Screencast from 01-22-2025 11:02:37 AM.webm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
Motivation
This PR addresses the issue when users logs out, the dashboard displays for a second then page refreshes and logs out the user
Fixes #594
Type of change:
Please delete options that are not relevant.
Checklist: