Improved cache invalidation, and minor design fixes

This commit is contained in:
giancarlo
2024-06-03 15:10:40 +07:00
parent d0c6981e78
commit 88cebc2126
10 changed files with 7655 additions and 9714 deletions

View File

@@ -140,6 +140,7 @@ function useSetSession(tokens: { accessToken: string; refreshToken: string }) {
return useQuery({
queryKey: ['impersonate-user', tokens.accessToken, tokens.refreshToken],
gcTime: 0,
queryFn: async () => {
await supabase.auth.setSession({
refresh_token: tokens.refreshToken,