Daily iOS
Security

Login across sibling apps

Several apps from one company (the main app, a payments app, a cloud app) should share login state once the user signs in to any of them. How do you implement that on iOS?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Apps with the same Team ID declare a shared Keychain group through the keychain-access-groups entitlement and keep the refresh token there, and a change such as a logout goes to the other apps through a Darwin notification.

Share a question