@aexol/spectral 0.9.123 → 0.9.124
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.
|
@@ -98,7 +98,7 @@ export async function ensureMachineRegistered(deps) {
|
|
|
98
98
|
// endpoint so the backend can transfer ownership (upsert ownerId).
|
|
99
99
|
// Team-API-key auth (no userJwt) keeps the existing reuse behavior.
|
|
100
100
|
let shouldReuse = true;
|
|
101
|
-
if (deps.userJwt
|
|
101
|
+
if (deps.userJwt) {
|
|
102
102
|
const currentUser = decodeJwtSub(deps.userJwt);
|
|
103
103
|
if (currentUser && currentUser !== existing.ownerId) {
|
|
104
104
|
console.log("Machine registered under a different account, re-registering to transfer ownership...");
|