@planyun/wechat-auth
v0.0.11
Published
> planyun SDK for Wechat Third Party Platforms Oauth2 for Browser
Downloads
2
Readme
@planyun/wechat-auth
planyun SDK for Wechat Third Party Platforms Oauth2 for Browser
Installing
To install the this package, simply type add or install @planyun/wechat-auth using your favorite package manager:
- npm install @planyun/wechat-auth
- yarn add @planyun/wechat-auth
- pnpm add @planyun/wechat-auth
Getting Started
const wechatAuth = new WechatAuth({ origin: <origin>, state: <state> })
// getInfo() will return state info & user info
console.log(wechatAuth.getInfo())
Feature
- auto check env.isWechat and user-friendly interaction to obtain user authorization.
- support PV UV