Generates a new primary key. Your old key will stop working immediately. Sub-keys are not affected.
-
-
-
-
⚠️ New primary key — copy it now. This is the only time it will be shown.
-
-
-
-
-
-
@@ -138,15 +125,13 @@
}
async function confirmReset() {
- if (!confirm('Rotate your primary key?\n\nYour current key will stop working immediately. Make sure to copy the new one.')) return;
+ if (!confirm('Rotate your login key? Your current key stops working immediately.')) return;
const data = await api('/account/reset-key', { method: 'POST', body: {} });
- document.getElementById('rotated-key-value').textContent = data.key;
- document.getElementById('rotated-key-reveal').classList.remove('hidden');
- document.getElementById('rotated-key-reveal').scrollIntoView({ behavior: 'smooth', block: 'nearest' });
+ document.getElementById('login-key-display').textContent = data.key;
}
- function copyRotatedKey() {
- const val = document.getElementById('rotated-key-value').textContent;
+ function copyLoginKey() {
+ const val = document.getElementById('login-key-display').textContent;
navigator.clipboard.writeText(val);
const btn = event.target;
btn.textContent = 'Copied!'; btn.classList.add('text-green-400');