{#if auth.loading} {:else if auth.error} {:else if !auth.status || auth.status.setupRequired || !auth.status.authenticated} {:else} auth.logout()} onProfile={() => (credentialsOpen = true)} onSettings={() => (settingsOpen = true)} > {@render children?.()} {/if} auth.totpStatus()} onTotpSetup={() => auth.setupTotp()} onTotpEnable={(token) => auth.enableTotp(token)} onTotpDisable={(token) => auth.disableTotp(token)} />