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.
skynet-webportal/packages/website/src/services/useAuthenticatedStatus.js

8 lines
220 B
JavaScript
Raw Normal View History

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
}