useListOrganizations not updated on login or logout

When i use useListOrganizations and login or logout the value is never changed. Is this the expected behavior? or is there somthing that im missing here. Im using nuxt 3.15.4 with better-auth 1.1.15
1 Reply
TheConsoleGardenMG
TheConsoleGardenMGOP3mo ago
Idk maby its related to this https://discord.com/channels/1288403910284935179/1336457990894522378
const { data, error } = await authClient.signIn.email({
email: email.value,
password: password.value,
fetchOptions: {
onSuccess: () => {
authClient.$store.notify("$listOrg");
},
},
});
const { data, error } = await authClient.signIn.email({
email: email.value,
password: password.value,
fetchOptions: {
onSuccess: () => {
authClient.$store.notify("$listOrg");
},
},
});
seems to fix it, so i guess its a bug

Did you find this page helpful?