Build iOS sign-in with secure credential handling.
Recent revisions are kept. Restoring one creates a new revision.