PinMe Auth API Integration
Reference skill for calling PinMe's Identity Platform auth proxy APIs from a TypeScript Worker: create users, verify id_tokens, and query or list users.
Web & APIIntermediate★ 3,732⑂ 272AI score 7/10Last updated: Jul 25, 2026
What it does
Gives Claude an accurate spec for wiring user authentication into a PinMe Worker (TypeScript / Cloudflare-style runtime).
- Four endpoints documented:
create_user,verify_token,user(single lookup),list_users(paginated) - Shared auth contract: every request needs the
X-API-Keyheader and a matchingproject_namequery param - Typed envelopes:
ApiEnvelope<T>,UserInfo,VerifyTokenData - Full error tables: 400 / 401 / 403 / 404 / 502 with the exact
data.errorstrings - Frontend integration: Firebase Auth SDK init, mandatory
auth.tenantId, email/password and Google sign-in to obtain anid_token - Key hygiene: server-only project
api_keyvs browser-safeauth_api_key
Who it's for
- Developers shipping a PinMe project that needs login/signup
- Teams writing Worker + D1 backends who want token verification done server-side
- Anyone who has hit "wrong tenant" token errors from a missing
tenant_id
Examples
- Signup route — "Add a
/signupendpoint that creates an email/password user and triggers the verification email" → Claude follows thecreateAuthUserpattern, including rollback semantics. - Auth middleware — "Write middleware that verifies the incoming id_token and treats 403 as 'email not verified' rather than an expired token."
- User export — "Script that walks every user for a CSV export" → uses the
next_page_tokenloop withmax_results=1000.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/pinme-auth folder from the GitHub repo glitternetwork/pinme into my ~/.claude/skills/pinme-auth/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/glitternetwork/pinme.git /tmp/pinme && mkdir -p ~/.claude/skills && cp -r /tmp/pinme/skills/pinme-auth ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository into a temp folder:
git clone https://github.com/glitternetwork/pinme.git /tmp/pinme - Make sure your Claude skills folder exists:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r /tmp/pinme/skills/pinme-auth ~/.claude/skills/ - Restart Claude Code and confirm
pinme-authappears under/skills. - In your Worker project, set
API_KEYandPROJECT_NAMEas secrets (e.g.wrangler secret put API_KEY) — never hard-code the project API key or expose it to the browser. - Trigger it with a prompt like "Use pinme-auth to build my token verification middleware."
View source on GitHub ↗License: MIT