Created
April 24, 2017 08:14
-
-
Save mmierzwa/3a2057b6a8c906d836c347960796b8b4 to your computer and use it in GitHub Desktop.
Cleaning ADAL token cache on Android and iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SecureStorageService : ISecureStorageService | |
{ | |
public void RemoveAdalRecords() | |
{ | |
try | |
{ | |
var query = new SecRecord(SecKind.GenericPassword); | |
SecKeyChain.Remove(query); | |
} | |
catch (Exception ex) | |
{ | |
// log the error | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment