- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5
 
Open
Description
I have the following use case:
I have an endpoint receiving API POST requests, which require an API key for authentication. I want to rate limit only wrong API keys.
- Request is received
 - Rate limit is checked, without being increased
 - If rate is not exceeded, the API key is checked
- If the key is correct, the limit for this specific request (IP/UA) is reset
 - Is the key incorrect, the rate limit value is increased
 
 
I haven't been able to find the following two functionalities:
- Check, if the rate limit is already exceeded without increasing the value
limiter.isLimitExceeded(event); - Reset the limit for a specific request
limiter.reset(event); 
What do you think? Do you agree that this will be a fine addition to the collection of functions this rate limiter has?
filiabel and alker0
Metadata
Metadata
Assignees
Labels
No labels