AU

auth-wechat-miniprogram

This tool helps implement WeChat Mini Program authentication by mapping login events to CloudBase identity and retrieving user IDs.

Install

mkdir -p .claude/skills/auth-wechat-miniprogram && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6874" && unzip -o skill.zip -d .claude/skills/auth-wechat-miniprogram && rm skill.zip

Installs to .claude/skills/auth-wechat-miniprogram

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

CloudBase WeChat Mini Program native authentication guide. This skill should be used when users need mini program identity handling, OPENID/UNIONID access, or `wx.cloud` auth behavior in projects where login is native and automatic.
232 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Handle native WeChat Mini Program login
  • Map identity to CloudBase OPENID/UNIONID
  • Verify user credentials within cloud functions
  • Integrate wx.cloud auth patterns

How it works

It utilizes the native `wx.cloud` auth behavior to resolve user identities, allowing identification within CloudBase cloud functions.

Inputs & outputs

You give it
Wx.cloud.callFunction request
You get back
OPENID or UNIONID identity context

When to use auth-wechat-miniprogram

  • Integrating WeChat native login with CloudBase
  • Accessing user identities in cloud functions
  • Verifying WeChat user credentials

About auth-wechat-miniprogram

Guides the implementation of WeChat-specific authentication for Mini Programs. It explains how to map native login events to CloudBase identity and retrieve OPENID/UNIONID.

Complete guide for WeChat Mini Program authentication with CloudBase - native login, user identity, and cloud function integration.

When not to use it

  • Web-based WeChat login or generic non-WeChat auth
  • Situations where manual token exchange is needed (use native flow)

Prerequisites

WeChat Mini Program environment

Limitations

  • Limited to WeChat Mini Program ecosystem
  • Requires wx.cloud integration

How it compares

It relies on native, automatic WeChat login events rather than explicit, manual token exchange flows.

Compared to similar skills

auth-wechat-miniprogram side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
auth-wechat-miniprogram (this skill)12moNo flagsIntermediate
mfa-on-mobile03moNo flagsIntermediate
firebase05moReviewIntermediate
clerk-android01moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by TencentCloudBase

View all by TencentCloudBase

miniprogram-development

TencentCloudBase

WeChat Mini Program development rules. Use this skill when developing WeChat mini programs, integrating CloudBase capabilities, and deploying mini program projects.

3792

spec-workflow

TencentCloudBase

Standard software engineering workflow for requirement analysis, technical design, and task planning. Use this skill when developing new features, complex architecture designs, multi-module integrations, or projects involving database/UI design.

1091

ai-model-nodejs

TencentCloudBase

Use this skill when developing Node.js backend services or CloudBase cloud functions (Express/Koa/NestJS, serverless, backend APIs) that need AI capabilities. Features text generation (generateText), streaming (streamText), AND image generation (generateImage) via @cloudbase/node-sdk ≥3.16.0. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended), DeepSeek (deepseek-v3.2 recommended), and hunyuan-image for images. This is the ONLY SDK that supports image generation. NOT for browser/Web apps (use ai-model-web) or WeChat Mini Program (use ai-model-wechat).

59

web-development

TencentCloudBase

Web frontend project development rules. Use this skill when developing web frontend pages, deploying static hosting, and integrating CloudBase Web SDK.

514

ai-model-web

TencentCloudBase

Use this skill when developing browser/Web applications (React/Vue/Angular, static websites, SPAs) that need AI capabilities. Features text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). NOT for Node.js backend (use ai-model-nodejs), WeChat Mini Program (use ai-model-wechat), or image generation (Node SDK only).

13

auth-http-api-cloudbase

TencentCloudBase

Use when you need to implement CloudBase Auth v2 over raw HTTP endpoints (login/signup, tokens, user operations) from backends or scripts that are not using the Web or Node SDKs.

17

Search skills

Search the agent skills registry