You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/security/rate-limiting.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -354,9 +354,7 @@ For most people, wrapping your options in an array will be enough.
354
354
If you are using a custom storage, you should wrap your `ttl` and `limit` in an
355
355
array and assign it to the `throttlers` property of the options object.
356
356
357
-
Any `@ThrottleSkip()` should now take in an object with `string: boolean` props.
358
-
The strings are the names of the throttlers. If you do not have a name, pass the
359
-
string `'default'`, as this is what will be used under the hood otherwise.
357
+
Any `@SkipThrottle()` decorator can be used to bypass throttling for specific routes or methods. It accepts an optional boolean parameter, which defaults to `true`. This is useful when you want to skip rate limiting on particular endpoints.
360
358
361
359
Any `@Throttle()` decorators should also now take in an object with string keys,
362
360
relating to the names of the throttler contexts (again, `'default'` if no name)
0 commit comments