MCPcopy Create free account
hub / github.com/pollinations/pollinations / handleAuthRedirect

Function handleAuthRedirect

apps/catgpt/script.js:473–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

471// ── BYOP Auth ────────────────────────────────────────────────────────────────
472
473function handleAuthRedirect() {
474 const key = extractApiKeyFromFragment();
475 if (!key) return;
476 storeApiKey(key);
477 window.history.replaceState(
478 {},
479 "",
480 window.location.pathname + window.location.search,
481 );
482 notify("Logged in! Using your Pollen balance now.", "success");
483}
484
485async function updateAuthUI({ skipModelPick = false } = {}) {
486 const loggedOutEl = $("authLoggedOut");

Callers 1

script.jsFile · 0.85

Calls 3

storeApiKeyFunction · 0.90
notifyFunction · 0.85

Tested by

no test coverage detected