icloud.js
icloud.js copied to clipboard
Prevent e-mails 'Your Apple ID is being used to sign in on the web'
Can these e-mails be prevented? Maybe by persisting the cookies on the filesystem?
Apple sends these notifications every time a new sign-in session is created. The library does store the trust tokens to the disk (to prevent entering OTP every time), but storing actual session cookies (probably by serialising the entire authStore instead of just the trust token) is something I haven't looked into, as it may complicate session expiry & renewal some more.
Does the library currently handle expiry automatically? If so, it should not be a big change.