ConstStarts the TOTP setup flow.
Changes the authenticated user's password.
Deletes the authenticated user's account.
Disables TOTP for the authenticated user.
Fetch a user by ID.
Logs out the user by telling the server to clear the cookie.
Registers a new user with the provided user data.
Updates the authenticated user's profile (name + email).
Confirms a TOTP setup with the provided code.
Logs in a user. Handles the case-insensitivity of the returned user object.
Service object for handling authentication-related API calls.