或者如何访问内部默认缓存存储?
如何清除默认缓存存储?
谢谢,
吉涅什。
最佳答案
在 ADAL iOS 2.1 中,提供了三个函数来删除缓存中的 token 项:
(BOOL)removeItem:(非空 ADTokenCacheItem *)item 错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;
(BOOL)removeAllForClientId:(NSString * __nonnull)clientId 错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;
(BOOL)removeAllForUserId:(NSString * __nonnull)userId clientId:(NSString * __nonnull)clientId 错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;
你可以看看下面的文件:)
关于ios - 如何使用新版 ADALiOS 2.1 注销,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36874719/