Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created April 8, 2019 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/39dd7be4edd98a85008dee420523fdbd to your computer and use it in GitHub Desktop.
Save fitomad/39dd7be4edd98a85008dee420523fdbd to your computer and use it in GitHub Desktop.
// 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