at_onboarding_cli 1.1.0 copy "at_onboarding_cli: ^1.1.0" to clipboard
at_onboarding_cli: ^1.1.0 copied to clipboard

outdated

Dart tool to authenticate, onboard and perform complex operations on @sign from command-line-interface.

example/example.dart

import 'package:at_lookup/at_lookup.dart';
import 'package:at_onboarding_cli/at_onboarding_cli.dart';

Future<void> main() async {
  //onboarding preference builder can be used to set onboardingService parameters
  AtOnboardingPreference atOnboardingPreference = AtOnboardingPreference()
    ..qrCodePath = 'storage/qr_code.png'
    ..hiveStoragePath = 'storage/hive'
    ..namespace = 'example'
    ..downloadPath = 'storage/files'
    ..isLocalStoreRequired = true
    ..commitLogPath = 'storage/commitLog'
    ..cramSecret = '<your cram secret>'
    ..privateKey = '<your private key here>'
    ..atKeysFilePath = 'storage/alice_key.atKeys';
  AtOnboardingService? onboardingService =
      AtOnboardingServiceImpl('your atsign here', atOnboardingPreference);
  await onboardingService.onboard();
  AtLookUp? atLookup = onboardingService.getAtLookup();
  print(await atLookup?.scan(regex: 'publickey'));
  //free the object after it's used and no longer required
  onboardingService = null;
}
5
likes
0
pub points
66%
popularity

Publisher

verified publisheratsign.org

Dart tool to authenticate, onboard and perform complex operations on @sign from command-line-interface.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

at_client, at_commons, at_lookup, at_server_status, at_utils, crypton, encrypt, image, path, zxing2

More

Packages that depend on at_onboarding_cli