Pinme Auth

Use when a PinMe project (Worker TypeScript) needs to integrate user authentication — creating email/password users, verifying id_tokens, querying user info, or listing users via Identity Platform auth proxy APIs.

3,762 stars 276 forksProductivity & Notes

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add glitternetwork/pinme --skill pinme-auth
Manual install
git clone --depth 1 https://github.com/glitternetwork/pinme.git /tmp/pinme
mkdir -p ~/.claude/skills
cp -r /tmp/pinme/skills/pinme-auth ~/.claude/skills/pinme-auth

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# PinMe Worker Auth API Integration

Guides how to call PinMe platform's Identity Platform auth proxy APIs in a PinMe Worker (TypeScript).

## Environment Variables

```typescript
// backend/src/worker.ts
export interface Env {
  DB: D1Database;
  API_KEY: string;       // 项目 API Key — 用于所有 auth 接口认证
  PROJECT_NAME: string;  // 项目名 — 所有 auth 接口必须同时传递
  BASE_URL?: string;     // 可选,默认 https://pinme.cloud
}
```

> `API_KEY` 和 `PROJECT_NAME` 是所有 auth 接口的必填凭证,缺一不可。

---

## 认证方式(所有接口通用)

| 参数 | 传递方式 | 必填 | 说明 |
|------|---------|------|------|
| `X-API-Key` | 请求头 | 是 | 项目 API Key |
| `project_name` | Query 参数 | 是 | 必须与 `X-API-Key` 对应同一个项目 |

服务端会先校验这两个字段是否匹配同一个项目,再从项目配置中取出 `tenant_id`,然后转调 Identity Platform。

---

## 通用错误

| 场景 | HTTP | `data.error` |
|------|------|-------------|
| 缺少 `X-API-Key` | 401 | `X-API-Key header is required` |
| 缺少 `project_name` | 400 | `project_name is required` |
| API Key 和项目不匹配 | 401 | `Invalid API key or project name` |
| 项目未配置认证租户 | 400 | `Auth service not configured for this project` |

---

## 通用 TypeScript 类型

```typescript
type ApiEnvelope<T> = {
  code: number   // 200=成功,其他=失败
  msg: string    // "ok" | "fail" | "invalid param"
  data: T
}

type ApiErrorData = { error?: string }

type UserInfo = {
  uid: string
  email: string
  display_name: string
  photo_url?: string
  disabled: boolean
  email_verified: boolean
}
```

---

## API 1: 创建用户

**Endpoint:** `POST {BASE_URL}/api/v1/auth/create_user?project_name={project_name}`
Read the full skill on GitHub

Details

Skill name
pinme-auth
Path
skills/pinme-auth/SKILL.md
License
MIT
Repo updated
12 September 2026

FAQ

What does the Pinme Auth skill do?

Use when a PinMe project (Worker TypeScript) needs to integrate user authentication — creating email/password users, verifying id_tokens, querying user info, or listing users via Identity Platform auth proxy APIs.

How do I install the Pinme Auth skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add glitternetwork/pinme --skill pinme-auth. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Pinme Auth popular?

It lives in glitternetwork/pinme, which has 3,762 GitHub stars and 276 forks, and is included in 1 curated skill list.

Related skills

Pinme

3.8k

glitternetwork/pinme

Use this skill when the user mentions "pinme", or needs to upload files, store to IPFS, create/publish/deploy websites or full-stack services (including frontend pages, backend APIs, database storage, email sending, etc.), or any feature requiring backend database/server support.

DatabasesIn 1 list276

Pinme Email

3.8k

glitternetwork/pinme

Use this skill when a PinMe project (Worker TypeScript) needs to integrate email sending (send_email). Guides AI to generate correct Worker TS code.

Productivity & NotesIn 1 list276

Pinme LLM

3.8k

glitternetwork/pinme

Use this skill when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat/completions, streaming, or OpenRouter web search. Guides AI to generate correct Worker TS code.

AI, LLMs & AgentsIn 1 list276

Browser Use to Stagehand

3.8k

browserbase/skills

Migrate browser-use (Python) browser-automation scripts to Stagehand v3 (TypeScript) on Browserbase. Use when the user wants to convert, port, rewrite, or migrate a browser-use Agent script to Stagehand, map browser-use features/APIs to Stagehand primitives (act/extract/observe/agent), or move agentic browser automation onto Browserbase with more determinism. Triggers on "browser-use", "browser_use", or "Agent(task=...)".

Productivity & Notes239

Acontext Installer

3.7k

memodb-io/Acontext

Install Acontext, Login & Init Acontext Project, Add Skill Memory to Agent.

Productivity & Notes334

1start Mathmodel

6.4k

jihe520/MathModelAgent

数学建模竞赛工作流入口。用于启动完整建模流程:询问用户偏好,生成 plan.md 和 todo.md,并按阶段调用赛题分析、建模、代码与图表、流程图、论文撰写、验证验收等 skills。

Productivity & Notes462

Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.