2 Star 4 Fork 2

Fresns / Fresns 官方插件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mini-app-oauth-apple.md 884 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jevan Tang 提交于 2024-05-04 20:42 . docs: WeChatLogin

多端应用 Apple 账号登录

  • 接口地址:/api/wechat-login/mini-app/oauth-apple
  • 请求方式:POST
  • 传参方式:application/json

Body 参数

参数名 类型 是否必传 说明
code String YES 微信用户登录凭证 wx.appleLogin
autoRegister Boolean NO 如果账号不存在,是否自动注册一个新账号

接口使用说明

  • code31508 时,表示当前账户有多个用户,访问 userAuthUrl 选择用户
  • code31604 时,用户有密码,访问 userAuthUrl 输入密码

返回结果

{
    "code": 0,
    "message": "ok",
    "data": {
        "loginToken": "String / 登录令牌",
        "userAuthUrl": "String / 选择用户页面",
    }
}
PHP
1
https://gitee.com/fresns/plugins.git
git@gitee.com:fresns/plugins.git
fresns
plugins
Fresns 官方插件
3.x

搜索帮助