@kervnet/opencode-kiro-auth 1.7.0 → 1.7.1
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.
|
@@ -6,9 +6,11 @@ export class KiroCliAuthMethod {
|
|
|
6
6
|
this.repository = repository;
|
|
7
7
|
}
|
|
8
8
|
async authorize() {
|
|
9
|
-
// Sync from kiro-cli
|
|
9
|
+
// Sync from kiro-cli first
|
|
10
10
|
const { syncFromKiroCli } = await import('../../plugin/sync/kiro-cli.js');
|
|
11
11
|
await syncFromKiroCli();
|
|
12
|
+
// Give it a moment for the database to be written
|
|
13
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
12
14
|
// Check if we have any accounts
|
|
13
15
|
const accounts = await this.repository.findAll();
|
|
14
16
|
if (accounts.length === 0) {
|
package/package.json
CHANGED