/** * `@noy-db/hub/session` — subpath export for session tokens + policies. * * Apps that use single-shot unlock (one `createNoydb()` call per user * action) can exclude this subpath — ~2 KB saved. Long-running apps * with idle timeout, re-auth policies, magic-link viewer sessions, * or dev-mode unlock opt in here. * * The main `@noy-db/hub` entry still re-exports every symbol for * backward compatibility through.x. * * NOTE: magic-link helpers are expected to extract into a new * `@noy-db/on-magic-link` package. Until that lands, * they live here alongside session primitives. */ export { createSession, resolveSession, revokeSession, revokeAllSessions, isSessionAlive, activeSessionCount, } from './session.js'; export type { SessionToken, CreateSessionResult, CreateSessionOptions, } from './session.js'; export { PolicyEnforcer, createEnforcer, validateSessionPolicy } from './session-policy.js'; export { enableDevUnlock, loadDevUnlock, clearDevUnlock, isDevUnlockActive, } from './dev-unlock.js'; export type { DevUnlockOptions } from './dev-unlock.js'; export { withSession } from './active.js'; export type { SessionStrategy } from './strategy.js'; export { SessionExpiredError, SessionNotFoundError, SessionPolicyError, } from '../../kernel/errors.js';