getBridgeAccessToken function

String? getBridgeAccessToken()

Get the bridge access token from the environment or config.

Implementation

String? getBridgeAccessToken() {
  // Check environment variable first.
  final envToken = const String.fromEnvironment(
    'BRIDGE_ACCESS_TOKEN',
    defaultValue: '',
  );
  if (envToken.isNotEmpty) return envToken;

  // In production, this would read from the config store.
  return null;
}