Store credentials in the System-provided Keychain. :)

There’s a fairly simple example available here

The Apple docs can be found here