getMyProfile method

Future<Map<String, dynamic>> getMyProfile()

Get complete profile data with stored IDs

Implementation

Future<Map<String, dynamic>> getMyProfile() async {
  final userId = await getSavedUserId();
  final tenantId = await getTenantId();

  if (userId == null || tenantId == null) {
    return {
      'success': false,
      'message': 'User not logged in or missing credentials',
    };
  }

  return await getUserProfile(
    userId: userId,
    tenantId: tenantId,
  );
}