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

    Interface VerifyApiKeyResult

    interface VerifyApiKeyResult {
        ok: boolean;
        reason?: VerifyReason;
        principal?: Principal;
        key?: VerifiedKey;
    }
    Index

    Properties

    ok: boolean
    reason?: VerifyReason

    why verification failed (absent on success).

    principal?: Principal

    the { scopes } Principal — the SAME shape principalFromSession returns, so enforceAccess works identically.