Example using KeychainAccess (https://github.com/kishikawakatsumi/KeychainAccess) with KeyChainAccessGroupHelper.swift (https://gist.github.com/benbahrenburg/9067f29adbfd1d54aae5b80e8043e282)
let info = KeyChainAccessGroupHelper.getAccessGroupInfo() | |
//Use the default Keychain group | |
let keychain = Keychain(service: "com.example.github-token", accessGroup: info.rawValue) | |
//Use the prefix to connect to another keychain group | |
let keychain = Keychain(service: "com.example.github-token", accessGroup: String(format: "%@.com.bencoding.awesome-group", info.prefix)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment