oauth-validator

1.0.1 • Public • Published

Feature

validate user's wechat, qq, weibo identity

Usage

  let oauthValidator = new OauthValidator({
    service: 'wechat',
    appid: 'xxx'
  });

  return oauthValidator.validate('token', 'openid').then(isValid => {
    if(!isValid) {
      //do something
      return;
    }
    //do something else
  });

Readme

Keywords

none

Package Sidebar

Install

npm i oauth-validator

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • neillv