getCurrentUserWebId method

Future<String?> getCurrentUserWebId()

Gets the current user's web ID.

Implementation

Future<String?> getCurrentUserWebId() async {
  try {
    final loggedIn = await isLoggedIn();
    if (!loggedIn) return null;

    // Get the web ID from the POD.

    final webId = await getWebId();
    return webId;
  } catch (e) {
    debugPrint('❌ Failed to get current user web ID: $e');
    return null;
  }
}