opencode-studio-server 1.12.8 → 1.12.9
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1896,12 +1896,14 @@ function importCurrentGoogleAuthToPool() {
|
|
|
1896
1896
|
const email = creds.email;
|
|
1897
1897
|
const profilePath = path.join(profileDir, `${email}.json`);
|
|
1898
1898
|
|
|
1899
|
-
// Check if we need to sync (new account or updated tokens)
|
|
1899
|
+
// Check if we need to sync (new account or updated tokens/metadata)
|
|
1900
1900
|
let shouldSync = true;
|
|
1901
1901
|
if (fs.existsSync(profilePath)) {
|
|
1902
1902
|
try {
|
|
1903
1903
|
const current = JSON.parse(fs.readFileSync(profilePath, 'utf8'));
|
|
1904
|
-
if (current.access_token === creds.access_token
|
|
1904
|
+
if (current.access_token === creds.access_token &&
|
|
1905
|
+
current.projectId === creds.projectId &&
|
|
1906
|
+
current.tier === creds.tier) {
|
|
1905
1907
|
shouldSync = false;
|
|
1906
1908
|
}
|
|
1907
1909
|
} catch {
|