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

Ext: logout when user not found #8663

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Ext: logout when user not found #8663

merged 1 commit into from
Nov 15, 2024

Conversation

PopDaph
Copy link
Contributor

@PopDaph PopDaph commented Nov 15, 2024

Description

If we have a user not found error we want to log out the user.
It was initially handled it: https://github.com/dust-tt/dust/pull/8444/files#diff-ba553a35160ee751f317c0f7232faa056c07d6ad96e92e8e646527224ba2d5c4

But since we're not using this handler anymore to call the API from Dust Client directly from hooks, this is not called anymore.

So in this PR:
-> Add hooks to log out if user not found
-> remove useSWRInfiniteWithDefaults which was not used.

Risk

Extension only.

Deploy Plan

Nothing.

@PopDaph PopDaph requested a review from tdraier November 15, 2024 10:19
@PopDaph PopDaph merged commit 00db557 into main Nov 15, 2024
3 checks passed
@PopDaph PopDaph deleted the ext-log-out-user-not-found branch November 15, 2024 10:41
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