Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements Sign-In With Agent (SIWA) auth for ERC-8004 onchain agent identities, covering agent signing and server-side verification.
17% 78%+61 ptsof test cases passed
Passed 18 of 23 test cases with the skill, and 4 of 23 without it.
What is the npm package installation command to add the official Sign-In With Agent library to a Node project?
The installation command specifies @buildersgarden/siwa
3 of 3 safety checks passed
Latest version: https://siwa.id/skills/server-side/skill.md
Verify SIWA authentication and protect API routes with ERC-8128 signed requests.
npm install @buildersgarden/siwa viem
Server-side verification requires three parts:
/siwa/nonce) — Issue a nonce for the agent to sign/siwa/verify) — Verify the signed message and issue a receiptIssue a nonce for the agent to include in their SIWA message. The nonce prevents replay attacks.
// app/api/siwa/nonce/route.ts
import { createSIWANonce } from "@buildersgarden/siwa";
import { corsJson, siwaOptions } from "@buildersgarden/siwa/next";
import { createPublicClient, http } from "viem";
import { baseSepolia } from "viem/chains";
const client = createPublicClient({
chain: baseSepolia,
transport: http(process.env.RPC_URL),
});
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.