Required backend-owned command capability for phone authentication.
Durable implementations must run each command in a real transaction. Code verification must atomically update attempts or lockout, consume one valid challenge, resolve or create the user, bind the phone identity, and update the user's verified-phone projection. Exactly one concurrent verifier may commit. Hard deletion must remove identities, challenges, and issue receipts in the same transaction as core user deletion.
SMS delivery, verification callbacks, and framework session/cookie issuance intentionally happen after these commands commit and are not rolled back by this API.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findPhoneNumberIdentity(
String phoneNumber) → FutureOr< AuthPhoneNumberIdentity?> -
Finds the identity bound to
phoneNumber. -
findPhoneNumberIdentityForUser(
String userId) → FutureOr< AuthPhoneNumberIdentity?> -
Finds the phone identity owned by
userId. -
issuePhoneNumberCode(
AuthPhoneNumberIssueCodeCommand command) → FutureOr< AuthPhoneNumberIssueResult> - Issues a challenge in the store-owned transaction.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyPhoneNumberCode(
AuthPhoneNumberVerifyCodeCommand command) → FutureOr< AuthPhoneNumberVerifyResult> - Verifies and consumes a challenge in the store-owned transaction.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited