app: use auth model for init, sidebar, login
This commit is contained in:
@@ -23,13 +23,19 @@ export { definePage, hComp } from './component.js';
|
||||
export { createRouter, Link } from './router.js';
|
||||
|
||||
/* ── WebSocket ───────────────────────────────────────────────── */
|
||||
export { connect, onMessage } from './websocket.js';
|
||||
export { connect, onMessage, disconnect } from './websocket.js';
|
||||
|
||||
/* ── API & Toast ─────────────────────────────────────────────── */
|
||||
export { apiFetch, toast, dismissToast, apiSubmit, checkAbort, poll, refactorLoad, formAction, setAuthToken, clearAuthTokens, getAuthToken } from './api.js';
|
||||
export { apiFetch, toast, dismissToast, apiSubmit, checkAbort, poll, refactorLoad, formAction }
|
||||
from './api.js';
|
||||
|
||||
/* ── UI Components: Auth ──────────────────────────────────────── */
|
||||
export { scheduleTokenRefresh, cancelTokenRefresh, checkSession, logout, initAuth, handleLoginSuccess, webauthnSupported, startRegistration, startAuthentication } from './components/auth.js';
|
||||
export { logout, doLogin, webauthnSupported, checkWebAuthnCapable,
|
||||
startRegistration, startAuthentication } from './components/auth.js';
|
||||
|
||||
/* ── Auth model ───────────────────────────────────────────────── */
|
||||
export { createAuthModel, getAuthToken, isAuthenticated, refreshAuth, getAuthData }
|
||||
from './auth_model.js';
|
||||
|
||||
/* ── Model ───────────────────────────────────────────────────── */
|
||||
export { modelRegister, getModel, modelFetch, collectLoadingModels } from './model.js';
|
||||
|
||||
Reference in New Issue
Block a user