getAuthUserInfo

mail@pastecode.io avatar
unknown
javascript
3 years ago
489 B
5
Indexable
Never
my.getAuthCode({
    scopes: ['auth_base'],
    success: authcode => {
      console.log(authcode);
    
      my.getAuthUserInfo({
        success: res => {
          console.log("getAuthUserInfo success");
          this.userInfo = res;
          resolve(this.userInfo);
          console.log(this.userInfo);
        },
        fail: () => {
          console.log("getAuthUserInfo failed");
          reject({});
        },
      });
    },
    fail: () => {
      reject({});
    },
});