lacewing - v2.0.1
    Preparing search index...

    Interface KeySource

    Anything that can produce a verification key for a token header. Implemented by createLocalJWKSet and createRemoteJWKSet.

    allowedAlgorithms is the profile's allowlist as descriptors, so a source can tell which key type and curve each one needs; header.alg is already one of them.

    interface KeySource {
        getVerificationKey(
            header: JwtHeader,
            allowedAlgorithms: readonly AlgorithmInfo<string>[],
        ): Promise<ResolvedVerificationKey>;
    }
    Index