DVAccountProvider class abstract interface

A provider that can change an account's address and delete an account, for the generated account endpoints.

The endpoints decide when: an address changes only after a code sent to it comes back, and an account is deleted only after its password -- and its second factor, when it has one -- and explicit confirmation. The provider only does what it is told.

Implemented types

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

changeEmail(String id, String email) → Future<AuthUser>
Moves the account with id to email. Throws AuthException with AuthFailure.accountExists when another account has that address and AuthFailure.invalidEmail when it is not one.
deleteAccount(String id) → Future<void>
Removes the account with id. Its credentials no longer sign in.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
userById(String id) → Future<AuthUser?>
The account with id, or null when there is none.
inherited

Operators

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