use authenticated status

This commit is contained in:
Karol Wypchlo 2021-04-08 13:18:29 +02:00
parent dda1e5f122
commit b4231abfb6
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import useSWR from "swr";
export default function useAuthenticatedStatus() {
return useSWR("/__internal/do/not/use", (url) => (await fetch(url)).json());
return useSWR("/__internal/do/not/use", (url) => fetch(url).then((response) => response.json()));
}