icloud.js icon indicating copy to clipboard operation
icloud.js copied to clipboard

Prevent e-mails 'Your Apple ID is being used to sign in on the web'

Open WeeJeWel opened this issue 1 year ago • 2 comments

Can these e-mails be prevented? Maybe by persisting the cookies on the filesystem?

WeeJeWel avatar Aug 25 '24 10:08 WeeJeWel

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.

foxt avatar Aug 25 '24 14:08 foxt

Does the library currently handle expiry automatically? If so, it should not be a big change.

WeeJeWel avatar Aug 25 '24 14:08 WeeJeWel