MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / handleOAuthLogout

Function handleOAuthLogout

web/js/api-key-dialog.js:295–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293}
294
295async 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
313async function checkOAuthStatus() {
314 try {

Callers

nothing calls this directly

Calls 4

updateOAuthUIFunction · 0.85
updateApiKeyButtonFunction · 0.85
setStatusFunction · 0.70

Tested by

no test coverage detected