-
Notifications
You must be signed in to change notification settings - Fork 6
Add MFA Handling - TOTP Automation Template #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Updated MFA-handling Python and TypeScript templates - Added 'check' script to package.json for running all formatting and linting checks
c91042a to
28266aa
Compare
shrey150
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-approving.
@jay-sahnan qq, this is using Stagehand v2 for Python correct? are you planning to update this template (and others) to Canonical Stagehand in Python when it releases?
|
|
||
| ## QUICKSTART | ||
|
|
||
| 1. python -m venv venv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to use uv here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will open a separate PR to clean up here
| 🎮 Browserbase: https://www.browserbase.com | ||
| 💡 Try it out: https://www.browserbase.com/playground | ||
| 🔧 Templates: https://www.browserbase.com/templates | ||
| 📧 Need help? [email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add Discord here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
| @@ -0,0 +1,4 @@ | |||
| stagehand | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would probably pin version numbers here, esp when we launch stagehand v3 for python, could cause issues
Add MFA Handling - TOTP Automation Template
Summary
Adds a new template demonstrating automated MFA (Multi-Factor Authentication) completion using TOTP (Time-based One-Time Password) code generation. Includes TypeScript and Python implementations.
Features
RFC 6238 compliant TOTP generation — generates 6-digit codes using HMAC-SHA1
Automatic MFA completion — extracts TOTP secrets and fills MFA forms without user interaction
Retry logic — handles time window edge cases by regenerating codes
Zero-touch automation — completes MFA challenges programmatically