()
| 471 | // ── BYOP Auth ──────────────────────────────────────────────────────────────── |
| 472 | |
| 473 | function 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 | |
| 485 | async function updateAuthUI({ skipModelPick = false } = {}) { |
| 486 | const loggedOutEl = $("authLoggedOut"); |
no test coverage detected