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

6 lines
180 B
JavaScript

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