Skip to content

Commit cb788cd

Browse files
committed
用户授权内容补充
1 parent c171254 commit cb788cd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/guide/dev/auth.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
查看[官方文档](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html)
4747
:::
4848

49+
### 用户登录
50+
通过`mpvue.login`进行用户登录,登录后会获得`code`,该`code`可用于获取`openId`,但要注意`code`只能使用一次,用完即作废
51+
52+
::: tip
53+
查看[官方文档](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html)
54+
:::
55+
4956
### 用户注册
5057
获得`openId`后,我们可以通过该`openId`和用户信息在小慕读书中进行注册,课程提供了注册的`api`[立即查看](https://www.youbaobao.xyz/mpvue-docs/api/#%E7%94%A8%E6%88%B7%E6%B3%A8%E5%86%8C)
5158

0 commit comments

Comments
 (0)