You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This particular function in MojioClient erases everything stored in NSUserDefaults:
- (void)logoutWithCompletionBlock:(void (^)(void))completionBlock {
[[self.manager requestSerializer] setValue:nilforHTTPHeaderField:@"MojioAPIToken"];
// remove all objects from the NSUserDefaultsNSUserDefaults *defaults = [NSUserDefaultsstandardUserDefaults];
NSDictionary *defaultsDict = [defaults dictionaryRepresentation];
for (id key in defaultsDict) {
[defaults removeObjectForKey:key];
}
[defaults synchronize];
if (completionBlock) {
completionBlock();
}
}
This is not wise. You should probably only erase values stored by your SDK. Current implementation erases any other possible values stored by other parties.
The text was updated successfully, but these errors were encountered:
This particular function in MojioClient erases everything stored in NSUserDefaults:
This is not wise. You should probably only erase values stored by your SDK. Current implementation erases any other possible values stored by other parties.
The text was updated successfully, but these errors were encountered: