Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

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 & APIIntermediate3,732272AI 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-Key header and a matching project_name query param
  • Typed envelopes: ApiEnvelope<T>, UserInfo, VerifyTokenData
  • Full error tables: 400 / 401 / 403 / 404 / 502 with the exact data.error strings
  • Frontend integration: Firebase Auth SDK init, mandatory auth.tenantId, email/password and Google sign-in to obtain an id_token
  • Key hygiene: server-only project api_key vs browser-safe auth_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

  1. Signup route — "Add a /signup endpoint that creates an email/password user and triggers the verification email" → Claude follows the createAuthUser pattern, including rollback semantics.
  2. Auth middleware — "Write middleware that verifies the incoming id_token and treats 403 as 'email not verified' rather than an expired token."
  3. User export — "Script that walks every user for a CSV export" → uses the next_page_token loop with max_results=1000.

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repository into a temp folder:
    git clone https://github.com/glitternetwork/pinme.git /tmp/pinme
    
  3. Make sure your Claude skills folder exists:
    mkdir -p ~/.claude/skills
    
  4. Copy just this skill:
    cp -r /tmp/pinme/skills/pinme-auth ~/.claude/skills/
    
  5. Restart Claude Code and confirm pinme-auth appears under /skills.
  6. In your Worker project, set API_KEY and PROJECT_NAME as secrets (e.g. wrangler secret put API_KEY) — never hard-code the project API key or expose it to the browser.
  7. Trigger it with a prompt like "Use pinme-auth to build my token verification middleware."