```dart Future fetchAllDevices() async { try { final devices = await Amplify.Auth.fetchDevices(); for (final device in devices) { safePrint('Device: $device'); } } on AuthException catch (e) { safePrint('Fetch devices failed with error: $e'); } } ```