Auth wechat miniprogram

From TencentCloudBase/awesome-cloudbase-examples · View interactive version

Auth wechat miniprogram is an AI agent skill from the GitHub repository TencentCloudBase/awesome-cloudbase-examples. 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.

How to use this skill

Skill file

Sibling skills (local only)

Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.

If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.

Activation Contract

Use this first when

Read before writing code if

Then also read

Do NOT use for

Common mistakes / gotchas

When to use this skill

Use this skill for WeChat Mini Program (小程序) authentication in a CloudBase project.

Use it when you need to:

Key advantage: WeChat Mini Program authentication with CloudBase is seamless and automatic - no complex OAuth flows needed. When a Mini Program calls a cloud function, the user's openid is automatically injected and verified by WeChat.

Do NOT use for:


How to use this skill (for a coding agent)

  1. Confirm CloudBase environment
  1. Understand the authentication flow
  1. Pick a scenario from this file
  1. Follow CloudBase API shapes exactly
  1. If you're unsure about an API

Core concepts

How WeChat Mini Program authentication works with CloudBase

  1. Automatic authentication:
  1. User identifiers:
  1. Security:
  1. No explicit login required:

Extended guide

For detailed scenarios, examples, and patterns, read extended-guide.md.

Reference index

All packaged reference files (required for skill lint reachability):

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.