feat: auto-generate new token after each install command copy

Users no longer need to manually click 'New Token' - a fresh token is
automatically generated after each copy. The command shown is always
ready for the next host.
This commit is contained in:
rcourtman 2025-12-13 23:00:58 +00:00
parent 893d3d5c79
commit cc5586c5c0

View file

@ -178,6 +178,10 @@ export const CompleteStep: Component<CompleteStepProps> = (props) => {
if (success) {
setCopied('install');
setTimeout(() => setCopied(null), 2000);
// Auto-generate a new token for the next host
// This ensures each copy gets a unique token without user intervention
generateNewToken();
}
};
@ -354,7 +358,7 @@ Keep these credentials secure!
</button>
</div>
<p class="text-white/70 text-xs mb-2">
Run on the host you want to monitor. <span class="text-amber-300">Use a different token for each host</span> - click "New Token" after each install.
Copy and run on each host. <span class="text-green-300">A new token is generated automatically after each copy.</span>
</p>
<div class="bg-black/40 rounded-lg p-2.5 font-mono text-[10px] mb-2 relative group">