@suluk/better-auth - v0.2.0
    Preparing search index...

    Interface AuthSecurity

    @suluk/better-auth — official Better-Auth-on-Hono support for the Suluk derivation engine.

    Better Auth is a Contract input (auth settings). This package: (1) derives v4 securitySchemes from the enabled auth methods; (2) ingests Better Auth's own OpenAPI 3.0 output (normalizing it to 2020-12) and lifts it to v4 via @suluk/openapi-compat, then merges it into the app doc — so the auth surface is documented without re-typing; (3) maps a Better Auth session to a { scopes } principal that feeds @suluk/hono's per-viewer emitV4; (4) mounts the auth handler on Hono. CANDIDATE tooling.

    interface AuthSecurity {
        securitySchemes: Record<string, SecurityScheme>;
        names: string[];
        plugins: { twoFactor: boolean; passkey: boolean; organization: boolean };
    }
    Index

    Properties

    securitySchemes: Record<string, SecurityScheme>

    v4 components.securitySchemes entries, keyed by scheme name.

    names: string[]

    Convenience: the scheme names, to build by-name security requirements.

    plugins: { twoFactor: boolean; passkey: boolean; organization: boolean }

    Enabled session-based plugins (NOT wire schemes — they gate into the session via scope-encoding).