Skip to content

About

微信 Open 平台代发起网页授权

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

微信 Open 平台代发起网页授权

Build Status Coverage Status

使用

const opts = {
  appId,
  scope,
  state,
  redirectUrl,
  componentAppId,
  componentAccessToken,
};
const oauth = new OAuth(opts);

const authorizeUrl = oauth.getAuthorizeUrl({ redirectUrl, scope, state });

Error

Error {
  name: 'WechatOpenOAuthError',
  code: Number, // 错误代码,对应微信的错误代码
  message: String, // 错误信息
}

About

微信 Open 平台代发起网页授权

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages