()
| 293 | } |
| 294 | |
| 295 | async function handleOAuthLogout() { |
| 296 | const provider = providerSelect.value; |
| 297 | try { |
| 298 | await fetch("/api/oauth/logout", { |
| 299 | method: "POST", |
| 300 | headers: { "Content-Type": "application/json" }, |
| 301 | body: JSON.stringify({ provider }), |
| 302 | }); |
| 303 | updateOAuthUI(false); |
| 304 | state.config.oauthConnected = false; |
| 305 | updateApiKeyButton(); |
| 306 | refreshWebSocketConnectionPreference(); |
| 307 | setStatus("Logged out successfully", "success"); |
| 308 | } catch (err) { |
| 309 | setStatus("Logout failed: " + err.message, "error"); |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | async function checkOAuthStatus() { |
| 314 | try { |
nothing calls this directly
no test coverage detected