6 lines
735 B
Plaintext
6 lines
735 B
Plaintext
const https = require('https');
|
|
const fs = require('fs');
|
|
|
|
// WeChat QR code URL: use WeChat's protocol handler to trigger the QR code. Or generate a QR for github.com/login/device/code (GitHub device flow requires a separate request to get the URL. Actually let me try a different approach — the QR code for GitHub device login flow. I'll use GitHub provides device code (needs separate POST, not just QR code for GitHub device flow. The QR data-encoding URL isn't a static URL. Let me try WeChat QR code - wechat protocol URL. Let me try the QR for the WeChat device flow URL.
|
|
const data = encodeURIComponent('weixin://connect/qrconnect?appid=test&redirect_uri=https://github.com&scope=snsapi_login&response_type=code&state=github
|