Extends: ass: KSVPNUFacade
Declared in: KSVPNUFacade.h
- (NSDictionary *)accountForCurrentDeviceWithCompanyDomain:(NSString *)companyDomain;
- (NSDictionary *)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 *)login withFakeLogin:(NSString *)fakeLogin fakePassword:(NSString *)fakePassword password:(NSString *)password marketingEmails:(BOOL)doNotReceiveMarketingEmails completion:(void(^)(NSError * 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 *)companyDomain partnerId:(NSString *)partnerId completion:(void(^)(NSString * login,NSString * password, NSError * 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 *)login password:(NSString *)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