@rsksmart/express-did-auth
Version:
Authentication with Verifiable Credentials for Express.js
13 lines • 418 B
TypeScript
export declare type RequestCounterFactory = () => RequestCounter;
export interface RequestCounterConfig {
maxRequestsPerTimeSlot?: number;
timeSlot?: number;
}
export declare class RequestCounter {
private accesses;
private maxRequests;
private timeSlot;
constructor({ maxRequestsPerTimeSlot, timeSlot }: RequestCounterConfig);
count(): void;
}
//# sourceMappingURL=request-counter.d.ts.map