This commit is contained in:
Mauricio Siu
2024-09-05 01:26:19 -06:00
parent fd17f3f25c
commit 65dbf80f84

View File

@@ -1,18 +0,0 @@
import { findAdmin } from "./admin";
export const isValidLicense = async () => {
const admin = await findAdmin();
const result = await fetch("http://127.0.0.1:4000/v1/validate-license", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
licenseKey: admin.licenseKey,
}),
});
const data = await result.json();
return data.valid;
};