Check if iCloud has two-factor authentication? Swift/iOS

Is there a way to check if a user's iCloud account has two-factor authentication enabled?


I am adding iCloud functionality to my app using CloudKit and for added security I'd like to perform this check and recommend the user enable two-factor if it isn't already.


I already check if the user is logged into iCloud on app load, but have been unable to find any guidance about performing this additional check. Does anyone know if this is possible?

Replies

Is there a way to check if a user's iCloud account has two-factor authentication enabled?

No.

IMO it’s not your job to nag users about two-factor. Fortunately, I don’t get the make the call (-: so you should feel free to file an enhancement request describing your use case so that CloudKit engineering can consider it.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hey Ross, have you got any solution of this issue. Actually ,I'm in the situation where need to recomend user about two factor authentication. If you have any solution please share . Any help will be appreciated.