• Updates the lock status of a user in the backend.

    Parameters

    • userID: string

      The user's unique identifier.

    • isLocked: boolean

      Whether the user should be locked (true) or unlocked (false).

    Returns Promise<{ error?: string }>

    An object indicating success or containing an error message.