AuthService class
Constructors
- AuthService(ApiClient client)
- Constructs an AuthService using the provided ApiClient.
Properties
Methods
-
getCurrentUser(
) → Future< UserModel> - Gets the currently authenticated user's profile.
-
login(
UserModel credentials) → Future< UserModel> - Logs a user in to the Form.io project.
-
logout(
) → Future< void> - Logs out the current user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
UserModel user) → Future< UserModel> - Registers a new user account.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited