Member area: loading spinner instead of flashing the sign-in card

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-10 08:17:55 -05:00
parent 7708e602ae
commit bcc895dc8d
16 changed files with 24 additions and 17 deletions
+4 -1
View File
@@ -486,7 +486,10 @@
document.getElementById('memberArea').classList.toggle('side-open'));
async function render() {
const me = await IAP.refreshNavWallet();
// while /api/me answers, show a spinner instead of flashing the sign-in card at a signed-in member
let me = null;
try { me = await IAP.refreshNavWallet(); } catch (e) { me = null; }
if ($('bootSpin')) $('bootSpin').hidden = true;
// one way in: email. A wallet-only session (no account) is sent back to the
// email card with a finish-setup note; verifying the code links that wallet.
const walletOnly = !!(me && me.signedIn && !me.email);