Skip to content

Commit f866025

Browse files
authored
enhance documents
1 parent 9258ac9 commit f866025

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/AUTH.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
## AUTH
22

33
The purpose of `sendWeChatAuth` is to get auth code and then get information for WeChat login.
4-
Getting `access_token` is not supported in `fluwx`. For `access_token`, please visit [official documents](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html).
4+
Getting `access_token` is not supported in `fluwx`. For `access_token`, please visit [official documents](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html#:~:text=%E5%BD%93%E5%89%8D%E5%9B%BD%E5%AE%B6%E4%BF%A1%E6%81%AF-,%E7%AC%AC%E4%BA%8C%E6%AD%A5,-%EF%BC%9A%E9%80%9A%E8%BF%87%20code%20%E8%8E%B7%E5%8F%96).
55

66
```dart
77
Fluwx fluwx = Fluwx();
88
fluwx.authBy(which: NormalAuth(scope: 'snsapi_userinfo', state: 'wechat_sdk_demo_test'));
99
```
1010

11+
Please refer to [example](https://github.com/OpenFlutter/fluwx/blob/9258ac96df2ca5316c06dc3be078a1b123b47bdd/example/lib/pages/send_auth_page.dart#L18-L19) for more details。
1112
> WHY? I think we shall fetch access_token or user info at backend.
1213

doc/AUTH_CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
## 登录
22

3-
`sendWeChatAuth`的目的是为了获取code,拿到了code才能进行微信登录,可以通过[官方文档](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html)查看具体流程。
3+
`sendWeChatAuth`的目的是为了获取code,拿到了code才能进行微信登录,可以通过[官方文档](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html#:~:text=%E5%BD%93%E5%89%8D%E5%9B%BD%E5%AE%B6%E4%BF%A1%E6%81%AF-,%E7%AC%AC%E4%BA%8C%E6%AD%A5,-%EF%BC%9A%E9%80%9A%E8%BF%87%20code%20%E8%8E%B7%E5%8F%96)查看具体流程。
44

55
```dart
66
Fluwx fluwx = Fluwx();
77
fluwx.authBy(which: NormalAuth(scope: 'snsapi_userinfo', state: 'wechat_sdk_demo_test'));
88
```
9+
请查阅[example](https://github.com/OpenFlutter/fluwx/blob/9258ac96df2ca5316c06dc3be078a1b123b47bdd/example/lib/pages/send_auth_page.dart#L18-L19)获取更多信息。
910

1011
> 为什么不支持获取用户信息? 我认为获取用户信息应该后端来做,即使没有后端,你也可以在dart层自己实现.
1112

0 commit comments

Comments
 (0)