Skip to content

Commit 1b5fd2c

Browse files
chore: reset acess token
1 parent bf23554 commit 1b5fd2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client/metadataApiDeploy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ export class MetadataApiDeploy extends MetadataTransfer<
307307
message: `${EOL}${errors.join(EOL)}`,
308308
name: 'AgentCompilationError',
309309
});
310+
} else {
311+
// everything successfully compiled
312+
// stop using named user jwt access token
313+
delete connection.accessToken;
314+
await connection.refreshAuth();
310315
}
311316
}
312317
}

0 commit comments

Comments
 (0)