1.0.20 • Published 3 years ago

wechat-oauth-by-frontend v1.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago