logout method
Logs out the current user.
Sends a GET /user/logout request.
After logout, you should clear the auth token using client.clearAuthToken().
Throws DioError on failure.
Implementation
Future<void> logout() async {
await client.dio.get('/user/logout');
}