AuthService class
A service class that handles user authentication including login, signup, and demo user authentication. It interacts with various providers, utilities, and external services like encryption and shared preferences to manage the authentication process.
Constructors
- AuthService(BuildContext context)
- Constructor for AuthService.
Properties
- context → BuildContext
-
The BuildContext used for accessing providers, dialogs, and localizations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
logInDemoUserFlutterLogin(
) → Future< void> - Logs in the demo user automatically for testing or demonstration purposes.
-
loginUser(
LoginData data, bool rememberMe) → Future< String?> - Logs in the user by verifying the provided credentials.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signupUser(
SignupData signupData, bool rememberMe) → Future< String?> - Registers a new user using the provided signup information.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited