AuthService class

Constructors

AuthService(ApiClient client)
Constructs an AuthService using the provided ApiClient.

Properties

client → ApiClient
An instance of the API client to perform HTTP operations.
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

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