Documentation

AuthRateLimitMiddleware implements MiddlewareInterface

Rate limiting middleware specifically for web authentication routes.

Applies 10 requests per 5 minutes limit to login, register, and password reset endpoints.

Tags
since
3.0.0

Table of Contents

Interfaces

MiddlewareInterface
Interface for route middleware.

Constants

LIMIT  = 10
WINDOW  = 300

Properties

$storage  : RateLimitStorage

Methods

__construct()  : mixed
handle()  : bool
Handle the incoming request.
getClientIdentifier()  : string

Constants

Properties

Methods

handle()

Handle the incoming request.

public handle() : bool
Return values
bool

True if the request should continue, false to halt


        
On this page

Search results