(storage?: RateLimitStorageAdapter)
| 36 | private storage: RateLimitStorageAdapter |
| 37 | |
| 38 | constructor(storage?: RateLimitStorageAdapter) { |
| 39 | this.storage = storage ?? createStorageAdapter() |
| 40 | } |
| 41 | |
| 42 | private getRateLimitKey(userId: string, subscription: SubscriptionInfo | null): string { |
| 43 | if (!subscription) return userId |
nothing calls this directly
no test coverage detected