auth-wechat-miniprogram
Automatic WeChat Mini Program authentication for CloudBase, injecting user identity directly into cloud functions.
Install
npx skills add https://github.com/tencentcloudbase/skills --skill auth-wechat-miniprogramStats
| Total installs | 1,073 |
| Weekly installs | 1.1K |
| GitHub stars | 40 |
| First seen | Jan 22, 2026 |
| Source | @tencentcloudbase/skills |
Summary
- Automatic authentication: user identity (openid, appid, unionid) is seamlessly injected by WeChat when cloud functions are called, with no explicit login APIs required
- Initialize CloudBase once in Mini Program entry point with wx.cloud.init(), then retrieve verified user context in cloud functions using cloud.getWXContext()
- Three user identifiers available: openid (unique per Mini Program), appid (Mini Program identifier), and unionid (optional, for cross-app identification when bound to WeChat Open Platform)
- Includes four scenario patterns covering Mini Program initialization, retrieving user identity in cloud functions, calling cloud functions from the client, and testing authentication flow
Tags
Related skills
| Skill | Installs | vs auth-wechat-miniprogram |
|---|---|---|
| yara-rule-authoring | 982 | -91 |
| swift-protocol-di-testing | 1,125 | +52 |
| tailwindcss-mobile-first | 1,078 | +5 |
| tailwind-patterns | 1,132 | +59 |
| flutter-databases | 966 | -107 |
FAQ
- How many installs does auth-wechat-miniprogram have?
- auth-wechat-miniprogram has 1,073 total installs and 1.1K installs this week.
- Where is auth-wechat-miniprogram hosted?
- auth-wechat-miniprogram is published by @tencentcloudbase/skills at https://github.com/tencentcloudbase/skills.
- How many GitHub stars does auth-wechat-miniprogram have?
- auth-wechat-miniprogram has 40 GitHub stars.
- When was auth-wechat-miniprogram first indexed?
- OrangeBot.AI first indexed auth-wechat-miniprogram on Jan 22, 2026.
- How do I install auth-wechat-miniprogram?
- Run: npx skills add https://github.com/tencentcloudbase/skills --skill auth-wechat-miniprogram