@kervnet/opencode-kiro-auth 1.7.10 → 1.7.11

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.
@@ -146,6 +146,14 @@ export async function syncFromKiroCli() {
146
146
  }
147
147
  }
148
148
  }
149
+ // Encode refresh token with client credentials for IDC
150
+ const { encodeRefreshToken } = await import('../../kiro/auth.js');
151
+ const encodedRefreshToken = encodeRefreshToken({
152
+ refreshToken,
153
+ clientId,
154
+ clientSecret,
155
+ authMethod: 'idc'
156
+ });
149
157
  await kiroDb.upsertAccount({
150
158
  id,
151
159
  email: resolvedEmail,
@@ -154,7 +162,7 @@ export async function syncFromKiroCli() {
154
162
  clientId,
155
163
  clientSecret,
156
164
  profileArn: tokenProfileArn,
157
- refreshToken,
165
+ refreshToken: encodedRefreshToken,
158
166
  accessToken,
159
167
  expiresAt: tokenExpiresAt,
160
168
  rateLimitResetTime: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kervnet/opencode-kiro-auth",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "OpenCode plugin for AWS Kiro (CodeWhisperer) with IAM Identity Center profile support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",