Keychain
The encrypted store iOS provides for passwords, tokens and keys, private to the app unless shared through an access group.
Definition
Items are encrypted with keys tied to the device and, for most protection classes, the passcode. The accessibility attribute decides when an item can be read (only while unlocked, or after the first unlock since boot) and whether it may leave the device in backups. Keychain items survive app deletion, and access control flags can require Face ID.
In practice
The refresh token is saved with AfterFirstUnlockThisDeviceOnly so background refresh can read it and backups never contain it.
Learn it in context
Lessons that use this term.