OneTimeTokenPlugin<T extends User> class

Inheritance

Constructors

OneTimeTokenPlugin.new()

Properties

dio ↔ Dio
latefinalinherited
fromJsonUser ↔ T Function(Map<String, dynamic> json)
latefinalinherited
getOptions Future<Options> Function({bool isTokenRequired})
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenStore TokenStore
latefinalinherited

Methods

generateToken() Future<GenerateTokenResponse>
Generate a one time token
initialize({required Dio dio, required Future<Options> getOptions({bool isTokenRequired}), required TokenStore tokenStore, required T fromJsonUser(Map<String, dynamic> json)}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verifyToken({required String token}) Future<SessionResponse<T>>
Verify a one time token

Operators

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