Authentication & Secure Access
import { Arc402 } from "arc402-sdk";
const arc = new Arc402();
const walletAddress = userWallet.getAddress();
const signature = await userWallet.signMessage("Authenticate with Arc402");
const isAuthenticated = await arc.authenticate({ walletAddress, signature });
console.log("Authentication successful:", isAuthenticated);Last updated