ArcaneAuthInterface class abstract
An abstract class that defines the authentication interface.
This interface provides methods for various authentication operations, including signing in, signing up, resetting passwords, and managing tokens.
Constructors
Properties
-
accessToken
→ Future<
String?> ? -
Returns the access token if available.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isSignedIn
→ Future<
bool> -
Returns
true
if the user is currently signed in.no setter -
refreshToken
→ Future<
String?> ? -
Returns the refresh token if available.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
) → Future< void> - Initializes the authentication interface.
-
login<
T> ({T? input, Future< void> onLoggedIn()?}) → Future<Result< void, String> > -
Logs the user in using an optional, generic
T
type of input. This login method is a generic method that can be used to login with any type of input. It is useful for login methods that do not require an email and password. Any type of input can be passed in, and it will be handled by the implementation of the method wihin the specific authentication service. -
logout(
) → Future< Result< void, String> > - Logs the user out of the session.
-
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