Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/keychain_query.swift Secret
Created Apr 8, 2019

Embed
What would you like to do?
// Query de búsqueda en Keychain
let query: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrService as String : self.serviceName,
kSecAttrAccount as String: user.name,
kSecMatchLimit as String: kSecMatchLimitOne,
kSecReturnAttributes as String: true,
kSecReturnData as String: true
]
// Referencia donde recogemos el resultado
var item: CFTypeRef?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.