export function hmacAuthentication()

in projects/user-telemetry-client/src/authentication/node/HmacRequest.ts [22:32]


export function hmacAuthentication(hmacSecretKey: string): GuAuthMiddleware {
    return (requestInit: RequestInit) => {
        return {
            ...requestInit,
            headers: new Headers({
                "Content-Type": "application/json",
                ...generateHmacHeaders(new Date(), "/event", hmacSecretKey)
            })
        };
    }
}