getUserId static method

Future<String?> getUserId()

Retrieves the current user ID set in the SDK.

Implementation

static Future<String?> getUserId() async {
  try {
    return await _channel.invokeMethod('getUserId');
  } catch (e) {
    debugPrint('Error getting user ID: $e');
    return null;
  }
}