Optional
authThe authentication method to use. Currently defaults to 'legacy', however this may change in the future.
"legacy"
Optional
dataThe directory to store the trust-token in. Defaults to the ~/.icloud directory.
Optional
loggerLog level to use. Alternatively pass in a function that will recieve all log messages instead of being forwarded to console
LogLevel.Debug
Optional
passwordThe password of the iCloud account to log in to. Can be provided now (at construction time) or later (on iCloudService#authenticate).
Optional
saveWhether to save the credentials to the system's secret store. (i.e. Keychain on macOS)
Optional
trustWhether to store the trust-token to disk. This allows future logins to be done without MFA.
Optional
usernameThe username of the iCloud account to log in to. Can be provided now (at construction time) or later (on iCloudService#authenticate).
Generated using TypeDoc
These are the options that can be passed to the iCloud service constructor.