Users class
Provides user management and authentication functionality.
The Users class is the main interface for all user-related operations in the Calljmp SDK. It provides access to authentication methods and user profile management through the Auth subsystem.
Usage
final calljmp = Calljmp();
// Authenticate a user
final user = await calljmp.users.auth.email.authenticate(
email: 'user@example.com',
password: 'password',
policy: UserAuthenticationPolicy.signInOrCreate,
);
// Retrieve current user information
final currentUser = await calljmp.users.retrieve();
Constructors
- Users(Config _config, Attestation attestation)
- Creates a new Users instance.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retrieve(
) → Future< User> - Retrieves the current authenticated user's information.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{String? name, String? avatar, List< String> ? tags}) → Future<User> - Updates the current user's profile information.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited