Skip to content

iamcc/wechat-open-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published