diff --git a/packages/at_onboarding_cli/lib/src/onboard/at_onboarding_service_impl.dart b/packages/at_onboarding_cli/lib/src/onboard/at_onboarding_service_impl.dart index 06ea7a09..93e9df99 100644 --- a/packages/at_onboarding_cli/lib/src/onboard/at_onboarding_service_impl.dart +++ b/packages/at_onboarding_cli/lib/src/onboard/at_onboarding_service_impl.dart @@ -47,14 +47,6 @@ class AtOnboardingServiceImpl implements AtOnboardingService { HomeDirectoryUtil.getAtKeysPath(_atSign); } - Future _init(Map atKeysFileDataMap) async { - atChops ??= _createAtChops(atKeysFileDataMap); - await _initAtClient(atChops!); - _atLookUp!.atChops = atChops; - _atClient!.atChops = atChops; - _atClient!.getPreferences()!.useAtChops = true; - } - Future _initAtClient(AtChops atChops) async { AtClientManager atClientManager = AtClientManager.getInstance(); if (atOnboardingPreference.skipSync == true) { @@ -70,6 +62,14 @@ class AtOnboardingServiceImpl implements AtOnboardingService { _atClient ??= atClientManager.atClient; } + Future _init(Map atKeysFileDataMap) async { + atChops ??= _createAtChops(atKeysFileDataMap); + await _initAtClient(atChops!); + _atLookUp!.atChops = atChops; + _atClient!.atChops = atChops; + _atClient!.getPreferences()!.useAtChops = true; + } + @override Future onboard() async { bool cramAuthStatus = false;