Pick the fix
You want Face ID to protect access to a stored refresh token. Most secure approach?
Hint 1 of 1
Where should the check be enforced?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Store the token in the Keychain with SecAccessControl .biometryCurrentSet, and read it to trigger Face ID
Correct. The Secure Enclave releases the token only after a successful match.
Why not the others?
- B Call evaluatePolicy and read the token from UserDefaults on success. The token isn't protected, and the boolean can be bypassed.
- C Save
didPassFaceID = truein the Keychain. A stored flag isn't a cryptographic check. - D Ask for Face ID every time the app launches, then load the token normally. The token is still readable without biometrics.