@kervnet/opencode-kiro-auth 1.7.9 → 1.7.10
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.
|
@@ -23,11 +23,15 @@ export class AuthHandler {
|
|
|
23
23
|
// Refresh every 15 minutes
|
|
24
24
|
this.refreshTimer = setInterval(async () => {
|
|
25
25
|
try {
|
|
26
|
+
const logger = await import('../../plugin/logger.js');
|
|
27
|
+
logger.log('Background token refresh starting...');
|
|
26
28
|
const { syncFromKiroCli } = await import('../../plugin/sync/kiro-cli.js');
|
|
27
29
|
await syncFromKiroCli();
|
|
30
|
+
logger.log('Background token refresh completed');
|
|
28
31
|
}
|
|
29
32
|
catch (e) {
|
|
30
|
-
|
|
33
|
+
const logger = await import('../../plugin/logger.js');
|
|
34
|
+
logger.warn('Background token refresh failed', e);
|
|
31
35
|
}
|
|
32
36
|
}, 15 * 60 * 1000);
|
|
33
37
|
}
|
package/package.json
CHANGED