Auth class

Auth class to handle authentication

Constructors

Auth()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

isAuthenticated → Future<AuthStatus>
Check if user is authenticated
no setter

Static Methods

deleteCredentials() → bool
Delete the credentials
getLoginUrl({required Function onSuccess, required dynamic onFailure(String)}) → Future<Uri?>
Get the login URL from the server
login({required Function onSuccess, required dynamic onFailure(String)}) → Future<void>
Login the user
logout() → bool
Logout the user
refreshToken() → Future<bool>
Refresh the auth token