InappifyOtpChallenge class
OTP challenge created by the selected Inappify backend.
The challenge identifier is opaque and must be passed back unchanged to OTP verification. Implementations must not log the identifier or OTP code.
- Annotations
Constructors
- InappifyOtpChallenge({required String challengeId, String? status, String? expiresAt, int? expiresIn})
-
Creates an OTP challenge.
const
-
InappifyOtpChallenge.fromMap(Map<
String, dynamic> map) -
Decodes a challenge response from JavaScript or a future native SDK.
factory
Properties
- challengeId → String
-
Opaque identifier correlating the verification attempt.
final
- expiresAt → String?
-
Optional ISO-8601 expiration timestamp supplied by the backend.
final
- expiresIn → int?
-
Optional remaining validity in seconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String?
-
Provider-defined challenge state.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Encodes this challenge using standard message-codec values.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited