()
| 5 | import { createClient } from "@/utils/supabase/client" |
| 6 | |
| 7 | export default function AuthRefresh() { |
| 8 | const supabase = createClient() |
| 9 | const router = useRouter() |
| 10 | |
| 11 | useEffect(() => { |
| 12 | supabase.auth.onAuthStateChange((event) => { |
| 13 | if (event === "SIGNED_IN") { |
| 14 | router.refresh() |
| 15 | } |
| 16 | }) |
| 17 | }, []) |
| 18 | |
| 19 | return null |
| 20 | } |
nothing calls this directly
no test coverage detected