small fix, don't worry about it

This commit is contained in:
Tomas Dvorak committed 2026-04-10 12:02:36 +02:00
1 parent 08bd0c6e5c
commit 08cb5754f3
638 files changed
+57330 -34704

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { useQuery } from '@tanstack/react-query';
import { getAuthSession } from '@/lib/auth-client';
type UseAuthSessionOptions = {
enabled?: boolean;
};
export function useAuthSession(options: UseAuthSessionOptions = {}) {
const { enabled = true } = options;
return useQuery({
queryKey: ['auth-session'],
queryFn: getAuthSession,
enabled,
staleTime: 30_000,
refetchOnWindowFocus: true,
retry: false,
});
}