Token-gate on the Front-end
const checkSBT = async () => {
try {
if (address) {
const isVerified = await checkForSBT(address);
if (isVerified) {
setIsAuth(true);
} else {
setIsAuth(false);
}
}
} catch (err) {
// handle error
}
};Last updated