Skip to content

Instantly share code, notes, and snippets.

@mmierzwa
Created April 24, 2017 08:14
Show Gist options
  • Save mmierzwa/3a2057b6a8c906d836c347960796b8b4 to your computer and use it in GitHub Desktop.
Save mmierzwa/3a2057b6a8c906d836c347960796b8b4 to your computer and use it in GitHub Desktop.
Cleaning ADAL token cache on Android and iOS
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