• Signs out a user by invalidating their session on the backend.

    Sends a POST request to the signout endpoint with the user's ID.

    Parameters

    • userID: string

      The user's unique ID.

    Returns Promise<{ error?: string }>

    An object indicating success or containing an error message.