UserModule class
User Module includes user authentication apis
- Inheritance
-
- Object
- BaseModule
- UserModule
Constructors
- UserModule(RpcProvider provider)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- provider ↔ RpcProvider
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateIdToken(
{int lifespan = 900, String attachment = 'none'}) → Future< String> - Returns Future of String, Decentralized Id Token with optional serialized data
-
getIdToken(
{int lifespan = 900}) → Future< String> - Returns Future of String, Generates a Decentralized Id Token which acts as a proof of authentication to resource servers.
-
getMetadata(
) → Future< UserMetadata> - Returns Future of UserMetadata, Retrieves information for the authenticated user.
-
isLoggedIn(
) → Future< bool> - Returns Future of bool, which denotes if user has already logged in, or not.
-
logout(
) → Future< bool> - Returns Future of bool, Logs out the currently authenticated Magic user
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendToProvider(
{required Enum method, List? params}) → Future< JavaScriptMessage> -
Returns
inherited
-
sendToProviderWithMap(
{required Enum method, Map< String, dynamic> ? params}) → Future<JavaScriptMessage> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateEmail(
{required String email, bool showUI = true}) → Future< bool> - Returns Future of bool, Initiates the update email flow that allows a user to change their email address and returns if the update is successful
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited