mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: patreon check
This commit is contained in:
1 parent
cb09f57a91
commit
0a0376312b
8 files changed
+114
-19
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user