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

auth Auth
Provides authentication functionality for users.
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

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