|
@@ -180,12 +180,10 @@
|
|
|
|
|
|
- (BOOL)restoreFromSharedCredentials
|
|
- (BOOL)restoreFromSharedCredentials
|
|
{
|
|
{
|
|
- NSLog(@"%s", __PRETTY_FUNCTION__);
|
|
|
|
LiveAuthStorage *authStorage = [[LiveAuthStorage alloc] initWithClientId:kVLCOneDriveClientID];
|
|
LiveAuthStorage *authStorage = [[LiveAuthStorage alloc] initWithClientId:kVLCOneDriveClientID];
|
|
NSUbiquitousKeyValueStore *ubiquitousStore = [NSUbiquitousKeyValueStore defaultStore];
|
|
NSUbiquitousKeyValueStore *ubiquitousStore = [NSUbiquitousKeyValueStore defaultStore];
|
|
[ubiquitousStore synchronize];
|
|
[ubiquitousStore synchronize];
|
|
NSString *credentials = [ubiquitousStore stringForKey:kVLCStoreOneDriveCredentials];
|
|
NSString *credentials = [ubiquitousStore stringForKey:kVLCStoreOneDriveCredentials];
|
|
- NSLog(@"have credentials %@", credentials);
|
|
|
|
if (!credentials)
|
|
if (!credentials)
|
|
return NO;
|
|
return NO;
|
|
|
|
|