fetchUserAuthId static method

String? fetchUserAuthId(
  1. String localStoragePath
)

Returns the auth id of the cloud user logged in on localStoragePath, or null if the user is not logged in or the id is not stored.

Implementation

static String? fetchUserAuthId(String localStoragePath) {
  final cloudUser = ResourceManager.tryFetchServerpodCloudUserDataSync(
    localStoragePath: localStoragePath,
  );
  return cloudUser?.userAuthId;
}