getUser method

Future<Response> getUser()

Fetches the authenticated driver's profile from GET /api/user.

Returns the raw Dio response — callers are responsible for parsing the user payload via UserModel.tryFromJson.

Throws a DioException on network or server error.

Implementation

Future<Response<dynamic>> getUser() async {
  return _authenticatedDio.get<dynamic>("/api/user");
}