better-auth-ui-svelte 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,14 +36,14 @@ export function useCurrentOrganization({ slug: slugProp, organizationId } = {})
|
|
|
36
36
|
const orgByIdHook = useAuthData({
|
|
37
37
|
queryFn: () => authClient.organization.getFullOrganization({
|
|
38
38
|
query: { organizationId },
|
|
39
|
-
fetchOptions: { throw: false }
|
|
39
|
+
fetchOptions: { throw: false, credentials: 'include' }
|
|
40
40
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
41
|
}),
|
|
42
42
|
cacheKey: `fullOrganization:${organizationId}`
|
|
43
43
|
});
|
|
44
44
|
return {
|
|
45
45
|
get data() {
|
|
46
|
-
return orgByIdHook.data
|
|
46
|
+
return orgByIdHook.data ?? null;
|
|
47
47
|
},
|
|
48
48
|
get isPending() {
|
|
49
49
|
return orgByIdHook.isPending;
|