Comments (4)
the wx
here at const wx = new WeChat(wechatInfo);
has nothing to do with the tencent browser side wx object, here it's just a instance name of WeChat class, which is used to do the server side task, like getting the token, jsapi_ticket, manage token/ticket data..., you can use anything you want, e.g:
const myWechatInstance = new WeChat(wechatInfo);
,
from wechat-jssdk.
tx for the quick response.
so the req.query.code
above
is the code returned from the redirect / silent login?
https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140842
I'm really just trying to get an openID, not the rest of the profile info.
Is the oAuth endpoint the only way to get that?
separate from that opening an oAuth signin from within a wechat official account (so we already have their permission and info) - will that skip the signin button popup for existing followers?
from wechat-jssdk.
checkout the implicit/slient oauth in the demo(demo/index.js
), which does not need user's permission.
in /
route to gen the implicit oauth url, and
in /implicit-oauth
route(redirected here by wechat) to get the user base info with the code retrieved from the implicit oauth url redirect above
from wechat-jssdk.
Fire a new issue if you still have confusions👀
from wechat-jssdk.
Related Issues (20)
- Cannot read property 'findOneAndUpdate' of undefined HOT 2
- 能支持proxy吗? HOT 1
- invalid credential, access_token is invalid or not latest hint HOT 2
- UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 12): AssertionError [ERR_ASSERTION]: non-error thrown: [object Object] HOT 1
- 小程序支付签名问题 HOT 4
- Migrate to Typescript HOT 1
- 我该如何发起NATIVE订单 返回包含code_url
- TypeError: Wechat is not a constructor HOT 1
- vue无法使用fs HOT 2
- {"errMsg":"没有此SDK或暂不支持此SDK模拟"} when trying to call updateAppMessageShareData HOT 1
- The content I shared is not displayed, replaced by a link HOT 1
- 无法调起 IOS 微信客户端 HOT 9
- openTagList support!!! HOT 4
- Support both ESM and CommonJS
- 支付请求95%的几率出现Z_DATA_ERROR:unknown compression method HOT 19
- typescript 的版本 ,目前有办法用么 HOT 1
- deno support?
- wechat Error: please get new code! HOT 4
- Why the callback is not run HOT 2
- Prepare v7.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechat-jssdk.