Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ If you have enabled two-factor authentications (2FA) or [two-step
authentication (2SA)](https://support.apple.com/en-us/HT204152) for the
account you will have to do some extra work:

For HSA2 accounts, `request_2fa_code()` now starts Apple's active delivery
route for code-based challenges. Depending on the account and session, that may
be a trusted-device prompt or an SMS code. Security-key challenges are handled
separately via `security_key_names` / `confirm_security_key()`.

```python
import sys

Expand Down Expand Up @@ -216,6 +221,7 @@ if api.requires_2fa:

else:
print("Two-factor authentication required.")
api.request_2fa_code()
code = input(
"Enter the code you received of one of your approved devices: "
)
Expand Down Expand Up @@ -1254,8 +1260,6 @@ Notes caveats:
- `api.notes.raw` is available for advanced/debug workflows, but it is not the
primary Notes API surface.

### Notes CLI Example

[`examples/notes_cli.py`](examples/notes_cli.py) is a local developer utility
built on top of `api.notes`. It is useful for searching notes, inspecting the
rendering pipeline, and exporting HTML, but its selection heuristics and debug
Expand Down
Loading
Loading