File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var logger = require('../../logger').default;
9
9
// Returns a promise that fulfills iff this user id is valid.
10
10
function validateAuthData ( authData , params ) {
11
11
return vkOAuth2Request ( params ) . then ( function ( response ) {
12
- if ( response && response && response . access_token ) {
12
+ if ( response && response . access_token ) {
13
13
return request ( "api.vk.com" , "method/secure.checkToken?token=" + authData . access_token + "&client_secret=" + params . appSecret + "&access_token=" + response . access_token ) . then ( function ( response ) {
14
14
if ( response && response . response && response . response . user_id == authData . id ) {
15
15
return ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function validateAuthData(authData) {
8
8
if ( data . errcode == 0 ) {
9
9
return ;
10
10
}
11
- throw new Parse . Error ( Parse . Error . OBJECT_NOT_FOUND , 'qq auth is invalid for this user.' ) ;
11
+ throw new Parse . Error ( Parse . Error . OBJECT_NOT_FOUND , 'wechat auth is invalid for this user.' ) ;
12
12
} ) ;
13
13
}
14
14
@@ -34,7 +34,7 @@ function graphRequest(path) {
34
34
resolve ( data ) ;
35
35
} ) ;
36
36
} ) . on ( 'error' , function ( ) {
37
- reject ( 'Failed to validate this access token with weixin .' ) ;
37
+ reject ( 'Failed to validate this access token with wechat .' ) ;
38
38
} ) ;
39
39
} ) ;
40
40
}
You can’t perform that action at this time.
0 commit comments