‹ 首页

auth-wechat-miniprogram

@tencentcloudbase · 收录于 5 天前 · 上游提交 5 天前

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.

适合你,如果你正在开发微信小程序并需要处理原生登录和用户身份。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add tencentcloudbase/awesome-cloudbase-examples/auth-wechat-miniprogram
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- tencentcloudbase/awesome-cloudbase-examples/auth-wechat-miniprogram
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify tencentcloudbase/awesome-cloudbase-examples/auth-wechat-miniprogram
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
414GitHub stars
~3.3K上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 f73377e · 表述以原文为准
它做什么

安装后,Claude 会指导你如何在 CloudBase 微信小程序中实现原生认证,包括初始化 wx.cloud、在云函数中获取用户 OPENID/UNIONID,以及从小程序调用云函数获取身份。

什么时候触发

当你询问微信小程序认证、获取用户 OPENID/UNIONID、wx.cloud 认证行为,或需要在小程序云函数中处理用户身份时触发。

装好后可以这样说
Claude 会提供云函数和小程序端的测试代码。

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。