1.0.20 • Published 4 years ago

wechat-oauth-by-frontend v1.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

方便前端小伙伴开发微信公众号业务,获取 code

使用:

import {code,getCode} from 'wechat-oauth-by-frontend'

!code
? getCode({
appid:'your appid',
redirect_uri:'your redirect_uri',
scope:'wechat scope type "snsapi_userinfo / snsapi_base"'
})
: getOpenid(code) /*your custom function to get openid*/
proptypedescdefault
appidStringyour appid
redirect_uriStringyour redirect_uriencodeURIComponent(location.href)
scopeStringscop type snsapi_userinfo or snsapi_basesnsapi_userinfo
1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago