notifyre-nodejs-sdk
Version:
The official Notifyre NodeJS SDK library for use with the Notifyre API
6 lines (5 loc) • 435 B
TypeScript
import { AxiosError, AxiosResponse } from 'axios';
export declare const generateSignature: (message: string, key: string) => string;
export declare const verifySignature: (signatureHeader: string, payload: any, signingSecret: string, timeToleranceSec?: number) => boolean;
export declare const responseInterceptor: (res: AxiosResponse) => any;
export declare const errorInterceptor: (res: AxiosError<any, any>) => Promise<never>;