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

Function checkOAuthStatus

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

Source from the content-addressed store, hash-verified

311}
312
313async function checkOAuthStatus() {
314 try {
315 const res = await fetch("/api/oauth/status");
316 const { connected } = await res.json();
317 updateOAuthUI(connected);
318 state.config.oauthConnected = connected;
319 updateApiKeyButton();
320 refreshWebSocketConnectionPreference();
321 } catch (err) {
322 console.error("Failed to check OAuth status:", err);
323 }
324}
325
326function pollOAuthStatus() {
327 const interval = setInterval(async () => {

Callers 1

updateProviderUIFunction · 0.85

Calls 3

updateOAuthUIFunction · 0.85
updateApiKeyButtonFunction · 0.85

Tested by

no test coverage detected