Skip to content

Commit 020df17

Browse files
committed
Add note about 2FA workflow
Related to #4 Add a note about the workflow required when the destination site uses 2FA. * **README.md** - Add a section explaining the workflow for sites using 2FA. - Mention that cookies/auth tokens/session tokens should be obtained after completing 2FA. * **create_har.py** - Add a comment to ensure 2FA is completed before saving cookies.
1 parent 212d87b commit 020df17

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ Options:
8585
--help Show this message and exit.
8686
```
8787

88+
## Note on 2FA
89+
90+
When the destination site uses two-factor authentication (2FA), the workflow remains the same. Ensure that you complete the 2FA process and obtain the cookies/auth tokens/session tokens after 2FA. These tokens will be used in the workflow.
91+
8892
## Demo
8993

9094
[![Demo Video](https://img.youtube.com/vi/7OJ4w5BCpQ0/0.jpg)](https://www.youtube.com/watch?v=7OJ4w5BCpQ0)

create_har.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async def open_browser_and_wait():
2121

2222
input("Press Enter to continue and close the browser...")
2323

24+
# Ensure 2FA is completed before saving cookies
2425
cookies = await context.cookies()
2526

2627
with open("cookies.json", "w") as f:

0 commit comments

Comments
 (0)