@cfxlabsinc/b2b-services
    Preparing search index...

    Variable apiAuthFastifyPluginConst

    apiAuthFastifyPlugin: FastifyPluginCallback<
        {
            authenticationStrategy: (
                apiKey: string,
                apiSecret: string,
            ) => Promise<string | null>;
            ignore?: RegExp;
        },
    > = ...

    Fastify plugin to validate incoming API credentials and enrich the request with customer ID

    v1 of this plugin exposed the customer.id numerical DB field that should have never been exposed. This major version uses the customer.external_id.