Reputation: 13
Or how can I access internal default cache store?
How can I clear default cache store?
Thanks,
Jignesh.
Upvotes: 0
Views: 491
Reputation: 71
In ADAL iOS 2.1, three functions are provided for deleting token items in cache:
(BOOL)removeItem:(nonnull ADTokenCacheItem *)item error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error;
(BOOL)removeAllForClientId:(NSString * __nonnull)clientId error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error;
(BOOL)removeAllForUserId:(NSString * __nonnull)userId clientId:(NSString * __nonnull)clientId error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error;
You can take a look at the following file :)
Upvotes: 1