vigthoria-cli 1.11.46 → 1.11.47
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/dist/commands/auth.js +5 -3
- package/package.json +1 -1
package/dist/commands/auth.js
CHANGED
|
@@ -63,9 +63,11 @@ function syncSharedConfig(config) {
|
|
|
63
63
|
if (config.user?.email) {
|
|
64
64
|
shared.set('email', String(config.user.email));
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
// Always overwrite (never conditionally skip) so a fresh login can never
|
|
67
|
+
// leave a stale/rotated key behind from a prior session — a falsy value
|
|
68
|
+
// here explicitly clears the cache, forcing ensureV3ServiceKey() to fetch
|
|
69
|
+
// a real one on next use instead of silently trusting stale state.
|
|
70
|
+
shared.set('v3ServiceKey', config.v3ServiceKey || null);
|
|
69
71
|
}
|
|
70
72
|
catch {
|
|
71
73
|
// Keep legacy auth flow working even if shared config write fails.
|