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 +1 -1
- package/src/plugin/token.ts +3 -4
package/package.json
CHANGED
package/src/plugin/token.ts
CHANGED
|
@@ -139,14 +139,13 @@ export async function refreshAccessToken(
|
|
|
139
139
|
storeCachedAuth(updatedAuth);
|
|
140
140
|
invalidateProjectContextCache(auth.refresh);
|
|
141
141
|
|
|
142
|
-
|
|
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;
|