auth-wechat-miniprogram

Implement WeChat Mini Program authentication in CloudBase cloud functions.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/mbpz/poetry-atlas-mp --skill auth-wechat-miniprogram-mbpz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-wechat-miniprogram
Source: https://github.com/mbpz/poetry-atlas-mp/tree/main/.agents/skills/cloudbase/references/auth-wechat
Command: npx skills add https://github.com/mbpz/poetry-atlas-mp --skill auth-wechat-miniprogram-mbpz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wx-server-sdk, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for seamless and automatic authentication in WeChat Mini Programs using CloudBase, simplifying user identity handling and OPENID/UNIONID access.

Core Features & Use Cases

  • Native Mini Program Authentication: Provides a guide for implementing native authentication in WeChat Mini Programs.
  • User Identity Access: Allows access to user identity (OPENID, APPID, UNIONID) in cloud functions.
  • Integration with CloudBase: Ensures authentication integrates smoothly with CloudBase services.
  • Use Case: Ideal for developers building features that require user identification in a CloudBase project with WeChat Mini Programs.

Quick Start

Initialize CloudBase in your Mini Program with wx.cloud.init({ env: 'your-env-id' }).

Frequently Asked Questions about auth-wechat-miniprogram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get OPENID in WeChat Mini Program cloud functions?

To get OPENID in WeChat Mini Program cloud functions, use this Skill to implement CloudBase authentication. It handles user identity injection automatically, allowing seamless access to OPENID and UNIONID within your cloud function execution context.

What is the best way to implement WeChat Mini Program authentication with CloudBase?

The best way to implement WeChat Mini Program authentication with CloudBase is using this Skill. It streamlines native authentication and user identity verification, replacing manual identity handling with seamless integration for cloud functions.

How to set up user identity verification for WeChat Mini Program cloud functions?

Set up user identity verification for WeChat Mini Program cloud functions by initializing CloudBase with wx.cloud.init. This Skill then injects and verifies user identity automatically, providing secure access to user data in your functions.

Does wx-server-sdk support automatic user identity injection for WeChat Mini Programs?

Yes, wx-server-sdk supports automatic user identity injection. This Skill leverages the dependency to handle WeChat Mini Program authentication natively within CloudBase, ensuring secure and seamless identity access without manual token parsing.

Can I access UNIONID in my CloudBase project using this authentication approach?

Yes, you can access UNIONID in your CloudBase project. This Skill implements WeChat Mini Program authentication to expose user identity information, including OPENID, APPID, and UNIONID, directly inside your cloud functions.