opencode-anthropic-fix 0.0.16 → 0.0.17

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/cli.mjs CHANGED
@@ -160,6 +160,7 @@ export async function refreshAccessToken(account) {
160
160
  account.access = json.access_token;
161
161
  account.expires = Date.now() + json.expires_in * 1000;
162
162
  if (json.refresh_token) account.refreshToken = json.refresh_token;
163
+ account.token_updated_at = Date.now();
163
164
  return json.access_token;
164
165
  } catch {
165
166
  return null;
@@ -393,6 +394,7 @@ export async function cmdLogin() {
393
394
  refreshToken: credentials.refresh,
394
395
  access: credentials.access,
395
396
  expires: credentials.expires,
397
+ token_updated_at: now,
396
398
  addedAt: now,
397
399
  lastUsed: 0,
398
400
  enabled: true,