{#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.createUser(input)} onDeleteUser={(id) => auth.deleteUser(id)} onListUsers={() => auth.listUsers()} onUpdateUser={(id, input) => auth.updateUser(id, input)} /> auth.createUser(input)} onDeleteUser={(id) => auth.deleteUser(id)} onListUsers={() => auth.listUsers()} onSave={saveProfile} onUpdateUser={(id, input) => auth.updateUser(id, input)} onTotpStatus={() => auth.totpStatus()} onTotpSetup={() => auth.setupTotp()} onTotpEnable={(token) => auth.enableTotp(token)} onTotpDisable={(token) => auth.disableTotp(token)} />