SecretChallengeCompletionConfig<T> class
Configuration for completion token validation with all protection mechanisms.
This class provides callbacks for workflow-specific logic while keeping the core completion token validation logic generic and reusable.
Type parameter T represents the request type (e.g.,
EmailAccountRequest, EmailAccountPasswordResetRequest).
- Available extensions
Constructors
-
SecretChallengeCompletionConfig({required GetRequestCallback<
T> getRequest, required SecretChallenge? getCompletionChallenge(T request), required bool isExpired(T request), required OnExpiredCallback<T> onExpired, RateLimitedRequestAttemptUtil<UuidValue> ? rateLimiter}) - Creates a new SecretChallengeCompletionConfig.
Properties
- getCompletionChallenge → SecretChallenge? Function(T request)
-
Extracts the completion challenge from the request.
final
-
getRequest
→ GetRequestCallback<
T> -
Retrieves the request by ID.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool Function(T request)
-
Checks if the request has expired.
final
-
onExpired
→ OnExpiredCallback<
T> -
Called when the request has expired.
final
-
rateLimiter
→ RateLimitedRequestAttemptUtil<
UuidValue> ? -
Optional rate limiting for completion attempts.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
hasTooManyAttempts(
Session session, {required UuidValue nonce, Map< String, String> ? extraData}) → Future<bool> -
Available on SecretChallengeCompletionConfig<
Records an attempts and checks if the request has too many attempts.T> , provided by the SecretChallengeCompletionConfigExtension extension -
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