Example using KeychainAccess (https://github.com/kishikawakatsumi/KeychainAccess) with KeyChainAccessGroupHelper.swift (https://gist.github.com/benbahrenburg/9067f29adbfd1d54aae5b80e8043e282)
This file contains 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
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