steilerDev/icloud-photos-sync

Refresh session after MFA timeout

Closed this issue · 2 comments

Session will expire while waiting for MFA code. Upon 'mfa_resend' the following observed error needs to refresh the session:

MFA_RESEND_FAILED (WARN): Unable to request new MFA code caused by MFA_TIMEOUT (FATAL): Timeout caused by Request failed with status code 403

.icloud-photos-sync.log

44645 [2023-03-19T01:00:01.085Z] INFO MFA-Server: Exposing endpoints: ["/mfa","/resend_mfa"]
44646 [2023-03-19T10:08:18.985Z] INFO i-Cloud: Resending MFA code with 'Device'       
44647 [2023-03-19T10:08:19.781Z] WARN Error-Handler: MFA_RESEND_FAILED (WARN): Unable to request new MFA code caused by MFA_TIMEOUT (FATAL): Timeout caus      ed by Request failed with status code 403

Implementing MFA timeout to also make requiring MFA code entering more reliable in daemon mode.

This issue should be resolved with version v1.1.1-beta.3, please confirm.