oauth-validator
v1.0.1
Published
server-side validating wechat, weibo,qq oauthentication
Downloads
1
Readme
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
});