interface RateLimitResult

Result of incrementing a rate limit counter.

Properties

readonly
count: number

Request count in the current window.

readonly
resetTime: number

Absolute timestamp (ms since epoch) when the window resets.

Usage

import { type RateLimitResult } from "auth-plugin/src/index.ts";