Skip to content

Use iOS shortcut to renew MFA #490

Answered by steilerDev
jeff47 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jeff47 , you would need to detach the token command and then wait for the http server to come online.

Something like this:

# Run token command in background and force token refresh
docker exec icloud-photos-sync icloud-photos-sync token --refresh-token &

# Wait for MFA server to come online
until docker exec icloud-photos-sync nc -z localhost 80; do
    echo -n '.'
    sleep 5
done

# Input MFA
docker exec icloud-photos-sync enter_mfa XXXXXX

I haven't tested this, but if you've got a working version, feel free to share it so I can add it to the docs :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeff47
Comment options

Answer selected by jeff47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants