# Token-gate on the Front-end

{% hint style="info" %}
Our solution is permissionless, thereby allowing for direct front-end integrations that require no permission from 0xKYC or its user base
{% endhint %}

&#x20;Here is an example of a simple front end method, token gate the key functionality of your protocol with a check for our SBT:

```javascript
    const checkSBT = async () => {
      try {
        if (address) {
          const isVerified = await checkForSBT(address);

          if (isVerified) {
            setIsAuth(true);
          } else {
            setIsAuth(false);
          }
        }
      } catch (err) {
        // handle error
      }
    };
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.0xkyc.id/developer-guides/client-or-server-guide/0xkyc-sanctions-aml/token-gate-on-the-front-end.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
