- Added functionality to check token expiration and key valid

This commit is contained in:
decolua committed 2026-02-02 10:57:19 +07:00
1 parent 21f4b43447
commit 686585d576
2 files changed
+467 -74

No files matched your search

@@ -823,11 +823,6 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
const res = await fetch(`/api/providers/${connection.id}/test`, { method: "POST" });
const data = await res.json();
setTestResult(data.valid ? "success" : "failed");
if (data.valid) {
onSave({ testStatus: "active", lastError: null, lastErrorAt: null });
} else {
onSave({ testStatus: "error", lastError: data.error, lastErrorAt: new Date().toISOString() });
}
} catch {
setTestResult("failed");
} finally {