|
|
@@ -157,7 +157,7 @@ keychain.clear()
|
|
|
|
|
|
### Setting key prefix
|
|
|
|
|
|
-One can pass a `keyPrefix` argument when initializing a `KeychainSwift` object. The string passed in `keyPrefix` argument will be used as a prefix to **all the keys** used in `set`, `get`, `getData` and `delete` methods. I use the prefixed keychain in tests. This prevents the tests from changing the Keychain keys that are used when the app is launched manually.
|
|
|
+One can pass a `keyPrefix` argument when initializing a `KeychainSwift` object. The string passed in `keyPrefix` argument will be used as a prefix to **all the keys** used in `set`, `get`, `getData` and `delete` methods. The prefixed keychain can be useful in unit tests. This prevents the tests from changing the Keychain keys that are used when the app is launched manually.
|
|
|
|
|
|
Note that `clear` method still clears everything from the Keychain regardless of the prefix used.
|
|
|
|