Extends: ass: KSVPNUFacade
Declared in: KSVPNUFacade.h
- (NSDictionary* _Nullable)loadAccountFromCloud;
If the user is authorized in iCloud on the device, the method will try to load the data using iCloud Key-Value Storage. It should be used in conjunction with Fake Account
- (void)mergeLogin:(NSString *_Nonnull)login withFakeLogin:(NSString * _Nonnull)fakeLogin fakePassword:(NSString* _Nonnull)fakePassword andPassword:(NSString * _Nonnull)password completion:(void(^_Nullable)(NSError * _Nullable error))completion;
This method tries to create a new account with real credentials and merge old fake account to newly created. All purchases from fake account will be transfered to new account. If merge is successful, it automatically logs in the newly created user.
- (void)registerFakeAccountWithCompanyDomain:(NSString * _Nonnull)companyDomain completion:(void(^_Nullable)(NSString * _Nullable login,NSString * _Nullable password, NSError * _Nullable error))completion;
This method tries to register a new user with automatically generated login and password, based on companyDomain synchronously and waits for the response. If registration is successful, it automatically logs in the newly created user.
- (void)saveAccountInCloudLogin:(NSString * _Nonnull)login password:(NSString * _Nonnull)password;
If the user is authorized in iCloud on the device, the method will try to save the data using iCloud Key-Value Storage. It should be used in conjunction with Fake Account