Represents a user in Afloat
This class centralizes user-related logic, simplifying interaction with user-related data and ensuring consistent permission checks across the application.
The user's Afloat profile, containing personal information such as name, contact details, and account information.
Indicates whether the user is required to change their default password.
Afloat users are initially provided with a default username and password. After the first
successful login, resetPassword
will be set to true
to prompt the user to set a new password.
The user's authentication token. This token must be passed in the request headers for all authenticated API endpoints.
permissionsMap: Record<string, boolean>
A map of permission keys to boolean values, indicating whether the user has access to specific actions or features in the system.