fix: improve terminal robustness with exponential backoff and better keepalive #34

Merged
jimmy merged 9 commits from dev into main 2026-03-11 23:34:37 +08:00
Showing only changes of commit 5c5baba3d4 - Show all commits
@@ -36,13 +36,18 @@
}
async function registerPasskey() {
alert("registerPasskey called!");
passkeyLoading = true;
passkeyMsg = ""; passkeyErr = "";
try {
alert("Checking PublicKeyCredential support...");
if (!window.PublicKeyCredential) {
alert("PublicKeyCredential NOT supported!");
throw new Error("Passkeys are not supported in this browser or context");
}
alert("Fetching registration options...");
const opts = await post("/auth/passkey/register/options");
alert("Got options: " + JSON.stringify(opts).substring(0, 100));
opts.challenge = base64urlToBuffer(opts.challenge);
opts.user.id = base64urlToBuffer(opts.user.id);
if (opts.excludeCredentials) {