Signs out a user by invalidating their session on the backend.
Sends a POST request to the signout endpoint with the user's ID.
The user's unique ID.
An object indicating success or containing an error message.
Signs out a user by invalidating their session on the backend.
Sends a POST request to the signout endpoint with the user's ID.