AuthRateLimitRequest<TContext> class final

The non-secret context supplied to an auth rate limiter.

The request deliberately contains no password, OAuth code, bearer token, verification token, or other credential secret. identifier is suitable for a limiter key (for example, an email address or username), but callers must still treat it as private user input.

Constructors

AuthRateLimitRequest({required AuthRateLimitAction action, required String providerId, required TContext context, String? identifier})
Creates a request using the deprecated core action field.
const
AuthRateLimitRequest.operation({required AuthRateLimitOperation operation, required String providerId, required TContext context, String? identifier})
Creates a request for a namespaced operation.
const

Properties

action → AuthRateLimitAction
Legacy core action, when this request represents one.
no setter
context → TContext
Host context used by the limiter to derive trusted request attributes.
final
hashCode → int
The hash code for this object.
no setterinherited
identifier → String?
Optional non-secret identifier such as an email or username.
final
operation → AuthRateLimitOperation
Operation being checked by the limiter.
no setter
providerId → String
Identifier of the provider handling the operation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited