Our iOS app lets a person connect a server-side helper to their own private CloudKit database through CloudKit Web Services. The app opens the CloudKit sign-in (the 421 redirectURL) in an ASWebAuthenticationSession and passes the resulting ckWebAuthToken to the helper, which then calls the Web Services API with our API token and rolls the token from each response's X-Apple-CloudKit-Web-Auth-Token header.
What we see:
When the person signs in by typing a password, the page offers "Keep me signed in". With it ticked, the token stays valid for about 14 days without use, as documented.
When the person signs in with the one-tap Face ID / Touch ID option (already signed in on the device), no "Keep me signed in" box is shown, and the token stops working after roughly 6 to 24 hours without use.
Questions:
Is the shorter life the expected behaviour for a one-tap Face ID / Touch ID sign-in?
Is there a supported way, from the app or the sign-in request, to get the long-lived ("Keep me signed in") token while the person uses Face ID / Touch ID?
If not, is a request every 4 hours the recommended way to keep such a token valid, and is there a documented idle limit we should design around?
0
0
62