Store data in Credential without user intervention?

Unless I misunderstand it is not possible to store data in Credential without user intervention. Would it be possible to add a method (setValue(key, value)) to store data from code?

Use case: (securely) storing an authorization token that is returned from an HTTP call.

PS: I’m assuming (ouch) that Drafts stores Credential data in the secure KeyChain, while FileManager stores data on the file system. Is that assumption correct?

1 Like