createSuperUser static method
Implementation
static Future<String> createSuperUser(
final Client cloudApiClient, {
required final String projectId,
required final String username,
}) async {
try {
return await cloudApiClient.database.createSuperUser(
cloudCapsuleId: projectId,
username: username,
);
} on Exception catch (e, stackTrace) {
throw FailureException.nested(
e,
stackTrace,
'Failed to create superuser',
);
}
}