Auth class

Constructors

Auth()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isAuthorized bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(String token, {Map<String, dynamic>? user, bool isCustomToken = false}) Future<bool>
createToken({Duration? expiresIn, bool withRefreshToken = false, bool customToken = false}) Future<Map<String, dynamic>>
createTokenByRefreshToken(String token, {Duration? expiresIn, bool customToken = false}) Future<Map<String, dynamic>>
deleteCurrentToken() Future<bool>
deleteTokens() Future<bool>
get(String filed) → dynamic
guard(String guard) Auth
id() → dynamic
login(Map<String, dynamic> user) Auth
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
user() Map<String, dynamic>?

Operators

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