@githat/nextjs 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -502,7 +502,6 @@ function useGitHat() {
502
502
  return {
503
503
  fetch: client.fetchApi,
504
504
  getUserOrgs: () => client.fetchApi("/user/orgs"),
505
- verifyMCP: (domain) => client.fetchApi(`/verify/mcp/${domain}`),
506
505
  verifyAgent: (wallet) => client.fetchApi(`/verify/agent/${wallet}`),
507
506
  getOrgMetadata,
508
507
  updateOrgMetadata,
@@ -949,8 +948,7 @@ function VerifiedBadge({ type, identifier, label }) {
949
948
  setVerified(cached.verified);
950
949
  return;
951
950
  }
952
- const verify = type === "mcp" ? githat.verifyMCP : githat.verifyAgent;
953
- verify(identifier).then((data) => {
951
+ githat.verifyAgent(identifier).then((data) => {
954
952
  if (mounted.current) {
955
953
  setVerified(data.verified);
956
954
  cache.set(key, { verified: data.verified, ts: Date.now() });