use authenticated status
This commit is contained in:
parent
dda1e5f122
commit
b4231abfb6
|
@ -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()));
|
||||
}
|
||||
|
|
Reference in New Issue