This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-08 11:10:58 +00:00
|
|
|
import useSWR from "swr";
|
|
|
|
|
2021-04-08 12:06:22 +00:00
|
|
|
const fetcher = (url) => fetch(url).then((response) => response.json());
|
|
|
|
|
2021-04-08 11:10:58 +00:00
|
|
|
export default function useAuthenticatedStatus() {
|
2021-04-08 12:06:22 +00:00
|
|
|
return useSWR("/__internal/do/not/use/authenticated", fetcher);
|
2021-04-08 11:10:58 +00:00
|
|
|
}
|