DRFAuth class

Constructors

DRFAuth(String baseUrl, String usernameField, String tokenPath, String refreshPath)

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
refreshPath String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenPath String
final
usernameField String
final

Methods

getAccessToken() Future<String?>
getRefreshToken() Future<String?>
getTokenWithRefresh() Future<String?>
isLoggedIn() Future<bool>
login(String username, String password) Future<Response>
logout() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshAccessToken() Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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