opencode-gemini-auth 1.1.3 → 1.1.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-gemini-auth",
3
3
  "module": "index.ts",
4
- "version": "1.1.3",
4
+ "version": "1.1.4",
5
5
  "author": "jenslys",
6
6
  "repository": "https://github.com/jenslys/opencode-gemini-auth",
7
7
  "files": [
@@ -139,14 +139,13 @@ export async function refreshAccessToken(
139
139
  storeCachedAuth(updatedAuth);
140
140
  invalidateProjectContextCache(auth.refresh);
141
141
 
142
- const refreshTokenRotated =
143
- typeof payload.refresh_token === "string" && payload.refresh_token !== parts.refreshToken;
144
-
145
- if (refreshTokenRotated) {
142
+ try {
146
143
  await client.auth.set({
147
144
  path: { id: GEMINI_PROVIDER_ID },
148
145
  body: updatedAuth,
149
146
  });
147
+ } catch (storeError) {
148
+ console.error("Failed to persist refreshed Gemini OAuth credentials:", storeError);
150
149
  }
151
150
 
152
151
  return updatedAuth;