问题描述
或者如何访问内部默认缓存存储?
Or how can I access internal default cache store?
如何清除默认缓存存储?
How can I clear default cache store?
谢谢
Jignesh。
推荐答案
在ADAL iOS 2.1中,提供了三个函数来删除缓存中的令牌项:
In ADAL iOS 2.1, three functions are provided for deleting token items in cache:
-
(BOOL)removeItem:(nonnull ADTokenCacheItem *)item
错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;
(BOOL)removeItem:(nonnull ADTokenCacheItem *)item error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error;
(BOOL)removeAllForClientId:(NSString * __nonnull)clientId
错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;
(BOOL)removeAllForClientId:(NSString * __nonnull)clientId error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error;
(BOOL)removeAllForUserId:(NSString * __nonnull)userId
clientId:(NSString * __nonnull)clientId
错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;
(BOOL)removeAllForUserId:(NSString * __nonnull)userId clientId:(NSString * __nonnull)clientId error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error;
您可以查看以下内容文件:)
You can take a look at the following file :)
这篇关于如何使用新版本的ADALiOS 2.1注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!