feat: patreon check

This commit is contained in:
TrèsAbhi committed 2024-06-14 13:57:54 -05:00
1 parent cb09f57a91
commit 0a0376312b
8 files changed
+114 -19

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { useApp } from '../stores/app';
export function useAdExempt() {
const patreon = useApp((state) => state.logins.patreon);
if (!patreon) return false;
fetch(`/api/patreon/membership/${patreon.token}`)
.then((response) => response.json())
.then(console.log);
}