initializeSecurely method

Future<void> initializeSecurely()

Secure initialization with stored API key

Implementation

Future<void> initializeSecurely() async {
  final apiKey = await SecurityManager.getApiKey();
  if (apiKey == null) {
    throw Exception('API key not found in secure storage');
  }

  await initialize(apiKey: apiKey);
}