chaimi-bookkeeping-mcp 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/oauth.js +6 -1
- package/package.json +1 -1
package/oauth.js
CHANGED
|
@@ -57,9 +57,14 @@ class OAuthManager {
|
|
|
57
57
|
await this.authorizeWithDeviceFlow(deviceCodeRes);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
// 3. 轮询获取 Token
|
|
61
|
+
console.log('');
|
|
62
|
+
console.log('⏳ 等待用户授权,请勿关闭窗口...');
|
|
63
|
+
console.log(' (请在手机微信中完成授权操作)');
|
|
64
|
+
console.log('');
|
|
60
65
|
const token = await this.pollForToken(
|
|
61
66
|
deviceCodeRes.deviceCode,
|
|
62
|
-
|
|
67
|
+
deviceCodeRes.interval * 1000 || 5000
|
|
63
68
|
);
|
|
64
69
|
|
|
65
70
|
await this.tokenStorage.save(token);
|