Constructs a new instance of the class with the provided UserDatasource.
The datasource to be used by the instance.
None
A boolean flag indicating whether the user is currently authenticating.
Asynchronously confirms password reset and logs in with the new password.
The new password to set.
The verification code for password reset.
The email address associated with the account.
A promise that resolves with the response data or an ErrorResponse object.
Disables email-based MFA for the given user.
The ID of the user to disable email MFA for.
A promise that resolves with the API response.
Disables SMS-based MFA for the given user.
The ID of the user to disable SMS MFA for.
A promise that resolves with the API response.
Enables email-based MFA for the given user.
The ID of the user to enable email MFA for.
A promise that resolves with the API response.
Enables SMS-based MFA for the given user. Requires the user to have a confirmed phone number on their account.
The ID of the user to enable SMS MFA for.
A promise that resolves with the API response.
Represents a user in the IDM system.