lacewing - v2.0.1
    Preparing search index...

    Type Alias LacewingEncryptionKey<Alg>

    A key bound to exactly one JWE key-management algorithm at import time - the encryption counterpart of LacewingKey. Kept a distinct brand so an encryption key can never be handed to SignJWT.sign, nor a signing key to EncryptJWT.encrypt.

    type LacewingEncryptionKey<Alg extends string = string> = {
        __brand: "LacewingEncryptionKey";
        algorithm: Alg & ValidAlg;
        key: unknown;
        keyType: "public" | "private" | "secret";
    }

    Type Parameters

    • Alg extends string = string
    Index
    __brand: "LacewingEncryptionKey"
    algorithm: Alg & ValidAlg
    key: unknown
    keyType: "public" | "private" | "secret"